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

com.amazonaws.services.datazone.model.DomainSummary Maven / Gradle / Ivy

/*
 * Copyright 2019-2024 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.datazone.model;

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

/**
 * 

* A summary of a Amazon DataZone domain. *

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

* The ARN of the Amazon DataZone domain. *

*/ private String arn; /** *

* A timestamp of when a Amazon DataZone domain was created. *

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

* A description of an Amazon DataZone domain. *

*/ private String description; /** *

* The ID of the Amazon DataZone domain. *

*/ private String id; /** *

* A timestamp of when a Amazon DataZone domain was last updated. *

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

* The identifier of the Amazon Web Services account that manages the domain. *

*/ private String managedAccountId; /** *

* A name of an Amazon DataZone domain. *

*/ private String name; /** *

* The data portal URL for the Amazon DataZone domain. *

*/ private String portalUrl; /** *

* The status of the Amazon DataZone domain. *

*/ private String status; /** *

* The ARN of the Amazon DataZone domain. *

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

* The ARN of the Amazon DataZone domain. *

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

* The ARN of the Amazon DataZone domain. *

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

* A timestamp of when a Amazon DataZone domain was created. *

* * @param createdAt * A timestamp of when a Amazon DataZone domain was created. */ public void setCreatedAt(java.util.Date createdAt) { this.createdAt = createdAt; } /** *

* A timestamp of when a Amazon DataZone domain was created. *

* * @return A timestamp of when a Amazon DataZone domain was created. */ public java.util.Date getCreatedAt() { return this.createdAt; } /** *

* A timestamp of when a Amazon DataZone domain was created. *

* * @param createdAt * A timestamp of when a Amazon DataZone domain was created. * @return Returns a reference to this object so that method calls can be chained together. */ public DomainSummary withCreatedAt(java.util.Date createdAt) { setCreatedAt(createdAt); return this; } /** *

* A description of an Amazon DataZone domain. *

* * @param description * A description of an Amazon DataZone domain. */ public void setDescription(String description) { this.description = description; } /** *

* A description of an Amazon DataZone domain. *

* * @return A description of an Amazon DataZone domain. */ public String getDescription() { return this.description; } /** *

* A description of an Amazon DataZone domain. *

* * @param description * A description of an Amazon DataZone domain. * @return Returns a reference to this object so that method calls can be chained together. */ public DomainSummary withDescription(String description) { setDescription(description); return this; } /** *

* The ID of the Amazon DataZone domain. *

* * @param id * The ID of the Amazon DataZone domain. */ public void setId(String id) { this.id = id; } /** *

* The ID of the Amazon DataZone domain. *

* * @return The ID of the Amazon DataZone domain. */ public String getId() { return this.id; } /** *

* The ID of the Amazon DataZone domain. *

* * @param id * The ID of the Amazon DataZone domain. * @return Returns a reference to this object so that method calls can be chained together. */ public DomainSummary withId(String id) { setId(id); return this; } /** *

* A timestamp of when a Amazon DataZone domain was last updated. *

* * @param lastUpdatedAt * A timestamp of when a Amazon DataZone domain was last updated. */ public void setLastUpdatedAt(java.util.Date lastUpdatedAt) { this.lastUpdatedAt = lastUpdatedAt; } /** *

* A timestamp of when a Amazon DataZone domain was last updated. *

* * @return A timestamp of when a Amazon DataZone domain was last updated. */ public java.util.Date getLastUpdatedAt() { return this.lastUpdatedAt; } /** *

* A timestamp of when a Amazon DataZone domain was last updated. *

* * @param lastUpdatedAt * A timestamp of when a Amazon DataZone domain was last updated. * @return Returns a reference to this object so that method calls can be chained together. */ public DomainSummary withLastUpdatedAt(java.util.Date lastUpdatedAt) { setLastUpdatedAt(lastUpdatedAt); return this; } /** *

* The identifier of the Amazon Web Services account that manages the domain. *

* * @param managedAccountId * The identifier of the Amazon Web Services account that manages the domain. */ public void setManagedAccountId(String managedAccountId) { this.managedAccountId = managedAccountId; } /** *

* The identifier of the Amazon Web Services account that manages the domain. *

* * @return The identifier of the Amazon Web Services account that manages the domain. */ public String getManagedAccountId() { return this.managedAccountId; } /** *

* The identifier of the Amazon Web Services account that manages the domain. *

* * @param managedAccountId * The identifier of the Amazon Web Services account that manages the domain. * @return Returns a reference to this object so that method calls can be chained together. */ public DomainSummary withManagedAccountId(String managedAccountId) { setManagedAccountId(managedAccountId); return this; } /** *

* A name of an Amazon DataZone domain. *

* * @param name * A name of an Amazon DataZone domain. */ public void setName(String name) { this.name = name; } /** *

* A name of an Amazon DataZone domain. *

* * @return A name of an Amazon DataZone domain. */ public String getName() { return this.name; } /** *

* A name of an Amazon DataZone domain. *

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

* The data portal URL for the Amazon DataZone domain. *

* * @param portalUrl * The data portal URL for the Amazon DataZone domain. */ public void setPortalUrl(String portalUrl) { this.portalUrl = portalUrl; } /** *

* The data portal URL for the Amazon DataZone domain. *

* * @return The data portal URL for the Amazon DataZone domain. */ public String getPortalUrl() { return this.portalUrl; } /** *

* The data portal URL for the Amazon DataZone domain. *

* * @param portalUrl * The data portal URL for the Amazon DataZone domain. * @return Returns a reference to this object so that method calls can be chained together. */ public DomainSummary withPortalUrl(String portalUrl) { setPortalUrl(portalUrl); return this; } /** *

* The status of the Amazon DataZone domain. *

* * @param status * The status of the Amazon DataZone domain. * @see DomainStatus */ public void setStatus(String status) { this.status = status; } /** *

* The status of the Amazon DataZone domain. *

* * @return The status of the Amazon DataZone domain. * @see DomainStatus */ public String getStatus() { return this.status; } /** *

* The status of the Amazon DataZone domain. *

* * @param status * The status of the Amazon DataZone domain. * @return Returns a reference to this object so that method calls can be chained together. * @see DomainStatus */ public DomainSummary withStatus(String status) { setStatus(status); return this; } /** *

* The status of the Amazon DataZone domain. *

* * @param status * The status of the Amazon DataZone domain. * @return Returns a reference to this object so that method calls can be chained together. * @see DomainStatus */ public DomainSummary withStatus(DomainStatus status) { this.status = status.toString(); 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 (getArn() != null) sb.append("Arn: ").append(getArn()).append(","); if (getCreatedAt() != null) sb.append("CreatedAt: ").append(getCreatedAt()).append(","); if (getDescription() != null) sb.append("Description: ").append("***Sensitive Data Redacted***").append(","); if (getId() != null) sb.append("Id: ").append(getId()).append(","); if (getLastUpdatedAt() != null) sb.append("LastUpdatedAt: ").append(getLastUpdatedAt()).append(","); if (getManagedAccountId() != null) sb.append("ManagedAccountId: ").append(getManagedAccountId()).append(","); if (getName() != null) sb.append("Name: ").append("***Sensitive Data Redacted***").append(","); if (getPortalUrl() != null) sb.append("PortalUrl: ").append(getPortalUrl()).append(","); if (getStatus() != null) sb.append("Status: ").append(getStatus()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof DomainSummary == false) return false; DomainSummary other = (DomainSummary) obj; if (other.getArn() == null ^ this.getArn() == null) return false; if (other.getArn() != null && other.getArn().equals(this.getArn()) == false) return false; if (other.getCreatedAt() == null ^ this.getCreatedAt() == null) return false; if (other.getCreatedAt() != null && other.getCreatedAt().equals(this.getCreatedAt()) == false) return false; if (other.getDescription() == null ^ this.getDescription() == null) return false; if (other.getDescription() != null && other.getDescription().equals(this.getDescription()) == false) return false; if (other.getId() == null ^ this.getId() == null) return false; if (other.getId() != null && other.getId().equals(this.getId()) == false) return false; if (other.getLastUpdatedAt() == null ^ this.getLastUpdatedAt() == null) return false; if (other.getLastUpdatedAt() != null && other.getLastUpdatedAt().equals(this.getLastUpdatedAt()) == false) return false; if (other.getManagedAccountId() == null ^ this.getManagedAccountId() == null) return false; if (other.getManagedAccountId() != null && other.getManagedAccountId().equals(this.getManagedAccountId()) == false) return false; if (other.getName() == null ^ this.getName() == null) return false; if (other.getName() != null && other.getName().equals(this.getName()) == false) return false; if (other.getPortalUrl() == null ^ this.getPortalUrl() == null) return false; if (other.getPortalUrl() != null && other.getPortalUrl().equals(this.getPortalUrl()) == false) return false; if (other.getStatus() == null ^ this.getStatus() == null) return false; if (other.getStatus() != null && other.getStatus().equals(this.getStatus()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getArn() == null) ? 0 : getArn().hashCode()); hashCode = prime * hashCode + ((getCreatedAt() == null) ? 0 : getCreatedAt().hashCode()); hashCode = prime * hashCode + ((getDescription() == null) ? 0 : getDescription().hashCode()); hashCode = prime * hashCode + ((getId() == null) ? 0 : getId().hashCode()); hashCode = prime * hashCode + ((getLastUpdatedAt() == null) ? 0 : getLastUpdatedAt().hashCode()); hashCode = prime * hashCode + ((getManagedAccountId() == null) ? 0 : getManagedAccountId().hashCode()); hashCode = prime * hashCode + ((getName() == null) ? 0 : getName().hashCode()); hashCode = prime * hashCode + ((getPortalUrl() == null) ? 0 : getPortalUrl().hashCode()); hashCode = prime * hashCode + ((getStatus() == null) ? 0 : getStatus().hashCode()); return hashCode; } @Override public DomainSummary clone() { try { return (DomainSummary) 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.datazone.model.transform.DomainSummaryMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy