Class MicrosoftGraphAttachment
java.lang.Object
com.azure.resourcemanager.authorization.fluent.models.MicrosoftGraphEntity
com.azure.resourcemanager.authorization.fluent.models.MicrosoftGraphAttachment
attachment.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of MicrosoftGraphAttachment class. -
Method Summary
Modifier and TypeMethodDescriptionGet the additionalProperties property: attachment.Get the contentType property: The MIME type.isInline()Get the isInline property: true if the attachment is an inline attachment; otherwise, false.Get the lastModifiedDateTime property: The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time.name()Get the name property: The attachment's file name.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: attachment.withContentType(String contentType) Set the contentType property: The MIME type.Set the id property: Read-only.withIsInline(Boolean isInline) Set the isInline property: true if the attachment is an inline attachment; otherwise, false.withLastModifiedDateTime(OffsetDateTime lastModifiedDateTime) Set the lastModifiedDateTime property: The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time.Set the name property: The attachment's file name.Set the size property: The length of the attachment in bytes.Methods inherited from class com.azure.resourcemanager.authorization.fluent.models.MicrosoftGraphEntity
id
-
Constructor Details
-
MicrosoftGraphAttachment
public MicrosoftGraphAttachment()Creates an instance of MicrosoftGraphAttachment class.
-
-
Method Details
-
contentType
Get the contentType property: The MIME type.- Returns:
- the contentType value.
-
withContentType
Set the contentType property: The MIME type.- Parameters:
contentType- the contentType value to set.- Returns:
- the MicrosoftGraphAttachment object itself.
-
isInline
Get the isInline property: true if the attachment is an inline attachment; otherwise, false.- Returns:
- the isInline value.
-
withIsInline
Set the isInline property: true if the attachment is an inline attachment; otherwise, false.- Parameters:
isInline- the isInline value to set.- Returns:
- the MicrosoftGraphAttachment object itself.
-
lastModifiedDateTime
Get the lastModifiedDateTime property: The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 would look like this: '2014-01-01T00:00:00Z'.- Returns:
- the lastModifiedDateTime value.
-
withLastModifiedDateTime
Set the lastModifiedDateTime property: The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 would look like this: '2014-01-01T00:00:00Z'.- Parameters:
lastModifiedDateTime- the lastModifiedDateTime value to set.- Returns:
- the MicrosoftGraphAttachment object itself.
-
name
Get the name property: The attachment's file name.- Returns:
- the name value.
-
withName
Set the name property: The attachment's file name.- Parameters:
name- the name value to set.- Returns:
- the MicrosoftGraphAttachment object itself.
-
size
Get the size property: The length of the attachment in bytes.- Returns:
- the size value.
-
withSize
Set the size property: The length of the attachment in bytes.- Parameters:
size- the size value to set.- Returns:
- the MicrosoftGraphAttachment object itself.
-
additionalProperties
Get the additionalProperties property: attachment.- Overrides:
additionalPropertiesin classMicrosoftGraphEntity- Returns:
- the additionalProperties value.
-
withAdditionalProperties
Set the additionalProperties property: attachment.- Overrides:
withAdditionalPropertiesin classMicrosoftGraphEntity- Parameters:
additionalProperties- the additionalProperties value to set.- Returns:
- the MicrosoftGraphAttachment object itself.
-
withId
Set the id property: Read-only.- Overrides:
withIdin classMicrosoftGraphEntity- Parameters:
id- the id value to set.- Returns:
- the MicrosoftGraphEntity object itself.
-
validate
public void validate()Validates the instance.- Overrides:
validatein classMicrosoftGraphEntity- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-