MicrosoftGraphAttachment Class
- java.
lang. Object - com.
azure. resourcemanager. authorization. fluent. models. MicrosoftGraphEntity - com.
azure. resourcemanager. authorization. fluent. models. MicrosoftGraphAttachment
- com.
- com.
public final class MicrosoftGraphAttachment
extends MicrosoftGraphEntity
attachment.
Constructor Summary
Constructor | Description |
---|---|
MicrosoftGraphAttachment() |
Creates an instance of Microsoft |
Method Summary
Modifier and Type | Method and Description |
---|---|
Map<String,Object> |
additionalProperties()
Get the additional |
String |
contentType()
Get the content |
static
Microsoft |
fromJson(JsonReader jsonReader)
Reads an instance of Microsoft |
Boolean |
isInline()
Get the is |
Offset |
lastModifiedDateTime()
Get the last |
String |
name()
Get the name property: The attachment's file name. |
Integer |
size()
Get the size property: The length of the attachment in bytes. |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Microsoft |
withAdditionalProperties(Map<String,Object> additionalProperties)
Set the additional |
Microsoft |
withContentType(String contentType)
Set the content |
Microsoft |
withId(String id)
Set the id property: Read-only. |
Microsoft |
withIsInline(Boolean isInline)
Set the is |
Microsoft |
withLastModifiedDateTime(OffsetDateTime lastModifiedDateTime)
Set the last |
Microsoft |
withName(String name)
Set the name property: The attachment's file name. |
Microsoft |
withSize(Integer size)
Set the size property: The length of the attachment in bytes. |
Methods inherited from MicrosoftGraphEntity
Methods inherited from java.lang.Object
Constructor Details
MicrosoftGraphAttachment
public MicrosoftGraphAttachment()
Creates an instance of MicrosoftGraphAttachment class.
Method Details
additionalProperties
public Map
Get the additionalProperties property: attachment.
Overrides:
MicrosoftGraphAttachment.additionalProperties()Returns:
contentType
public String contentType()
Get the contentType property: The MIME type.
Returns:
fromJson
public static MicrosoftGraphAttachment fromJson(JsonReader jsonReader)
Reads an instance of MicrosoftGraphAttachment from the JsonReader.
Parameters:
Returns:
Throws:
isInline
public Boolean isInline()
Get the isInline property: true if the attachment is an inline attachment; otherwise, false.
Returns:
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:
name
public String name()
Get the name property: The attachment's file name.
Returns:
size
public Integer size()
Get the size property: The length of the attachment in bytes.
Returns:
toJson
public JsonWriter toJson(JsonWriter jsonWriter)
Overrides:
MicrosoftGraphAttachment.toJson(JsonWriter jsonWriter)Parameters:
Throws:
validate
public void validate()
Validates the instance.
Overrides:
MicrosoftGraphAttachment.validate()withAdditionalProperties
public MicrosoftGraphAttachment withAdditionalProperties(Map
Set the additionalProperties property: attachment.
Overrides:
MicrosoftGraphAttachment.withAdditionalProperties(Map<String,Object> additionalProperties)Parameters:
Returns:
withContentType
public MicrosoftGraphAttachment withContentType(String contentType)
Set the contentType property: The MIME type.
Parameters:
Returns:
withId
public MicrosoftGraphAttachment withId(String id)
Set the id property: Read-only.
Overrides:
MicrosoftGraphAttachment.withId(String id)Parameters:
withIsInline
public MicrosoftGraphAttachment withIsInline(Boolean isInline)
Set the isInline property: true if the attachment is an inline attachment; otherwise, false.
Parameters:
Returns:
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:
Returns:
withName
public MicrosoftGraphAttachment withName(String name)
Set the name property: The attachment's file name.
Parameters:
Returns:
withSize
public MicrosoftGraphAttachment withSize(Integer size)
Set the size property: The length of the attachment in bytes.
Parameters:
Returns:
Applies to
Azure SDK for Java