Class MicrosoftGraphAttachmentItem
- java.lang.Object
-
- com.azure.resourcemanager.authorization.fluent.models.MicrosoftGraphAttachmentItem
-
public final class MicrosoftGraphAttachmentItem extends Object
attachmentItem.
-
-
Constructor Summary
Constructors Constructor Description MicrosoftGraphAttachmentItem()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,Object>
additionalProperties()
Get the additionalProperties property: attachmentItem.MicrosoftGraphAttachmentType
attachmentType()
Get the attachmentType property: attachmentType.String
contentType()
Get the contentType property: The nature of the data in the attachment.Boolean
isInline()
Get the isInline property: true if the attachment is an inline attachment; otherwise, false.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.void
validate()
Validates the instance.MicrosoftGraphAttachmentItem
withAdditionalProperties(Map<String,Object> additionalProperties)
Set the additionalProperties property: attachmentItem.MicrosoftGraphAttachmentItem
withAttachmentType(MicrosoftGraphAttachmentType attachmentType)
Set the attachmentType property: attachmentType.MicrosoftGraphAttachmentItem
withContentType(String contentType)
Set the contentType property: The nature of the data in the attachment.MicrosoftGraphAttachmentItem
withIsInline(Boolean isInline)
Set the isInline property: true if the attachment is an inline attachment; otherwise, false.MicrosoftGraphAttachmentItem
withName(String name)
Set the name property: The display name of the attachment.MicrosoftGraphAttachmentItem
withSize(Long size)
Set the size property: The length of the attachment in bytes.
-
-
-
Method Detail
-
attachmentType
public MicrosoftGraphAttachmentType attachmentType()
Get the attachmentType property: attachmentType.- Returns:
- the attachmentType value.
-
withAttachmentType
public MicrosoftGraphAttachmentItem withAttachmentType(MicrosoftGraphAttachmentType attachmentType)
Set the attachmentType property: attachmentType.- Parameters:
attachmentType
- the attachmentType value to set.- Returns:
- the MicrosoftGraphAttachmentItem object itself.
-
contentType
public String contentType()
Get the contentType property: The nature of the data in the attachment. Optional.- Returns:
- the contentType value.
-
withContentType
public MicrosoftGraphAttachmentItem withContentType(String contentType)
Set the contentType property: The nature of the data in the attachment. Optional.- Parameters:
contentType
- the contentType value to set.- Returns:
- the MicrosoftGraphAttachmentItem object itself.
-
isInline
public Boolean isInline()
Get the isInline property: true if the attachment is an inline attachment; otherwise, false. Optional.- Returns:
- the isInline value.
-
withIsInline
public MicrosoftGraphAttachmentItem withIsInline(Boolean isInline)
Set the isInline property: true if the attachment is an inline attachment; otherwise, false. Optional.- Parameters:
isInline
- the isInline value to set.- Returns:
- the MicrosoftGraphAttachmentItem object itself.
-
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:
- the name value.
-
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:
name
- the name value to set.- Returns:
- the MicrosoftGraphAttachmentItem object itself.
-
size
public Long size()
Get the size property: The length of the attachment in bytes. Required.- Returns:
- the size value.
-
withSize
public MicrosoftGraphAttachmentItem withSize(Long size)
Set the size property: The length of the attachment in bytes. Required.- Parameters:
size
- the size value to set.- Returns:
- the MicrosoftGraphAttachmentItem object itself.
-
additionalProperties
public Map<String,Object> additionalProperties()
Get the additionalProperties property: attachmentItem.- Returns:
- the additionalProperties value.
-
withAdditionalProperties
public MicrosoftGraphAttachmentItem withAdditionalProperties(Map<String,Object> additionalProperties)
Set the additionalProperties property: attachmentItem.- Parameters:
additionalProperties
- the additionalProperties value to set.- Returns:
- the MicrosoftGraphAttachmentItem object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
-