PatchProperties Class

  • java.lang.Object
    • com.azure.resourcemanager.appcontainers.models.PatchProperties

Implements

public final class PatchProperties
implements JsonSerializable<PatchProperties>

Top level properties that describes current states of the patch resource.

Constructor Summary

Constructor Description
PatchProperties()

Creates an instance of PatchProperties class.

Method Summary

Modifier and Type Method and Description
OffsetDateTime createdAt()

Get the createdAt property: The UTC timestamp that describes when the patch object was created.

static PatchProperties fromJson(JsonReader jsonReader)

Reads an instance of PatchProperties from the JsonReader.

OffsetDateTime lastModifiedAt()

Get the lastModifiedAt property: The UTC timestamp that describes when the patch object was last updated.

PatchApplyStatus patchApplyStatus()

Get the patchApplyStatus property: The status of the patch operation.

List<PatchDetails> patchDetails()

Get the patchDetails property: Detailed info describes the patch operation for the target container app.

String targetContainerAppId()

Get the targetContainerAppId property: The Azure resource id of the target container app for the patch.

String targetEnvironmentId()

Get the targetEnvironmentId property: The Azure resource id of the target environment for the patch.

String targetRevisionId()

Get the targetRevisionId property: The Azure resource id of the target revision for the patch.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

PatchProperties withTargetContainerAppId(String targetContainerAppId)

Set the targetContainerAppId property: The Azure resource id of the target container app for the patch.

PatchProperties withTargetEnvironmentId(String targetEnvironmentId)

Set the targetEnvironmentId property: The Azure resource id of the target environment for the patch.

PatchProperties withTargetRevisionId(String targetRevisionId)

Set the targetRevisionId property: The Azure resource id of the target revision for the patch.

Methods inherited from java.lang.Object

Constructor Details

PatchProperties

public PatchProperties()

Creates an instance of PatchProperties class.

Method Details

createdAt

public OffsetDateTime createdAt()

Get the createdAt property: The UTC timestamp that describes when the patch object was created.

Returns:

the createdAt value.

fromJson

public static PatchProperties fromJson(JsonReader jsonReader)

Reads an instance of PatchProperties from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

lastModifiedAt

public OffsetDateTime lastModifiedAt()

Get the lastModifiedAt property: The UTC timestamp that describes when the patch object was last updated.

Returns:

the lastModifiedAt value.

patchApplyStatus

public PatchApplyStatus patchApplyStatus()

Get the patchApplyStatus property: The status of the patch operation.

Returns:

the patchApplyStatus value.

patchDetails

public List<PatchDetails> patchDetails()

Get the patchDetails property: Detailed info describes the patch operation for the target container app.

Returns:

the patchDetails value.

targetContainerAppId

public String targetContainerAppId()

Get the targetContainerAppId property: The Azure resource id of the target container app for the patch.

Returns:

the targetContainerAppId value.

targetEnvironmentId

public String targetEnvironmentId()

Get the targetEnvironmentId property: The Azure resource id of the target environment for the patch.

Returns:

the targetEnvironmentId value.

targetRevisionId

public String targetRevisionId()

Get the targetRevisionId property: The Azure resource id of the target revision for the patch.

Returns:

the targetRevisionId value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withTargetContainerAppId

public PatchProperties withTargetContainerAppId(String targetContainerAppId)

Set the targetContainerAppId property: The Azure resource id of the target container app for the patch.

Parameters:

targetContainerAppId - the targetContainerAppId value to set.

Returns:

the PatchProperties object itself.

withTargetEnvironmentId

public PatchProperties withTargetEnvironmentId(String targetEnvironmentId)

Set the targetEnvironmentId property: The Azure resource id of the target environment for the patch.

Parameters:

targetEnvironmentId - the targetEnvironmentId value to set.

Returns:

the PatchProperties object itself.

withTargetRevisionId

public PatchProperties withTargetRevisionId(String targetRevisionId)

Set the targetRevisionId property: The Azure resource id of the target revision for the patch.

Parameters:

targetRevisionId - the targetRevisionId value to set.

Returns:

the PatchProperties object itself.

Applies to