/**
* 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.implementation;
import com.microsoft.azure.management.containerregistry.Sku;
import org.joda.time.DateTime;
import com.microsoft.azure.management.containerregistry.ProvisioningState;
import com.microsoft.azure.management.containerregistry.StorageAccountProperties;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.microsoft.rest.serializer.JsonFlatten;
import com.microsoft.azure.Resource;
/**
* An object that represents a container registry.
*/
@JsonFlatten
public class RegistryInner extends Resource {
/**
* The SKU of the container registry.
*/
@JsonProperty(value = "sku", required = true)
private Sku sku;
/**
* The URL that can be used to log into the container registry.
*/
@JsonProperty(value = "properties.loginServer", access = JsonProperty.Access.WRITE_ONLY)
private String loginServer;
/**
* The creation date of the container registry in ISO8601 format.
*/
@JsonProperty(value = "properties.creationDate", access = JsonProperty.Access.WRITE_ONLY)
private DateTime creationDate;
/**
* The status of the container registry at the time the operation was
* called. Possible values include: 'Creating', 'Succeeded'.
*/
@JsonProperty(value = "properties.provisioningState", access = JsonProperty.Access.WRITE_ONLY)
private ProvisioningState provisioningState;
/**
* The value that indicates whether the admin user is enabled. This value
* is false by default.
*/
@JsonProperty(value = "properties.adminUserEnabled")
private Boolean adminUserEnabled;
/**
* The properties of the storage account for the container registry.
*/
@JsonProperty(value = "properties.storageAccount")
private StorageAccountProperties storageAccount;
/**
* Get the sku value.
*
* @return the sku value
*/
public Sku sku() {
return this.sku;
}
/**
* Set the sku value.
*
* @param sku the sku value to set
* @return the RegistryInner object itself.
*/
public RegistryInner withSku(Sku sku) {
this.sku = sku;
return this;
}
/**
* Get the loginServer value.
*
* @return the loginServer value
*/
public String loginServer() {
return this.loginServer;
}
/**
* Get the creationDate value.
*
* @return the creationDate value
*/
public DateTime creationDate() {
return this.creationDate;
}
/**
* Get the provisioningState value.
*
* @return the provisioningState value
*/
public ProvisioningState provisioningState() {
return this.provisioningState;
}
/**
* Get the adminUserEnabled value.
*
* @return the adminUserEnabled value
*/
public Boolean adminUserEnabled() {
return this.adminUserEnabled;
}
/**
* Set the adminUserEnabled value.
*
* @param adminUserEnabled the adminUserEnabled value to set
* @return the RegistryInner object itself.
*/
public RegistryInner withAdminUserEnabled(Boolean adminUserEnabled) {
this.adminUserEnabled = adminUserEnabled;
return this;
}
/**
* Get the storageAccount value.
*
* @return the storageAccount value
*/
public StorageAccountProperties storageAccount() {
return this.storageAccount;
}
/**
* Set the storageAccount value.
*
* @param storageAccount the storageAccount value to set
* @return the RegistryInner object itself.
*/
public RegistryInner withStorageAccount(StorageAccountProperties storageAccount) {
this.storageAccount = storageAccount;
return this;
}
}