你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

MicrosoftGraphAttachment Class

public final class MicrosoftGraphAttachment
extends MicrosoftGraphEntity

attachment.

Constructor Summary

Constructor Description
MicrosoftGraphAttachment()

Creates an instance of MicrosoftGraphAttachment class.

Method Summary

Modifier and Type Method and Description
Map<String,Object> additionalProperties()

Get the additionalProperties property: attachment.

String contentType()

Get the contentType property: The MIME type.

static MicrosoftGraphAttachment fromJson(JsonReader jsonReader)

Reads an instance of MicrosoftGraphAttachment from the JsonReader.

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.

JsonWriter toJson(JsonWriter jsonWriter)
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 MicrosoftGraphEntity

Methods inherited from java.lang.Object

Constructor Details

MicrosoftGraphAttachment

public MicrosoftGraphAttachment()

Creates an instance of MicrosoftGraphAttachment class.

Method Details

additionalProperties

public Map additionalProperties()

Get the additionalProperties property: attachment.

Overrides:

MicrosoftGraphAttachment.additionalProperties()

Returns:

the additionalProperties value.

contentType

public String contentType()

Get the contentType property: The MIME type.

Returns:

the contentType value.

fromJson

public static MicrosoftGraphAttachment fromJson(JsonReader jsonReader)

Reads an instance of MicrosoftGraphAttachment from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of MicrosoftGraphAttachment if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If an error occurs while reading the MicrosoftGraphAttachment.

isInline

public Boolean isInline()

Get the isInline property: true if the attachment is an inline attachment; otherwise, false.

Returns:

the isInline value.

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.

name

public String name()

Get the name property: The attachment's file name.

Returns:

the name value.

size

public Integer size()

Get the size property: The length of the attachment in bytes.

Returns:

the size value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

MicrosoftGraphAttachment.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Overrides:

MicrosoftGraphAttachment.validate()

withAdditionalProperties

public MicrosoftGraphAttachment withAdditionalProperties(Map additionalProperties)

Set the additionalProperties property: attachment.

Overrides:

MicrosoftGraphAttachment.withAdditionalProperties(Map<String,Object> additionalProperties)

Parameters:

additionalProperties - the additionalProperties value to set.

Returns:

the MicrosoftGraphAttachment object itself.

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.

withId

public MicrosoftGraphAttachment withId(String id)

Set the id property: Read-only.

Overrides:

MicrosoftGraphAttachment.withId(String id)

Parameters:

id

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.

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.

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.

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.

Applies to