MicrosoftGraphAttachmentItem Class
- java.
lang. Object - com.
azure. resourcemanager. authorization. fluent. models. MicrosoftGraphAttachmentItem
- com.
Implements
public final class MicrosoftGraphAttachmentItem
implements JsonSerializable<MicrosoftGraphAttachmentItem>
attachmentItem.
Constructor Summary
Constructor | Description |
---|---|
MicrosoftGraphAttachmentItem() |
Creates an instance of Microsoft |
Method Summary
Modifier and Type | Method and Description |
---|---|
Map<String,Object> |
additionalProperties()
Get the additional |
Microsoft |
attachmentType()
Get the attachment |
String |
contentType()
Get the content |
static
Microsoft |
fromJson(JsonReader jsonReader)
Reads an instance of Microsoft |
Boolean |
isInline()
Get the is |
String |
name()
Get the name property: The display name of the attachment. |
Long |
size()
Get the size property: The length of the attachment in bytes. |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Microsoft |
withAdditionalProperties(Map<String,Object> additionalProperties)
Set the additional |
Microsoft |
withAttachmentType(MicrosoftGraphAttachmentType attachmentType)
Set the attachment |
Microsoft |
withContentType(String contentType)
Set the content |
Microsoft |
withIsInline(Boolean isInline)
Set the is |
Microsoft |
withName(String name)
Set the name property: The display name of the attachment. |
Microsoft |
withSize(Long size)
Set the size property: The length of the attachment in bytes. |
Methods inherited from java.lang.Object
Constructor Details
MicrosoftGraphAttachmentItem
public MicrosoftGraphAttachmentItem()
Creates an instance of MicrosoftGraphAttachmentItem class.
Method Details
additionalProperties
public Map
Get the additionalProperties property: attachmentItem.
Returns:
attachmentType
public MicrosoftGraphAttachmentType attachmentType()
Get the attachmentType property: attachmentType.
Returns:
contentType
public String contentType()
Get the contentType property: The nature of the data in the attachment. Optional.
Returns:
fromJson
public static MicrosoftGraphAttachmentItem fromJson(JsonReader jsonReader)
Reads an instance of MicrosoftGraphAttachmentItem from the JsonReader.
Parameters:
Returns:
Throws:
isInline
public Boolean isInline()
Get the isInline property: true if the attachment is an inline attachment; otherwise, false. Optional.
Returns:
name
public String name()
Get the name property: The display name of the attachment. This can be a descriptive string and does not have to be the actual file name. Required.
Returns:
size
public Long size()
Get the size property: The length of the attachment in bytes. Required.
Returns:
toJson
validate
public void validate()
Validates the instance.
withAdditionalProperties
public MicrosoftGraphAttachmentItem withAdditionalProperties(Map
Set the additionalProperties property: attachmentItem.
Parameters:
Returns:
withAttachmentType
public MicrosoftGraphAttachmentItem withAttachmentType(MicrosoftGraphAttachmentType attachmentType)
Set the attachmentType property: attachmentType.
Parameters:
Returns:
withContentType
public MicrosoftGraphAttachmentItem withContentType(String contentType)
Set the contentType property: The nature of the data in the attachment. Optional.
Parameters:
Returns:
withIsInline
public MicrosoftGraphAttachmentItem withIsInline(Boolean isInline)
Set the isInline property: true if the attachment is an inline attachment; otherwise, false. Optional.
Parameters:
Returns:
withName
public MicrosoftGraphAttachmentItem withName(String name)
Set the name property: The display name of the attachment. This can be a descriptive string and does not have to be the actual file name. Required.
Parameters:
Returns:
withSize
public MicrosoftGraphAttachmentItem withSize(Long size)
Set the size property: The length of the attachment in bytes. Required.
Parameters:
Returns:
Applies to
Azure SDK for Java