CacheRuleInner Class
- java.
lang. Object - com.
azure. core. management. ProxyResource - com.
azure. resourcemanager. containerregistry. fluent. models. CacheRuleInner
- com.
- com.
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 Cache |
Method Summary
Modifier and Type | Method and Description |
---|---|
Offset |
creationDate()
Get the creation |
String |
credentialSetResourceId()
Get the credential |
static
Cache |
fromJson(JsonReader jsonReader)
Reads an instance of Cache |
String |
id()
Get the id property: Fully qualified resource Id for the resource. |
String |
name()
Get the name property: The name of the resource. |
Provisioning |
provisioningState()
Get the provisioning |
String |
sourceRepository()
Get the source |
System |
systemData()
Get the system |
String |
targetRepository()
Get the target |
Json |
toJson(JsonWriter jsonWriter) |
String |
type()
Get the type property: The type of the resource. |
void |
validate()
Validates the instance. |
Cache |
withCredentialSetResourceId(String credentialSetResourceId)
Set the credential |
Cache |
withSourceRepository(String sourceRepository)
Set the source |
Cache |
withTargetRepository(String targetRepository)
Set the target |
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:
credentialSetResourceId
public String credentialSetResourceId()
Get the credentialSetResourceId property: The ARM resource ID of the credential store which is associated with the cache rule.
Returns:
fromJson
public static CacheRuleInner fromJson(JsonReader jsonReader)
Reads an instance of CacheRuleInner from the JsonReader.
Parameters:
Returns:
Throws:
id
public String id()
Get the id property: Fully qualified resource Id for the resource.
Overrides:
CacheRuleInner.id()Returns:
name
public String name()
Get the name property: The name of the resource.
Overrides:
CacheRuleInner.name()Returns:
provisioningState
public ProvisioningState provisioningState()
Get the provisioningState property: Provisioning state of the resource.
Returns:
sourceRepository
public String sourceRepository()
Get the sourceRepository property: Source repository pulled from upstream.
Returns:
systemData
public SystemData systemData()
Get the systemData property: Metadata pertaining to creation and last modification of the resource.
Returns:
targetRepository
public String targetRepository()
Get the targetRepository property: Target repository specified in docker pull command. Eg: docker pull myregistry.azurecr.io/{targetRepository}:{tag}.
Returns:
toJson
public JsonWriter toJson(JsonWriter jsonWriter)
Overrides:
CacheRuleInner.toJson(JsonWriter jsonWriter)Parameters:
Throws:
type
public String type()
Get the type property: The type of the resource.
Overrides:
CacheRuleInner.type()Returns:
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:
Returns:
withSourceRepository
public CacheRuleInner withSourceRepository(String sourceRepository)
Set the sourceRepository property: Source repository pulled from upstream.
Parameters:
Returns:
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:
Returns:
Applies to
Azure SDK for Java