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.StringcontentType()Get the contentType property: The MIME type.BooleanisInline()Get the isInline property: true if the attachment is an inline attachment; otherwise, false.OffsetDateTimelastModifiedDateTime()Get the lastModifiedDateTime property: The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time.Stringname()Get the name property: The attachment's file name.Integersize()Get the size property: The length of the attachment in bytes.voidvalidate()Validates the instance.MicrosoftGraphAttachmentwithAdditionalProperties(Map<String,Object> additionalProperties)Set the additionalProperties property: attachment.MicrosoftGraphAttachmentwithContentType(String contentType)Set the contentType property: The MIME type.MicrosoftGraphAttachmentwithId(String id)Set the id property: Read-only.MicrosoftGraphAttachmentwithIsInline(Boolean isInline)Set the isInline property: true if the attachment is an inline attachment; otherwise, false.MicrosoftGraphAttachmentwithLastModifiedDateTime(OffsetDateTime lastModifiedDateTime)Set the lastModifiedDateTime property: The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time.MicrosoftGraphAttachmentwithName(String name)Set the name property: The attachment's file name.MicrosoftGraphAttachmentwithSize(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:
additionalPropertiesin classMicrosoftGraphEntity- Returns:
- the additionalProperties value.
-
withAdditionalProperties
public MicrosoftGraphAttachment withAdditionalProperties(Map<String,Object> additionalProperties)
Set the additionalProperties property: attachment.- Overrides:
withAdditionalPropertiesin 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:
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.
-
-