Class MicrosoftGraphAttachmentItem
java.lang.Object
com.azure.resourcemanager.authorization.fluent.models.MicrosoftGraphAttachmentItem
attachmentItem.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of MicrosoftGraphAttachmentItem class. -
Method Summary
Modifier and TypeMethodDescriptionGet the additionalProperties property: attachmentItem.Get the attachmentType property: attachmentType.Get the contentType property: The nature of the data in the attachment.isInline()Get the isInline property: true if the attachment is an inline attachment; otherwise, false.name()Get the name property: The display name of the attachment.size()Get the size property: The length of the attachment in bytes.voidvalidate()Validates the instance.withAdditionalProperties(Map<String, Object> additionalProperties) Set the additionalProperties property: attachmentItem.withAttachmentType(MicrosoftGraphAttachmentType attachmentType) Set the attachmentType property: attachmentType.withContentType(String contentType) Set the contentType property: The nature of the data in the attachment.withIsInline(Boolean isInline) Set the isInline property: true if the attachment is an inline attachment; otherwise, false.Set the name property: The display name of the attachment.Set the size property: The length of the attachment in bytes.
-
Constructor Details
-
MicrosoftGraphAttachmentItem
public MicrosoftGraphAttachmentItem()Creates an instance of MicrosoftGraphAttachmentItem class.
-
-
Method Details
-
attachmentType
Get the attachmentType property: attachmentType.- Returns:
- the attachmentType value.
-
withAttachmentType
Set the attachmentType property: attachmentType.- Parameters:
attachmentType- the attachmentType value to set.- Returns:
- the MicrosoftGraphAttachmentItem object itself.
-
contentType
Get the contentType property: The nature of the data in the attachment. Optional.- Returns:
- the contentType value.
-
withContentType
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
Get the isInline property: true if the attachment is an inline attachment; otherwise, false. Optional.- Returns:
- the isInline value.
-
withIsInline
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
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
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
Get the size property: The length of the attachment in bytes. Required.- Returns:
- the size value.
-
withSize
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
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.
-