/* * Copyright 2018-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ package com.amazonaws.services.ecrpublic.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* The details of a public registry. *
* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class Registry implements Serializable, Cloneable, StructuredPojo { /** ** The Amazon Web Services account ID that's associated with the registry. If you do not specify a registry, the * default public registry is assumed. *
*/ private String registryId; /** ** The Amazon Resource Name (ARN) of the public registry. *
*/ private String registryArn; /** ** The URI of a public registry. The URI contains a universal prefix and the registry alias. *
*/ private String registryUri; /** ** Indicates whether the account is a verified Amazon Web Services Marketplace vendor. If an account is verified, * each public repository receives a verified account badge on the Amazon ECR Public Gallery. *
*/ private Boolean verified; /** ** An array of objects that represents the aliases for a public registry. *
*/ private java.util.List* The Amazon Web Services account ID that's associated with the registry. If you do not specify a registry, the * default public registry is assumed. *
* * @param registryId * The Amazon Web Services account ID that's associated with the registry. If you do not specify a registry, * the default public registry is assumed. */ public void setRegistryId(String registryId) { this.registryId = registryId; } /** ** The Amazon Web Services account ID that's associated with the registry. If you do not specify a registry, the * default public registry is assumed. *
* * @return The Amazon Web Services account ID that's associated with the registry. If you do not specify a registry, * the default public registry is assumed. */ public String getRegistryId() { return this.registryId; } /** ** The Amazon Web Services account ID that's associated with the registry. If you do not specify a registry, the * default public registry is assumed. *
* * @param registryId * The Amazon Web Services account ID that's associated with the registry. If you do not specify a registry, * the default public registry is assumed. * @return Returns a reference to this object so that method calls can be chained together. */ public Registry withRegistryId(String registryId) { setRegistryId(registryId); return this; } /** ** The Amazon Resource Name (ARN) of the public registry. *
* * @param registryArn * The Amazon Resource Name (ARN) of the public registry. */ public void setRegistryArn(String registryArn) { this.registryArn = registryArn; } /** ** The Amazon Resource Name (ARN) of the public registry. *
* * @return The Amazon Resource Name (ARN) of the public registry. */ public String getRegistryArn() { return this.registryArn; } /** ** The Amazon Resource Name (ARN) of the public registry. *
* * @param registryArn * The Amazon Resource Name (ARN) of the public registry. * @return Returns a reference to this object so that method calls can be chained together. */ public Registry withRegistryArn(String registryArn) { setRegistryArn(registryArn); return this; } /** ** The URI of a public registry. The URI contains a universal prefix and the registry alias. *
* * @param registryUri * The URI of a public registry. The URI contains a universal prefix and the registry alias. */ public void setRegistryUri(String registryUri) { this.registryUri = registryUri; } /** ** The URI of a public registry. The URI contains a universal prefix and the registry alias. *
* * @return The URI of a public registry. The URI contains a universal prefix and the registry alias. */ public String getRegistryUri() { return this.registryUri; } /** ** The URI of a public registry. The URI contains a universal prefix and the registry alias. *
* * @param registryUri * The URI of a public registry. The URI contains a universal prefix and the registry alias. * @return Returns a reference to this object so that method calls can be chained together. */ public Registry withRegistryUri(String registryUri) { setRegistryUri(registryUri); return this; } /** ** Indicates whether the account is a verified Amazon Web Services Marketplace vendor. If an account is verified, * each public repository receives a verified account badge on the Amazon ECR Public Gallery. *
* * @param verified * Indicates whether the account is a verified Amazon Web Services Marketplace vendor. If an account is * verified, each public repository receives a verified account badge on the Amazon ECR Public Gallery. */ public void setVerified(Boolean verified) { this.verified = verified; } /** ** Indicates whether the account is a verified Amazon Web Services Marketplace vendor. If an account is verified, * each public repository receives a verified account badge on the Amazon ECR Public Gallery. *
* * @return Indicates whether the account is a verified Amazon Web Services Marketplace vendor. If an account is * verified, each public repository receives a verified account badge on the Amazon ECR Public Gallery. */ public Boolean getVerified() { return this.verified; } /** ** Indicates whether the account is a verified Amazon Web Services Marketplace vendor. If an account is verified, * each public repository receives a verified account badge on the Amazon ECR Public Gallery. *
* * @param verified * Indicates whether the account is a verified Amazon Web Services Marketplace vendor. If an account is * verified, each public repository receives a verified account badge on the Amazon ECR Public Gallery. * @return Returns a reference to this object so that method calls can be chained together. */ public Registry withVerified(Boolean verified) { setVerified(verified); return this; } /** ** Indicates whether the account is a verified Amazon Web Services Marketplace vendor. If an account is verified, * each public repository receives a verified account badge on the Amazon ECR Public Gallery. *
* * @return Indicates whether the account is a verified Amazon Web Services Marketplace vendor. If an account is * verified, each public repository receives a verified account badge on the Amazon ECR Public Gallery. */ public Boolean isVerified() { return this.verified; } /** ** An array of objects that represents the aliases for a public registry. *
* * @return An array of objects that represents the aliases for a public registry. */ public java.util.List* An array of objects that represents the aliases for a public registry. *
* * @param aliases * An array of objects that represents the aliases for a public registry. */ public void setAliases(java.util.Collection* An array of objects that represents the aliases for a public registry. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setAliases(java.util.Collection)} or {@link #withAliases(java.util.Collection)} if you want to override * the existing values. *
* * @param aliases * An array of objects that represents the aliases for a public registry. * @return Returns a reference to this object so that method calls can be chained together. */ public Registry withAliases(RegistryAlias... aliases) { if (this.aliases == null) { setAliases(new java.util.ArrayList* An array of objects that represents the aliases for a public registry. *
* * @param aliases * An array of objects that represents the aliases for a public registry. * @return Returns a reference to this object so that method calls can be chained together. */ public Registry withAliases(java.util.Collection