ArtifactProperties Class

  • java.lang.Object
    • com.azure.resourcemanager.logic.models.ArtifactProperties

Implements

public class ArtifactProperties
implements JsonSerializable<ArtifactProperties>

The artifact properties definition.

Constructor Summary

Constructor Description
ArtifactProperties()

Creates an instance of ArtifactProperties class.

Method Summary

Modifier and Type Method and Description
OffsetDateTime changedTime()

Get the changedTime property: The artifact changed time.

OffsetDateTime createdTime()

Get the createdTime property: The artifact creation time.

static ArtifactProperties fromJson(JsonReader jsonReader)

Reads an instance of ArtifactProperties from the JsonReader.

Object metadata()

Get the metadata property: Anything.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

ArtifactProperties withChangedTime(OffsetDateTime changedTime)

Set the changedTime property: The artifact changed time.

ArtifactProperties withCreatedTime(OffsetDateTime createdTime)

Set the createdTime property: The artifact creation time.

ArtifactProperties withMetadata(Object metadata)

Set the metadata property: Anything.

Methods inherited from java.lang.Object

Constructor Details

ArtifactProperties

public ArtifactProperties()

Creates an instance of ArtifactProperties class.

Method Details

changedTime

public OffsetDateTime changedTime()

Get the changedTime property: The artifact changed time.

Returns:

the changedTime value.

createdTime

public OffsetDateTime createdTime()

Get the createdTime property: The artifact creation time.

Returns:

the createdTime value.

fromJson

public static ArtifactProperties fromJson(JsonReader jsonReader)

Reads an instance of ArtifactProperties from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of ArtifactProperties 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 ArtifactProperties.

metadata

public Object metadata()

Get the metadata property: Anything.

Returns:

the metadata value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withChangedTime

public ArtifactProperties withChangedTime(OffsetDateTime changedTime)

Set the changedTime property: The artifact changed time.

Parameters:

changedTime - the changedTime value to set.

Returns:

the ArtifactProperties object itself.

withCreatedTime

public ArtifactProperties withCreatedTime(OffsetDateTime createdTime)

Set the createdTime property: The artifact creation time.

Parameters:

createdTime - the createdTime value to set.

Returns:

the ArtifactProperties object itself.

withMetadata

public ArtifactProperties withMetadata(Object metadata)

Set the metadata property: Anything.

Parameters:

metadata - the metadata value to set.

Returns:

the ArtifactProperties object itself.

Applies to