Class MicrosoftGraphAttachment
- java.lang.Object
-
- com.azure.resourcemanager.authorization.fluent.models.MicrosoftGraphEntity
-
- com.azure.resourcemanager.authorization.fluent.models.MicrosoftGraphAttachment
-
public final class MicrosoftGraphAttachment extends MicrosoftGraphEntity
attachment.
-
-
Constructor Summary
Constructors Constructor Description MicrosoftGraphAttachment()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,Object>
additionalProperties()
Get the additionalProperties property: attachment.String
contentType()
Get the contentType property: The MIME type.Boolean
isInline()
Get the isInline property: true if the attachment is an inline attachment; otherwise, false.OffsetDateTime
lastModifiedDateTime()
Get the lastModifiedDateTime property: The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time.String
name()
Get the name property: The attachment's file name.Integer
size()
Get the size property: The length of the attachment in bytes.void
validate()
Validates the instance.MicrosoftGraphAttachment
withAdditionalProperties(Map<String,Object> additionalProperties)
Set the additionalProperties property: attachment.MicrosoftGraphAttachment
withContentType(String contentType)
Set the contentType property: The MIME type.MicrosoftGraphAttachment
withId(String id)
Set the id property: Read-only.MicrosoftGraphAttachment
withIsInline(Boolean isInline)
Set the isInline property: true if the attachment is an inline attachment; otherwise, false.MicrosoftGraphAttachment
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.MicrosoftGraphAttachment
withName(String name)
Set the name property: The attachment's file name.MicrosoftGraphAttachment
withSize(Integer size)
Set the size property: The length of the attachment in bytes.-
Methods inherited from class com.azure.resourcemanager.authorization.fluent.models.MicrosoftGraphEntity
id
-
-
-
-
Method Detail
-
contentType
public String contentType()
Get the contentType property: The MIME type.- Returns:
- the contentType value.
-
withContentType
public MicrosoftGraphAttachment withContentType(String contentType)
Set the contentType property: The MIME type.- Parameters:
contentType
- the contentType value to set.- Returns:
- the MicrosoftGraphAttachment object itself.
-
isInline
public Boolean isInline()
Get the isInline property: true if the attachment is an inline attachment; otherwise, false.- Returns:
- the isInline value.
-
withIsInline
public MicrosoftGraphAttachment withIsInline(Boolean isInline)
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
public OffsetDateTime 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
public MicrosoftGraphAttachment 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. 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
public String name()
Get the name property: The attachment's file name.- Returns:
- the name value.
-
withName
public MicrosoftGraphAttachment withName(String name)
Set the name property: The attachment's file name.- Parameters:
name
- the name value to set.- Returns:
- the MicrosoftGraphAttachment object itself.
-
size
public Integer size()
Get the size property: The length of the attachment in bytes.- Returns:
- the size value.
-
withSize
public MicrosoftGraphAttachment withSize(Integer size)
Set the size property: The length of the attachment in bytes.- Parameters:
size
- the size value to set.- Returns:
- the MicrosoftGraphAttachment object itself.
-
additionalProperties
public Map<String,Object> additionalProperties()
Get the additionalProperties property: attachment.- Overrides:
additionalProperties
in classMicrosoftGraphEntity
- Returns:
- the additionalProperties value.
-
withAdditionalProperties
public MicrosoftGraphAttachment withAdditionalProperties(Map<String,Object> additionalProperties)
Set the additionalProperties property: attachment.- Overrides:
withAdditionalProperties
in classMicrosoftGraphEntity
- Parameters:
additionalProperties
- the additionalProperties value to set.- Returns:
- the MicrosoftGraphAttachment object itself.
-
withId
public MicrosoftGraphAttachment withId(String id)
Set the id property: Read-only.- Overrides:
withId
in classMicrosoftGraphEntity
- Parameters:
id
- the id value to set.- Returns:
- the MicrosoftGraphEntity object itself.
-
validate
public void validate()
Validates the instance.- Overrides:
validate
in classMicrosoftGraphEntity
- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
-