com.amazonaws.services.sagemaker.model.AppDetails 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.sagemaker.model;
import java.io.Serializable;
import javax.annotation.Generated;
import com.amazonaws.protocol.StructuredPojo;
import com.amazonaws.protocol.ProtocolMarshaller;
/**
*
* Details about an Amazon SageMaker app.
*
*
* @see AWS API
* Documentation
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class AppDetails implements Serializable, Cloneable, StructuredPojo {
/**
*
* The domain ID.
*
*/
private String domainId;
/**
*
* The user profile name.
*
*/
private String userProfileName;
/**
*
* The name of the space.
*
*/
private String spaceName;
/**
*
* The type of app.
*
*/
private String appType;
/**
*
* The name of the app.
*
*/
private String appName;
/**
*
* The status.
*
*/
private String status;
/**
*
* The creation time.
*
*/
private java.util.Date creationTime;
private ResourceSpec resourceSpec;
/**
*
* 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 AppDetails withDomainId(String domainId) {
setDomainId(domainId);
return this;
}
/**
*
* The user profile name.
*
*
* @param userProfileName
* The user profile name.
*/
public void setUserProfileName(String userProfileName) {
this.userProfileName = userProfileName;
}
/**
*
* The user profile name.
*
*
* @return The user profile name.
*/
public String getUserProfileName() {
return this.userProfileName;
}
/**
*
* The user profile name.
*
*
* @param userProfileName
* The user profile name.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public AppDetails withUserProfileName(String userProfileName) {
setUserProfileName(userProfileName);
return this;
}
/**
*
* The name of the space.
*
*
* @param spaceName
* The name of the space.
*/
public void setSpaceName(String spaceName) {
this.spaceName = spaceName;
}
/**
*
* The name of the space.
*
*
* @return The name of the space.
*/
public String getSpaceName() {
return this.spaceName;
}
/**
*
* The name of the space.
*
*
* @param spaceName
* The name of the space.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public AppDetails withSpaceName(String spaceName) {
setSpaceName(spaceName);
return this;
}
/**
*
* The type of app.
*
*
* @param appType
* The type of app.
* @see AppType
*/
public void setAppType(String appType) {
this.appType = appType;
}
/**
*
* The type of app.
*
*
* @return The type of app.
* @see AppType
*/
public String getAppType() {
return this.appType;
}
/**
*
* The type of app.
*
*
* @param appType
* The type of app.
* @return Returns a reference to this object so that method calls can be chained together.
* @see AppType
*/
public AppDetails withAppType(String appType) {
setAppType(appType);
return this;
}
/**
*
* The type of app.
*
*
* @param appType
* The type of app.
* @return Returns a reference to this object so that method calls can be chained together.
* @see AppType
*/
public AppDetails withAppType(AppType appType) {
this.appType = appType.toString();
return this;
}
/**
*
* The name of the app.
*
*
* @param appName
* The name of the app.
*/
public void setAppName(String appName) {
this.appName = appName;
}
/**
*
* The name of the app.
*
*
* @return The name of the app.
*/
public String getAppName() {
return this.appName;
}
/**
*
* The name of the app.
*
*
* @param appName
* The name of the app.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public AppDetails withAppName(String appName) {
setAppName(appName);
return this;
}
/**
*
* The status.
*
*
* @param status
* The status.
* @see AppStatus
*/
public void setStatus(String status) {
this.status = status;
}
/**
*
* The status.
*
*
* @return The status.
* @see AppStatus
*/
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 AppStatus
*/
public AppDetails 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 AppStatus
*/
public AppDetails withStatus(AppStatus 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 AppDetails withCreationTime(java.util.Date creationTime) {
setCreationTime(creationTime);
return this;
}
/**
* @param resourceSpec
*/
public void setResourceSpec(ResourceSpec resourceSpec) {
this.resourceSpec = resourceSpec;
}
/**
* @return
*/
public ResourceSpec getResourceSpec() {
return this.resourceSpec;
}
/**
* @param resourceSpec
* @return Returns a reference to this object so that method calls can be chained together.
*/
public AppDetails withResourceSpec(ResourceSpec resourceSpec) {
setResourceSpec(resourceSpec);
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 (getDomainId() != null)
sb.append("DomainId: ").append(getDomainId()).append(",");
if (getUserProfileName() != null)
sb.append("UserProfileName: ").append(getUserProfileName()).append(",");
if (getSpaceName() != null)
sb.append("SpaceName: ").append(getSpaceName()).append(",");
if (getAppType() != null)
sb.append("AppType: ").append(getAppType()).append(",");
if (getAppName() != null)
sb.append("AppName: ").append(getAppName()).append(",");
if (getStatus() != null)
sb.append("Status: ").append(getStatus()).append(",");
if (getCreationTime() != null)
sb.append("CreationTime: ").append(getCreationTime()).append(",");
if (getResourceSpec() != null)
sb.append("ResourceSpec: ").append(getResourceSpec());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof AppDetails == false)
return false;
AppDetails other = (AppDetails) obj;
if (other.getDomainId() == null ^ this.getDomainId() == null)
return false;
if (other.getDomainId() != null && other.getDomainId().equals(this.getDomainId()) == false)
return false;
if (other.getUserProfileName() == null ^ this.getUserProfileName() == null)
return false;
if (other.getUserProfileName() != null && other.getUserProfileName().equals(this.getUserProfileName()) == false)
return false;
if (other.getSpaceName() == null ^ this.getSpaceName() == null)
return false;
if (other.getSpaceName() != null && other.getSpaceName().equals(this.getSpaceName()) == false)
return false;
if (other.getAppType() == null ^ this.getAppType() == null)
return false;
if (other.getAppType() != null && other.getAppType().equals(this.getAppType()) == false)
return false;
if (other.getAppName() == null ^ this.getAppName() == null)
return false;
if (other.getAppName() != null && other.getAppName().equals(this.getAppName()) == 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.getResourceSpec() == null ^ this.getResourceSpec() == null)
return false;
if (other.getResourceSpec() != null && other.getResourceSpec().equals(this.getResourceSpec()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getDomainId() == null) ? 0 : getDomainId().hashCode());
hashCode = prime * hashCode + ((getUserProfileName() == null) ? 0 : getUserProfileName().hashCode());
hashCode = prime * hashCode + ((getSpaceName() == null) ? 0 : getSpaceName().hashCode());
hashCode = prime * hashCode + ((getAppType() == null) ? 0 : getAppType().hashCode());
hashCode = prime * hashCode + ((getAppName() == null) ? 0 : getAppName().hashCode());
hashCode = prime * hashCode + ((getStatus() == null) ? 0 : getStatus().hashCode());
hashCode = prime * hashCode + ((getCreationTime() == null) ? 0 : getCreationTime().hashCode());
hashCode = prime * hashCode + ((getResourceSpec() == null) ? 0 : getResourceSpec().hashCode());
return hashCode;
}
@Override
public AppDetails clone() {
try {
return (AppDetails) 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.AppDetailsMarshaller.getInstance().marshall(this, protocolMarshaller);
}
}