Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the MIT License. See License.txt in the project root for
license information.
Code generated by Microsoft (R) AutoRest Code Generator.
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
*/
package com.microsoft.azure.management.containerregistry;
import java.util.Map;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.microsoft.rest.serializer.JsonFlatten;
The parameters for updating a container registry.
/**
* The parameters for updating a container registry.
*/
@JsonFlatten
public class RegistryUpdateParameters {
The tags for the container registry.
/**
* The tags for the container registry.
*/
@JsonProperty(value = "tags")
private Map<String, String> tags;
The SKU of the container registry.
/**
* The SKU of the container registry.
*/
@JsonProperty(value = "sku")
private Sku sku;
The value that indicates whether the admin user is enabled.
/**
* The value that indicates whether the admin user is enabled.
*/
@JsonProperty(value = "properties.adminUserEnabled")
private Boolean adminUserEnabled;
The parameters of a storage account for the container registry. Only
applicable to Classic SKU. If specified, the storage account must be in
the same physical location as the container registry.
/**
* The parameters of a storage account for the container registry. Only
* applicable to Classic SKU. If specified, the storage account must be in
* the same physical location as the container registry.
*/
@JsonProperty(value = "properties.storageAccount")
private StorageAccountProperties storageAccount;
Get the tags for the container registry.
Returns: the tags value
/**
* Get the tags for the container registry.
*
* @return the tags value
*/
public Map<String, String> tags() {
return this.tags;
}
Set the tags for the container registry.
Params: - tags – the tags value to set
Returns: the RegistryUpdateParameters object itself.
/**
* Set the tags for the container registry.
*
* @param tags the tags value to set
* @return the RegistryUpdateParameters object itself.
*/
public RegistryUpdateParameters withTags(Map<String, String> tags) {
this.tags = tags;
return this;
}
Get the SKU of the container registry.
Returns: the sku value
/**
* Get the SKU of the container registry.
*
* @return the sku value
*/
public Sku sku() {
return this.sku;
}
Set the SKU of the container registry.
Params: - sku – the sku value to set
Returns: the RegistryUpdateParameters object itself.
/**
* Set the SKU of the container registry.
*
* @param sku the sku value to set
* @return the RegistryUpdateParameters object itself.
*/
public RegistryUpdateParameters withSku(Sku sku) {
this.sku = sku;
return this;
}
Get the value that indicates whether the admin user is enabled.
Returns: the adminUserEnabled value
/**
* Get the value that indicates whether the admin user is enabled.
*
* @return the adminUserEnabled value
*/
public Boolean adminUserEnabled() {
return this.adminUserEnabled;
}
Set the value that indicates whether the admin user is enabled.
Params: - adminUserEnabled – the adminUserEnabled value to set
Returns: the RegistryUpdateParameters object itself.
/**
* Set the value that indicates whether the admin user is enabled.
*
* @param adminUserEnabled the adminUserEnabled value to set
* @return the RegistryUpdateParameters object itself.
*/
public RegistryUpdateParameters withAdminUserEnabled(Boolean adminUserEnabled) {
this.adminUserEnabled = adminUserEnabled;
return this;
}
Get the parameters of a storage account for the container registry. Only applicable to Classic SKU. If specified, the storage account must be in the same physical location as the container registry.
Returns: the storageAccount value
/**
* Get the parameters of a storage account for the container registry. Only applicable to Classic SKU. If specified, the storage account must be in the same physical location as the container registry.
*
* @return the storageAccount value
*/
public StorageAccountProperties storageAccount() {
return this.storageAccount;
}
Set the parameters of a storage account for the container registry. Only applicable to Classic SKU. If specified, the storage account must be in the same physical location as the container registry.
Params: - storageAccount – the storageAccount value to set
Returns: the RegistryUpdateParameters object itself.
/**
* Set the parameters of a storage account for the container registry. Only applicable to Classic SKU. If specified, the storage account must be in the same physical location as the container registry.
*
* @param storageAccount the storageAccount value to set
* @return the RegistryUpdateParameters object itself.
*/
public RegistryUpdateParameters withStorageAccount(StorageAccountProperties storageAccount) {
this.storageAccount = storageAccount;
return this;
}
}