All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.amazonaws.services.codeartifact.model.DomainDescription Maven / Gradle / Ivy

Go to download

The AWS Java SDK for CodeArtifact module holds the client classes that are used for communicating with CodeArtifact Service

There is a newer version: 1.12.780
Show newest version
/*
 * Copyright 2015-2020 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.codeartifact.model;

import java.io.Serializable;
import javax.annotation.Generated;
import com.amazonaws.protocol.StructuredPojo;
import com.amazonaws.protocol.ProtocolMarshaller;

/**
 * 

* Information about a domain. A domain is a container for repositories. When you create a domain, it is empty until you * add one or more repositories. *

* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class DomainDescription implements Serializable, Cloneable, StructuredPojo { /** *

* The name of the domain. *

*/ private String name; /** *

* The AWS account ID that owns the domain. *

*/ private String owner; /** *

* The Amazon Resource Name (ARN) of the domain. *

*/ private String arn; /** *

* The current status of a domain. The valid values are *

*
    *
  • *

    * Active *

    *
  • *
  • *

    * Deleted *

    *
  • *
*/ private String status; /** *

* A timestamp that represents the date and time the domain was created. *

*/ private java.util.Date createdTime; /** *

* The ARN of an AWS Key Management Service (AWS KMS) key associated with a domain. *

*/ private String encryptionKey; /** *

* The number of repositories in the domain. *

*/ private Integer repositoryCount; /** *

* The total size of all assets in the domain. *

*/ private Long assetSizeBytes; /** *

* The Amazon Resource Name (ARN) of the Amazon S3 bucket that is used to store package assets in the domain. *

*/ private String s3BucketArn; /** *

* The name of the domain. *

* * @param name * The name of the domain. */ public void setName(String name) { this.name = name; } /** *

* The name of the domain. *

* * @return The name of the domain. */ public String getName() { return this.name; } /** *

* The name of the domain. *

* * @param name * The name of the domain. * @return Returns a reference to this object so that method calls can be chained together. */ public DomainDescription withName(String name) { setName(name); return this; } /** *

* The AWS account ID that owns the domain. *

* * @param owner * The AWS account ID that owns the domain. */ public void setOwner(String owner) { this.owner = owner; } /** *

* The AWS account ID that owns the domain. *

* * @return The AWS account ID that owns the domain. */ public String getOwner() { return this.owner; } /** *

* The AWS account ID that owns the domain. *

* * @param owner * The AWS account ID that owns the domain. * @return Returns a reference to this object so that method calls can be chained together. */ public DomainDescription withOwner(String owner) { setOwner(owner); return this; } /** *

* The Amazon Resource Name (ARN) of the domain. *

* * @param arn * The Amazon Resource Name (ARN) of the domain. */ public void setArn(String arn) { this.arn = arn; } /** *

* The Amazon Resource Name (ARN) of the domain. *

* * @return The Amazon Resource Name (ARN) of the domain. */ public String getArn() { return this.arn; } /** *

* The Amazon Resource Name (ARN) of the domain. *

* * @param arn * The Amazon Resource Name (ARN) of the domain. * @return Returns a reference to this object so that method calls can be chained together. */ public DomainDescription withArn(String arn) { setArn(arn); return this; } /** *

* The current status of a domain. The valid values are *

*
    *
  • *

    * Active *

    *
  • *
  • *

    * Deleted *

    *
  • *
* * @param status * The current status of a domain. The valid values are

*
    *
  • *

    * Active *

    *
  • *
  • *

    * Deleted *

    *
  • * @see DomainStatus */ public void setStatus(String status) { this.status = status; } /** *

    * The current status of a domain. The valid values are *

    *
      *
    • *

      * Active *

      *
    • *
    • *

      * Deleted *

      *
    • *
    * * @return The current status of a domain. The valid values are

    *
      *
    • *

      * Active *

      *
    • *
    • *

      * Deleted *

      *
    • * @see DomainStatus */ public String getStatus() { return this.status; } /** *

      * The current status of a domain. The valid values are *

      *
        *
      • *

        * Active *

        *
      • *
      • *

        * Deleted *

        *
      • *
      * * @param status * The current status of a domain. The valid values are

      *
        *
      • *

        * Active *

        *
      • *
      • *

        * Deleted *

        *
      • * @return Returns a reference to this object so that method calls can be chained together. * @see DomainStatus */ public DomainDescription withStatus(String status) { setStatus(status); return this; } /** *

        * The current status of a domain. The valid values are *

        *
          *
        • *

          * Active *

          *
        • *
        • *

          * Deleted *

          *
        • *
        * * @param status * The current status of a domain. The valid values are

        *
          *
        • *

          * Active *

          *
        • *
        • *

          * Deleted *

          *
        • * @return Returns a reference to this object so that method calls can be chained together. * @see DomainStatus */ public DomainDescription withStatus(DomainStatus status) { this.status = status.toString(); return this; } /** *

          * A timestamp that represents the date and time the domain was created. *

          * * @param createdTime * A timestamp that represents the date and time the domain was created. */ public void setCreatedTime(java.util.Date createdTime) { this.createdTime = createdTime; } /** *

          * A timestamp that represents the date and time the domain was created. *

          * * @return A timestamp that represents the date and time the domain was created. */ public java.util.Date getCreatedTime() { return this.createdTime; } /** *

          * A timestamp that represents the date and time the domain was created. *

          * * @param createdTime * A timestamp that represents the date and time the domain was created. * @return Returns a reference to this object so that method calls can be chained together. */ public DomainDescription withCreatedTime(java.util.Date createdTime) { setCreatedTime(createdTime); return this; } /** *

          * The ARN of an AWS Key Management Service (AWS KMS) key associated with a domain. *

          * * @param encryptionKey * The ARN of an AWS Key Management Service (AWS KMS) key associated with a domain. */ public void setEncryptionKey(String encryptionKey) { this.encryptionKey = encryptionKey; } /** *

          * The ARN of an AWS Key Management Service (AWS KMS) key associated with a domain. *

          * * @return The ARN of an AWS Key Management Service (AWS KMS) key associated with a domain. */ public String getEncryptionKey() { return this.encryptionKey; } /** *

          * The ARN of an AWS Key Management Service (AWS KMS) key associated with a domain. *

          * * @param encryptionKey * The ARN of an AWS Key Management Service (AWS KMS) key associated with a domain. * @return Returns a reference to this object so that method calls can be chained together. */ public DomainDescription withEncryptionKey(String encryptionKey) { setEncryptionKey(encryptionKey); return this; } /** *

          * The number of repositories in the domain. *

          * * @param repositoryCount * The number of repositories in the domain. */ public void setRepositoryCount(Integer repositoryCount) { this.repositoryCount = repositoryCount; } /** *

          * The number of repositories in the domain. *

          * * @return The number of repositories in the domain. */ public Integer getRepositoryCount() { return this.repositoryCount; } /** *

          * The number of repositories in the domain. *

          * * @param repositoryCount * The number of repositories in the domain. * @return Returns a reference to this object so that method calls can be chained together. */ public DomainDescription withRepositoryCount(Integer repositoryCount) { setRepositoryCount(repositoryCount); return this; } /** *

          * The total size of all assets in the domain. *

          * * @param assetSizeBytes * The total size of all assets in the domain. */ public void setAssetSizeBytes(Long assetSizeBytes) { this.assetSizeBytes = assetSizeBytes; } /** *

          * The total size of all assets in the domain. *

          * * @return The total size of all assets in the domain. */ public Long getAssetSizeBytes() { return this.assetSizeBytes; } /** *

          * The total size of all assets in the domain. *

          * * @param assetSizeBytes * The total size of all assets in the domain. * @return Returns a reference to this object so that method calls can be chained together. */ public DomainDescription withAssetSizeBytes(Long assetSizeBytes) { setAssetSizeBytes(assetSizeBytes); return this; } /** *

          * The Amazon Resource Name (ARN) of the Amazon S3 bucket that is used to store package assets in the domain. *

          * * @param s3BucketArn * The Amazon Resource Name (ARN) of the Amazon S3 bucket that is used to store package assets in the domain. */ public void setS3BucketArn(String s3BucketArn) { this.s3BucketArn = s3BucketArn; } /** *

          * The Amazon Resource Name (ARN) of the Amazon S3 bucket that is used to store package assets in the domain. *

          * * @return The Amazon Resource Name (ARN) of the Amazon S3 bucket that is used to store package assets in the * domain. */ public String getS3BucketArn() { return this.s3BucketArn; } /** *

          * The Amazon Resource Name (ARN) of the Amazon S3 bucket that is used to store package assets in the domain. *

          * * @param s3BucketArn * The Amazon Resource Name (ARN) of the Amazon S3 bucket that is used to store package assets in the domain. * @return Returns a reference to this object so that method calls can be chained together. */ public DomainDescription withS3BucketArn(String s3BucketArn) { setS3BucketArn(s3BucketArn); return this; } /** * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be * redacted from this string using a placeholder value. * * @return A string representation of this object. * * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getName() != null) sb.append("Name: ").append(getName()).append(","); if (getOwner() != null) sb.append("Owner: ").append(getOwner()).append(","); if (getArn() != null) sb.append("Arn: ").append(getArn()).append(","); if (getStatus() != null) sb.append("Status: ").append(getStatus()).append(","); if (getCreatedTime() != null) sb.append("CreatedTime: ").append(getCreatedTime()).append(","); if (getEncryptionKey() != null) sb.append("EncryptionKey: ").append(getEncryptionKey()).append(","); if (getRepositoryCount() != null) sb.append("RepositoryCount: ").append(getRepositoryCount()).append(","); if (getAssetSizeBytes() != null) sb.append("AssetSizeBytes: ").append(getAssetSizeBytes()).append(","); if (getS3BucketArn() != null) sb.append("S3BucketArn: ").append(getS3BucketArn()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof DomainDescription == false) return false; DomainDescription other = (DomainDescription) obj; if (other.getName() == null ^ this.getName() == null) return false; if (other.getName() != null && other.getName().equals(this.getName()) == false) return false; if (other.getOwner() == null ^ this.getOwner() == null) return false; if (other.getOwner() != null && other.getOwner().equals(this.getOwner()) == false) return false; if (other.getArn() == null ^ this.getArn() == null) return false; if (other.getArn() != null && other.getArn().equals(this.getArn()) == false) return false; if (other.getStatus() == null ^ this.getStatus() == null) return false; if (other.getStatus() != null && other.getStatus().equals(this.getStatus()) == false) return false; if (other.getCreatedTime() == null ^ this.getCreatedTime() == null) return false; if (other.getCreatedTime() != null && other.getCreatedTime().equals(this.getCreatedTime()) == false) return false; if (other.getEncryptionKey() == null ^ this.getEncryptionKey() == null) return false; if (other.getEncryptionKey() != null && other.getEncryptionKey().equals(this.getEncryptionKey()) == false) return false; if (other.getRepositoryCount() == null ^ this.getRepositoryCount() == null) return false; if (other.getRepositoryCount() != null && other.getRepositoryCount().equals(this.getRepositoryCount()) == false) return false; if (other.getAssetSizeBytes() == null ^ this.getAssetSizeBytes() == null) return false; if (other.getAssetSizeBytes() != null && other.getAssetSizeBytes().equals(this.getAssetSizeBytes()) == false) return false; if (other.getS3BucketArn() == null ^ this.getS3BucketArn() == null) return false; if (other.getS3BucketArn() != null && other.getS3BucketArn().equals(this.getS3BucketArn()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getName() == null) ? 0 : getName().hashCode()); hashCode = prime * hashCode + ((getOwner() == null) ? 0 : getOwner().hashCode()); hashCode = prime * hashCode + ((getArn() == null) ? 0 : getArn().hashCode()); hashCode = prime * hashCode + ((getStatus() == null) ? 0 : getStatus().hashCode()); hashCode = prime * hashCode + ((getCreatedTime() == null) ? 0 : getCreatedTime().hashCode()); hashCode = prime * hashCode + ((getEncryptionKey() == null) ? 0 : getEncryptionKey().hashCode()); hashCode = prime * hashCode + ((getRepositoryCount() == null) ? 0 : getRepositoryCount().hashCode()); hashCode = prime * hashCode + ((getAssetSizeBytes() == null) ? 0 : getAssetSizeBytes().hashCode()); hashCode = prime * hashCode + ((getS3BucketArn() == null) ? 0 : getS3BucketArn().hashCode()); return hashCode; } @Override public DomainDescription clone() { try { return (DomainDescription) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } @com.amazonaws.annotation.SdkInternalApi @Override public void marshall(ProtocolMarshaller protocolMarshaller) { com.amazonaws.services.codeartifact.model.transform.DomainDescriptionMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy