CacheRuleProperties Class

  • java.lang.Object
    • com.azure.resourcemanager.containerregistry.fluent.models.CacheRuleProperties

Implements

public final class CacheRuleProperties
implements JsonSerializable<CacheRuleProperties>

The properties of a cache rule.

Constructor Summary

Constructor Description
CacheRuleProperties()

Creates an instance of CacheRuleProperties class.

Method Summary

Modifier and Type Method and Description
OffsetDateTime creationDate()

Get the creationDate property: The creation date of the cache rule.

String credentialSetResourceId()

Get the credentialSetResourceId property: The ARM resource ID of the credential store which is associated with the cache rule.

static CacheRuleProperties fromJson(JsonReader jsonReader)

Reads an instance of CacheRuleProperties from the JsonReader.

ProvisioningState provisioningState()

Get the provisioningState property: Provisioning state of the resource.

String sourceRepository()

Get the sourceRepository property: Source repository pulled from upstream.

String targetRepository()

Get the targetRepository property: Target repository specified in docker pull command.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

CacheRuleProperties withCredentialSetResourceId(String credentialSetResourceId)

Set the credentialSetResourceId property: The ARM resource ID of the credential store which is associated with the cache rule.

CacheRuleProperties withSourceRepository(String sourceRepository)

Set the sourceRepository property: Source repository pulled from upstream.

CacheRuleProperties withTargetRepository(String targetRepository)

Set the targetRepository property: Target repository specified in docker pull command.

Methods inherited from java.lang.Object

Constructor Details

CacheRuleProperties

public CacheRuleProperties()

Creates an instance of CacheRuleProperties class.

Method Details

creationDate

public OffsetDateTime creationDate()

Get the creationDate property: The creation date of the cache rule.

Returns:

the creationDate value.

credentialSetResourceId

public String credentialSetResourceId()

Get the credentialSetResourceId property: The ARM resource ID of the credential store which is associated with the cache rule.

Returns:

the credentialSetResourceId value.

fromJson

public static CacheRuleProperties fromJson(JsonReader jsonReader)

Reads an instance of CacheRuleProperties from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

provisioningState

public ProvisioningState provisioningState()

Get the provisioningState property: Provisioning state of the resource.

Returns:

the provisioningState value.

sourceRepository

public String sourceRepository()

Get the sourceRepository property: Source repository pulled from upstream.

Returns:

the sourceRepository value.

targetRepository

public String targetRepository()

Get the targetRepository property: Target repository specified in docker pull command. Eg: docker pull myregistry.azurecr.io/{targetRepository}:{tag}.

Returns:

the targetRepository value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withCredentialSetResourceId

public CacheRuleProperties withCredentialSetResourceId(String credentialSetResourceId)

Set the credentialSetResourceId property: The ARM resource ID of the credential store which is associated with the cache rule.

Parameters:

credentialSetResourceId - the credentialSetResourceId value to set.

Returns:

the CacheRuleProperties object itself.

withSourceRepository

public CacheRuleProperties withSourceRepository(String sourceRepository)

Set the sourceRepository property: Source repository pulled from upstream.

Parameters:

sourceRepository - the sourceRepository value to set.

Returns:

the CacheRuleProperties object itself.

withTargetRepository

public CacheRuleProperties withTargetRepository(String targetRepository)

Set the targetRepository property: Target repository specified in docker pull command. Eg: docker pull myregistry.azurecr.io/{targetRepository}:{tag}.

Parameters:

targetRepository - the targetRepository value to set.

Returns:

the CacheRuleProperties object itself.

Applies to