CacheRuleProperties Class
- java.
lang. Object - com.
azure. resourcemanager. containerregistry. fluent. models. CacheRuleProperties
- com.
Implements
public final class CacheRuleProperties
implements JsonSerializable<CacheRuleProperties>
The properties of a cache rule.
Constructor Summary
| Constructor | Description |
|---|---|
| CacheRuleProperties() |
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 |
|
Provisioning |
provisioningState()
Get the provisioning |
| String |
sourceRepository()
Get the source |
| String |
targetRepository()
Get the target |
|
Json |
toJson(JsonWriter jsonWriter) |
| 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 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:
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 CacheRuleProperties fromJson(JsonReader jsonReader)
Reads an instance of CacheRuleProperties from the JsonReader.
Parameters:
Returns:
Throws:
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:
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
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:
Returns:
withSourceRepository
public CacheRuleProperties withSourceRepository(String sourceRepository)
Set the sourceRepository property: Source repository pulled from upstream.
Parameters:
Returns:
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:
Returns: