* The Amazon Resource Name (ARN) of the app. *
*/ private String appArn; /** ** The type of app. *
*/ private String appType; /** ** The name of the app. *
*/ private String appName; /** ** The domain ID. *
*/ private String domainId; /** ** The user profile name. *
*/ private String userProfileName; /** ** The status. *
*/ private String status; /** ** The timestamp of the last health check. *
*/ private java.util.Date lastHealthCheckTimestamp; /** *
* The timestamp of the last user's activity. LastUserActivityTimestamp
is also updated when SageMaker
* performs health checks without user activity. As a result, this value is set to the same value as
* LastHealthCheckTimestamp
.
*
* The creation time. *
*/ private java.util.Date creationTime; /** ** The failure reason. *
*/ private String failureReason; /** ** The instance type and the Amazon Resource Name (ARN) of the SageMaker image created on the instance. *
*/ private ResourceSpec resourceSpec; /** *
* The name of the space. If this value is not set, then UserProfileName
must be set.
*
* The Amazon Resource Name (ARN) of the app. *
* * @param appArn * The Amazon Resource Name (ARN) of the app. */ public void setAppArn(String appArn) { this.appArn = appArn; } /** ** The Amazon Resource Name (ARN) of the app. *
* * @return The Amazon Resource Name (ARN) of the app. */ public String getAppArn() { return this.appArn; } /** ** The Amazon Resource Name (ARN) of the app. *
* * @param appArn * The Amazon Resource Name (ARN) of the app. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeAppResult withAppArn(String appArn) { setAppArn(appArn); 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 DescribeAppResult 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 DescribeAppResult 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 DescribeAppResult withAppName(String appName) { setAppName(appName); 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 DescribeAppResult 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 DescribeAppResult withUserProfileName(String userProfileName) { setUserProfileName(userProfileName); 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 DescribeAppResult 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 DescribeAppResult withStatus(AppStatus status) { this.status = status.toString(); return this; } /** ** The timestamp of the last health check. *
* * @param lastHealthCheckTimestamp * The timestamp of the last health check. */ public void setLastHealthCheckTimestamp(java.util.Date lastHealthCheckTimestamp) { this.lastHealthCheckTimestamp = lastHealthCheckTimestamp; } /** ** The timestamp of the last health check. *
* * @return The timestamp of the last health check. */ public java.util.Date getLastHealthCheckTimestamp() { return this.lastHealthCheckTimestamp; } /** ** The timestamp of the last health check. *
* * @param lastHealthCheckTimestamp * The timestamp of the last health check. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeAppResult withLastHealthCheckTimestamp(java.util.Date lastHealthCheckTimestamp) { setLastHealthCheckTimestamp(lastHealthCheckTimestamp); return this; } /** *
* The timestamp of the last user's activity. LastUserActivityTimestamp
is also updated when SageMaker
* performs health checks without user activity. As a result, this value is set to the same value as
* LastHealthCheckTimestamp
.
*
LastUserActivityTimestamp
is also updated when
* SageMaker performs health checks without user activity. As a result, this value is set to the same value
* as LastHealthCheckTimestamp
.
*/
public void setLastUserActivityTimestamp(java.util.Date lastUserActivityTimestamp) {
this.lastUserActivityTimestamp = lastUserActivityTimestamp;
}
/**
*
* The timestamp of the last user's activity. LastUserActivityTimestamp
is also updated when SageMaker
* performs health checks without user activity. As a result, this value is set to the same value as
* LastHealthCheckTimestamp
.
*
LastUserActivityTimestamp
is also updated when
* SageMaker performs health checks without user activity. As a result, this value is set to the same value
* as LastHealthCheckTimestamp
.
*/
public java.util.Date getLastUserActivityTimestamp() {
return this.lastUserActivityTimestamp;
}
/**
*
* The timestamp of the last user's activity. LastUserActivityTimestamp
is also updated when SageMaker
* performs health checks without user activity. As a result, this value is set to the same value as
* LastHealthCheckTimestamp
.
*
LastUserActivityTimestamp
is also updated when
* SageMaker performs health checks without user activity. As a result, this value is set to the same value
* as LastHealthCheckTimestamp
.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeAppResult withLastUserActivityTimestamp(java.util.Date lastUserActivityTimestamp) {
setLastUserActivityTimestamp(lastUserActivityTimestamp);
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 DescribeAppResult withCreationTime(java.util.Date creationTime) { setCreationTime(creationTime); return this; } /** ** The failure reason. *
* * @param failureReason * The failure reason. */ public void setFailureReason(String failureReason) { this.failureReason = failureReason; } /** ** The failure reason. *
* * @return The failure reason. */ public String getFailureReason() { return this.failureReason; } /** ** The failure reason. *
* * @param failureReason * The failure reason. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeAppResult withFailureReason(String failureReason) { setFailureReason(failureReason); return this; } /** ** The instance type and the Amazon Resource Name (ARN) of the SageMaker image created on the instance. *
* * @param resourceSpec * The instance type and the Amazon Resource Name (ARN) of the SageMaker image created on the instance. */ public void setResourceSpec(ResourceSpec resourceSpec) { this.resourceSpec = resourceSpec; } /** ** The instance type and the Amazon Resource Name (ARN) of the SageMaker image created on the instance. *
* * @return The instance type and the Amazon Resource Name (ARN) of the SageMaker image created on the instance. */ public ResourceSpec getResourceSpec() { return this.resourceSpec; } /** ** The instance type and the Amazon Resource Name (ARN) of the SageMaker image created on the instance. *
* * @param resourceSpec * The instance type and the Amazon Resource Name (ARN) of the SageMaker image created on the instance. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeAppResult withResourceSpec(ResourceSpec resourceSpec) { setResourceSpec(resourceSpec); return this; } /** *
* The name of the space. If this value is not set, then UserProfileName
must be set.
*
UserProfileName
must be set.
*/
public void setSpaceName(String spaceName) {
this.spaceName = spaceName;
}
/**
*
* The name of the space. If this value is not set, then UserProfileName
must be set.
*
UserProfileName
must be set.
*/
public String getSpaceName() {
return this.spaceName;
}
/**
*
* The name of the space. If this value is not set, then UserProfileName
must be set.
*
UserProfileName
must be set.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeAppResult withSpaceName(String spaceName) {
setSpaceName(spaceName);
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 (getAppArn() != null)
sb.append("AppArn: ").append(getAppArn()).append(",");
if (getAppType() != null)
sb.append("AppType: ").append(getAppType()).append(",");
if (getAppName() != null)
sb.append("AppName: ").append(getAppName()).append(",");
if (getDomainId() != null)
sb.append("DomainId: ").append(getDomainId()).append(",");
if (getUserProfileName() != null)
sb.append("UserProfileName: ").append(getUserProfileName()).append(",");
if (getStatus() != null)
sb.append("Status: ").append(getStatus()).append(",");
if (getLastHealthCheckTimestamp() != null)
sb.append("LastHealthCheckTimestamp: ").append(getLastHealthCheckTimestamp()).append(",");
if (getLastUserActivityTimestamp() != null)
sb.append("LastUserActivityTimestamp: ").append(getLastUserActivityTimestamp()).append(",");
if (getCreationTime() != null)
sb.append("CreationTime: ").append(getCreationTime()).append(",");
if (getFailureReason() != null)
sb.append("FailureReason: ").append(getFailureReason()).append(",");
if (getResourceSpec() != null)
sb.append("ResourceSpec: ").append(getResourceSpec()).append(",");
if (getSpaceName() != null)
sb.append("SpaceName: ").append(getSpaceName());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof DescribeAppResult == false)
return false;
DescribeAppResult other = (DescribeAppResult) obj;
if (other.getAppArn() == null ^ this.getAppArn() == null)
return false;
if (other.getAppArn() != null && other.getAppArn().equals(this.getAppArn()) == 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.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.getStatus() == null ^ this.getStatus() == null)
return false;
if (other.getStatus() != null && other.getStatus().equals(this.getStatus()) == false)
return false;
if (other.getLastHealthCheckTimestamp() == null ^ this.getLastHealthCheckTimestamp() == null)
return false;
if (other.getLastHealthCheckTimestamp() != null && other.getLastHealthCheckTimestamp().equals(this.getLastHealthCheckTimestamp()) == false)
return false;
if (other.getLastUserActivityTimestamp() == null ^ this.getLastUserActivityTimestamp() == null)
return false;
if (other.getLastUserActivityTimestamp() != null && other.getLastUserActivityTimestamp().equals(this.getLastUserActivityTimestamp()) == 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.getFailureReason() == null ^ this.getFailureReason() == null)
return false;
if (other.getFailureReason() != null && other.getFailureReason().equals(this.getFailureReason()) == false)
return false;
if (other.getResourceSpec() == null ^ this.getResourceSpec() == null)
return false;
if (other.getResourceSpec() != null && other.getResourceSpec().equals(this.getResourceSpec()) == false)
return false;
if (other.getSpaceName() == null ^ this.getSpaceName() == null)
return false;
if (other.getSpaceName() != null && other.getSpaceName().equals(this.getSpaceName()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getAppArn() == null) ? 0 : getAppArn().hashCode());
hashCode = prime * hashCode + ((getAppType() == null) ? 0 : getAppType().hashCode());
hashCode = prime * hashCode + ((getAppName() == null) ? 0 : getAppName().hashCode());
hashCode = prime * hashCode + ((getDomainId() == null) ? 0 : getDomainId().hashCode());
hashCode = prime * hashCode + ((getUserProfileName() == null) ? 0 : getUserProfileName().hashCode());
hashCode = prime * hashCode + ((getStatus() == null) ? 0 : getStatus().hashCode());
hashCode = prime * hashCode + ((getLastHealthCheckTimestamp() == null) ? 0 : getLastHealthCheckTimestamp().hashCode());
hashCode = prime * hashCode + ((getLastUserActivityTimestamp() == null) ? 0 : getLastUserActivityTimestamp().hashCode());
hashCode = prime * hashCode + ((getCreationTime() == null) ? 0 : getCreationTime().hashCode());
hashCode = prime * hashCode + ((getFailureReason() == null) ? 0 : getFailureReason().hashCode());
hashCode = prime * hashCode + ((getResourceSpec() == null) ? 0 : getResourceSpec().hashCode());
hashCode = prime * hashCode + ((getSpaceName() == null) ? 0 : getSpaceName().hashCode());
return hashCode;
}
@Override
public DescribeAppResult clone() {
try {
return (DescribeAppResult) super.clone();
} catch (CloneNotSupportedException e) {
throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e);
}
}
}