
com.amazonaws.services.sagemaker.model.DomainDetails Maven / Gradle / Ivy
Show all versions of aws-java-sdk-sagemaker Show documentation
/*
* 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.sagemaker.model;
import java.io.Serializable;
import javax.annotation.Generated;
import com.amazonaws.protocol.StructuredPojo;
import com.amazonaws.protocol.ProtocolMarshaller;
/**
*
* The domain's details.
*
*
* @see AWS API
* Documentation
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class DomainDetails implements Serializable, Cloneable, StructuredPojo {
/**
*
* The domain's Amazon Resource Name (ARN).
*
*/
private String domainArn;
/**
*
* The domain ID.
*
*/
private String domainId;
/**
*
* The domain name.
*
*/
private String domainName;
/**
*
* The status.
*
*/
private String status;
/**
*
* The creation time.
*
*/
private java.util.Date creationTime;
/**
*
* The last modified time.
*
*/
private java.util.Date lastModifiedTime;
/**
*
* The domain's URL.
*
*/
private String url;
/**
*
* The domain's Amazon Resource Name (ARN).
*
*
* @param domainArn
* The domain's Amazon Resource Name (ARN).
*/
public void setDomainArn(String domainArn) {
this.domainArn = domainArn;
}
/**
*
* The domain's Amazon Resource Name (ARN).
*
*
* @return The domain's Amazon Resource Name (ARN).
*/
public String getDomainArn() {
return this.domainArn;
}
/**
*
* The domain's Amazon Resource Name (ARN).
*
*
* @param domainArn
* The domain's Amazon Resource Name (ARN).
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DomainDetails withDomainArn(String domainArn) {
setDomainArn(domainArn);
return this;
}
/**
*
* The domain ID.
*
*
* @param domainId
* The domain ID.
*/
public void setDomainId(String domainId) {
this.domainId = domainId;
}
/**
*
* The domain ID.
*
*
* @return The domain ID.
*/
public String getDomainId() {
return this.domainId;
}
/**
*
* The domain ID.
*
*
* @param domainId
* The domain ID.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DomainDetails withDomainId(String domainId) {
setDomainId(domainId);
return this;
}
/**
*
* The domain name.
*
*
* @param domainName
* The domain name.
*/
public void setDomainName(String domainName) {
this.domainName = domainName;
}
/**
*
* The domain name.
*
*
* @return The domain name.
*/
public String getDomainName() {
return this.domainName;
}
/**
*
* The domain name.
*
*
* @param domainName
* The domain name.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DomainDetails withDomainName(String domainName) {
setDomainName(domainName);
return this;
}
/**
*
* The status.
*
*
* @param status
* The status.
* @see DomainStatus
*/
public void setStatus(String status) {
this.status = status;
}
/**
*
* The status.
*
*
* @return The status.
* @see DomainStatus
*/
public String getStatus() {
return this.status;
}
/**
*
* The status.
*
*
* @param status
* The status.
* @return Returns a reference to this object so that method calls can be chained together.
* @see DomainStatus
*/
public DomainDetails withStatus(String status) {
setStatus(status);
return this;
}
/**
*
* The status.
*
*
* @param status
* The status.
* @return Returns a reference to this object so that method calls can be chained together.
* @see DomainStatus
*/
public DomainDetails withStatus(DomainStatus status) {
this.status = status.toString();
return this;
}
/**
*
* The creation time.
*
*
* @param creationTime
* The creation time.
*/
public void setCreationTime(java.util.Date creationTime) {
this.creationTime = creationTime;
}
/**
*
* The creation time.
*
*
* @return The creation time.
*/
public java.util.Date getCreationTime() {
return this.creationTime;
}
/**
*
* The creation time.
*
*
* @param creationTime
* The creation time.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DomainDetails withCreationTime(java.util.Date creationTime) {
setCreationTime(creationTime);
return this;
}
/**
*
* The last modified time.
*
*
* @param lastModifiedTime
* The last modified time.
*/
public void setLastModifiedTime(java.util.Date lastModifiedTime) {
this.lastModifiedTime = lastModifiedTime;
}
/**
*
* The last modified time.
*
*
* @return The last modified time.
*/
public java.util.Date getLastModifiedTime() {
return this.lastModifiedTime;
}
/**
*
* The last modified time.
*
*
* @param lastModifiedTime
* The last modified time.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DomainDetails withLastModifiedTime(java.util.Date lastModifiedTime) {
setLastModifiedTime(lastModifiedTime);
return this;
}
/**
*
* The domain's URL.
*
*
* @param url
* The domain's URL.
*/
public void setUrl(String url) {
this.url = url;
}
/**
*
* The domain's URL.
*
*
* @return The domain's URL.
*/
public String getUrl() {
return this.url;
}
/**
*
* The domain's URL.
*
*
* @param url
* The domain's URL.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DomainDetails withUrl(String url) {
setUrl(url);
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 (getDomainArn() != null)
sb.append("DomainArn: ").append(getDomainArn()).append(",");
if (getDomainId() != null)
sb.append("DomainId: ").append(getDomainId()).append(",");
if (getDomainName() != null)
sb.append("DomainName: ").append(getDomainName()).append(",");
if (getStatus() != null)
sb.append("Status: ").append(getStatus()).append(",");
if (getCreationTime() != null)
sb.append("CreationTime: ").append(getCreationTime()).append(",");
if (getLastModifiedTime() != null)
sb.append("LastModifiedTime: ").append(getLastModifiedTime()).append(",");
if (getUrl() != null)
sb.append("Url: ").append(getUrl());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof DomainDetails == false)
return false;
DomainDetails other = (DomainDetails) obj;
if (other.getDomainArn() == null ^ this.getDomainArn() == null)
return false;
if (other.getDomainArn() != null && other.getDomainArn().equals(this.getDomainArn()) == false)
return false;
if (other.getDomainId() == null ^ this.getDomainId() == null)
return false;
if (other.getDomainId() != null && other.getDomainId().equals(this.getDomainId()) == false)
return false;
if (other.getDomainName() == null ^ this.getDomainName() == null)
return false;
if (other.getDomainName() != null && other.getDomainName().equals(this.getDomainName()) == 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.getCreationTime() == null ^ this.getCreationTime() == null)
return false;
if (other.getCreationTime() != null && other.getCreationTime().equals(this.getCreationTime()) == false)
return false;
if (other.getLastModifiedTime() == null ^ this.getLastModifiedTime() == null)
return false;
if (other.getLastModifiedTime() != null && other.getLastModifiedTime().equals(this.getLastModifiedTime()) == false)
return false;
if (other.getUrl() == null ^ this.getUrl() == null)
return false;
if (other.getUrl() != null && other.getUrl().equals(this.getUrl()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getDomainArn() == null) ? 0 : getDomainArn().hashCode());
hashCode = prime * hashCode + ((getDomainId() == null) ? 0 : getDomainId().hashCode());
hashCode = prime * hashCode + ((getDomainName() == null) ? 0 : getDomainName().hashCode());
hashCode = prime * hashCode + ((getStatus() == null) ? 0 : getStatus().hashCode());
hashCode = prime * hashCode + ((getCreationTime() == null) ? 0 : getCreationTime().hashCode());
hashCode = prime * hashCode + ((getLastModifiedTime() == null) ? 0 : getLastModifiedTime().hashCode());
hashCode = prime * hashCode + ((getUrl() == null) ? 0 : getUrl().hashCode());
return hashCode;
}
@Override
public DomainDetails clone() {
try {
return (DomainDetails) 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.sagemaker.model.transform.DomainDetailsMarshaller.getInstance().marshall(this, protocolMarshaller);
}
}