CacheRuleInner Class

public final class CacheRuleInner
extends ProxyResource

An object that represents a cache rule for a container registry.

Constructor Summary

Constructor Description
CacheRuleInner()

Creates an instance of CacheRuleInner 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 CacheRuleInner fromJson(JsonReader jsonReader)

Reads an instance of CacheRuleInner from the JsonReader.

String id()

Get the id property: Fully qualified resource Id for the resource.

String name()

Get the name property: The name of the resource.

ProvisioningState provisioningState()

Get the provisioningState property: Provisioning state of the resource.

String sourceRepository()

Get the sourceRepository property: Source repository pulled from upstream.

SystemData systemData()

Get the systemData property: Metadata pertaining to creation and last modification of the resource.

String targetRepository()

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

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: The type of the resource.

void validate()

Validates the instance.

CacheRuleInner withCredentialSetResourceId(String credentialSetResourceId)

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

CacheRuleInner withSourceRepository(String sourceRepository)

Set the sourceRepository property: Source repository pulled from upstream.

CacheRuleInner withTargetRepository(String targetRepository)

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

Methods inherited from ProxyResource

Methods inherited from java.lang.Object

Constructor Details

CacheRuleInner

public CacheRuleInner()

Creates an instance of CacheRuleInner 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 CacheRuleInner fromJson(JsonReader jsonReader)

Reads an instance of CacheRuleInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

id

public String id()

Get the id property: Fully qualified resource Id for the resource.

Overrides:

CacheRuleInner.id()

Returns:

the id value.

name

public String name()

Get the name property: The name of the resource.

Overrides:

CacheRuleInner.name()

Returns:

the name value.

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.

systemData

public SystemData systemData()

Get the systemData property: Metadata pertaining to creation and last modification of the resource.

Returns:

the systemData 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)

Overrides:

CacheRuleInner.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: The type of the resource.

Overrides:

CacheRuleInner.type()

Returns:

the type value.

validate

public void validate()

Validates the instance.

withCredentialSetResourceId

public CacheRuleInner 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 CacheRuleInner object itself.

withSourceRepository

public CacheRuleInner withSourceRepository(String sourceRepository)

Set the sourceRepository property: Source repository pulled from upstream.

Parameters:

sourceRepository - the sourceRepository value to set.

Returns:

the CacheRuleInner object itself.

withTargetRepository

public CacheRuleInner 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 CacheRuleInner object itself.

Applies to