com.amazonaws.services.sagemaker.model.DescribeUserProfileResult 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;
/**
*
* @see AWS API
* Documentation
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class DescribeUserProfileResult extends com.amazonaws.AmazonWebServiceResult implements Serializable, Cloneable {
/**
*
* The ID of the domain that contains the profile.
*
*/
private String domainId;
/**
*
* The user profile Amazon Resource Name (ARN).
*
*/
private String userProfileArn;
/**
*
* The user profile name.
*
*/
private String userProfileName;
/**
*
* The ID of the user's profile in the Amazon Elastic File System volume.
*
*/
private String homeEfsFileSystemUid;
/**
*
* The status.
*
*/
private String status;
/**
*
* The last modified time.
*
*/
private java.util.Date lastModifiedTime;
/**
*
* The creation time.
*
*/
private java.util.Date creationTime;
/**
*
* The failure reason.
*
*/
private String failureReason;
/**
*
* The IAM Identity Center user identifier.
*
*/
private String singleSignOnUserIdentifier;
/**
*
* The IAM Identity Center user value.
*
*/
private String singleSignOnUserValue;
/**
*
* A collection of settings.
*
*/
private UserSettings userSettings;
/**
*
* The ID of the domain that contains the profile.
*
*
* @param domainId
* The ID of the domain that contains the profile.
*/
public void setDomainId(String domainId) {
this.domainId = domainId;
}
/**
*
* The ID of the domain that contains the profile.
*
*
* @return The ID of the domain that contains the profile.
*/
public String getDomainId() {
return this.domainId;
}
/**
*
* The ID of the domain that contains the profile.
*
*
* @param domainId
* The ID of the domain that contains the profile.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeUserProfileResult withDomainId(String domainId) {
setDomainId(domainId);
return this;
}
/**
*
* The user profile Amazon Resource Name (ARN).
*
*
* @param userProfileArn
* The user profile Amazon Resource Name (ARN).
*/
public void setUserProfileArn(String userProfileArn) {
this.userProfileArn = userProfileArn;
}
/**
*
* The user profile Amazon Resource Name (ARN).
*
*
* @return The user profile Amazon Resource Name (ARN).
*/
public String getUserProfileArn() {
return this.userProfileArn;
}
/**
*
* The user profile Amazon Resource Name (ARN).
*
*
* @param userProfileArn
* The user profile Amazon Resource Name (ARN).
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeUserProfileResult withUserProfileArn(String userProfileArn) {
setUserProfileArn(userProfileArn);
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 DescribeUserProfileResult withUserProfileName(String userProfileName) {
setUserProfileName(userProfileName);
return this;
}
/**
*
* The ID of the user's profile in the Amazon Elastic File System volume.
*
*
* @param homeEfsFileSystemUid
* The ID of the user's profile in the Amazon Elastic File System volume.
*/
public void setHomeEfsFileSystemUid(String homeEfsFileSystemUid) {
this.homeEfsFileSystemUid = homeEfsFileSystemUid;
}
/**
*
* The ID of the user's profile in the Amazon Elastic File System volume.
*
*
* @return The ID of the user's profile in the Amazon Elastic File System volume.
*/
public String getHomeEfsFileSystemUid() {
return this.homeEfsFileSystemUid;
}
/**
*
* The ID of the user's profile in the Amazon Elastic File System volume.
*
*
* @param homeEfsFileSystemUid
* The ID of the user's profile in the Amazon Elastic File System volume.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeUserProfileResult withHomeEfsFileSystemUid(String homeEfsFileSystemUid) {
setHomeEfsFileSystemUid(homeEfsFileSystemUid);
return this;
}
/**
*
* The status.
*
*
* @param status
* The status.
* @see UserProfileStatus
*/
public void setStatus(String status) {
this.status = status;
}
/**
*
* The status.
*
*
* @return The status.
* @see UserProfileStatus
*/
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 UserProfileStatus
*/
public DescribeUserProfileResult 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 UserProfileStatus
*/
public DescribeUserProfileResult withStatus(UserProfileStatus status) {
this.status = status.toString();
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 DescribeUserProfileResult withLastModifiedTime(java.util.Date lastModifiedTime) {
setLastModifiedTime(lastModifiedTime);
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 DescribeUserProfileResult 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 DescribeUserProfileResult withFailureReason(String failureReason) {
setFailureReason(failureReason);
return this;
}
/**
*
* The IAM Identity Center user identifier.
*
*
* @param singleSignOnUserIdentifier
* The IAM Identity Center user identifier.
*/
public void setSingleSignOnUserIdentifier(String singleSignOnUserIdentifier) {
this.singleSignOnUserIdentifier = singleSignOnUserIdentifier;
}
/**
*
* The IAM Identity Center user identifier.
*
*
* @return The IAM Identity Center user identifier.
*/
public String getSingleSignOnUserIdentifier() {
return this.singleSignOnUserIdentifier;
}
/**
*
* The IAM Identity Center user identifier.
*
*
* @param singleSignOnUserIdentifier
* The IAM Identity Center user identifier.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeUserProfileResult withSingleSignOnUserIdentifier(String singleSignOnUserIdentifier) {
setSingleSignOnUserIdentifier(singleSignOnUserIdentifier);
return this;
}
/**
*
* The IAM Identity Center user value.
*
*
* @param singleSignOnUserValue
* The IAM Identity Center user value.
*/
public void setSingleSignOnUserValue(String singleSignOnUserValue) {
this.singleSignOnUserValue = singleSignOnUserValue;
}
/**
*
* The IAM Identity Center user value.
*
*
* @return The IAM Identity Center user value.
*/
public String getSingleSignOnUserValue() {
return this.singleSignOnUserValue;
}
/**
*
* The IAM Identity Center user value.
*
*
* @param singleSignOnUserValue
* The IAM Identity Center user value.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeUserProfileResult withSingleSignOnUserValue(String singleSignOnUserValue) {
setSingleSignOnUserValue(singleSignOnUserValue);
return this;
}
/**
*
* A collection of settings.
*
*
* @param userSettings
* A collection of settings.
*/
public void setUserSettings(UserSettings userSettings) {
this.userSettings = userSettings;
}
/**
*
* A collection of settings.
*
*
* @return A collection of settings.
*/
public UserSettings getUserSettings() {
return this.userSettings;
}
/**
*
* A collection of settings.
*
*
* @param userSettings
* A collection of settings.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeUserProfileResult withUserSettings(UserSettings userSettings) {
setUserSettings(userSettings);
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 (getUserProfileArn() != null)
sb.append("UserProfileArn: ").append(getUserProfileArn()).append(",");
if (getUserProfileName() != null)
sb.append("UserProfileName: ").append(getUserProfileName()).append(",");
if (getHomeEfsFileSystemUid() != null)
sb.append("HomeEfsFileSystemUid: ").append(getHomeEfsFileSystemUid()).append(",");
if (getStatus() != null)
sb.append("Status: ").append(getStatus()).append(",");
if (getLastModifiedTime() != null)
sb.append("LastModifiedTime: ").append(getLastModifiedTime()).append(",");
if (getCreationTime() != null)
sb.append("CreationTime: ").append(getCreationTime()).append(",");
if (getFailureReason() != null)
sb.append("FailureReason: ").append(getFailureReason()).append(",");
if (getSingleSignOnUserIdentifier() != null)
sb.append("SingleSignOnUserIdentifier: ").append(getSingleSignOnUserIdentifier()).append(",");
if (getSingleSignOnUserValue() != null)
sb.append("SingleSignOnUserValue: ").append(getSingleSignOnUserValue()).append(",");
if (getUserSettings() != null)
sb.append("UserSettings: ").append(getUserSettings());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof DescribeUserProfileResult == false)
return false;
DescribeUserProfileResult other = (DescribeUserProfileResult) obj;
if (other.getDomainId() == null ^ this.getDomainId() == null)
return false;
if (other.getDomainId() != null && other.getDomainId().equals(this.getDomainId()) == false)
return false;
if (other.getUserProfileArn() == null ^ this.getUserProfileArn() == null)
return false;
if (other.getUserProfileArn() != null && other.getUserProfileArn().equals(this.getUserProfileArn()) == 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.getHomeEfsFileSystemUid() == null ^ this.getHomeEfsFileSystemUid() == null)
return false;
if (other.getHomeEfsFileSystemUid() != null && other.getHomeEfsFileSystemUid().equals(this.getHomeEfsFileSystemUid()) == 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.getLastModifiedTime() == null ^ this.getLastModifiedTime() == null)
return false;
if (other.getLastModifiedTime() != null && other.getLastModifiedTime().equals(this.getLastModifiedTime()) == 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.getSingleSignOnUserIdentifier() == null ^ this.getSingleSignOnUserIdentifier() == null)
return false;
if (other.getSingleSignOnUserIdentifier() != null && other.getSingleSignOnUserIdentifier().equals(this.getSingleSignOnUserIdentifier()) == false)
return false;
if (other.getSingleSignOnUserValue() == null ^ this.getSingleSignOnUserValue() == null)
return false;
if (other.getSingleSignOnUserValue() != null && other.getSingleSignOnUserValue().equals(this.getSingleSignOnUserValue()) == false)
return false;
if (other.getUserSettings() == null ^ this.getUserSettings() == null)
return false;
if (other.getUserSettings() != null && other.getUserSettings().equals(this.getUserSettings()) == 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 + ((getUserProfileArn() == null) ? 0 : getUserProfileArn().hashCode());
hashCode = prime * hashCode + ((getUserProfileName() == null) ? 0 : getUserProfileName().hashCode());
hashCode = prime * hashCode + ((getHomeEfsFileSystemUid() == null) ? 0 : getHomeEfsFileSystemUid().hashCode());
hashCode = prime * hashCode + ((getStatus() == null) ? 0 : getStatus().hashCode());
hashCode = prime * hashCode + ((getLastModifiedTime() == null) ? 0 : getLastModifiedTime().hashCode());
hashCode = prime * hashCode + ((getCreationTime() == null) ? 0 : getCreationTime().hashCode());
hashCode = prime * hashCode + ((getFailureReason() == null) ? 0 : getFailureReason().hashCode());
hashCode = prime * hashCode + ((getSingleSignOnUserIdentifier() == null) ? 0 : getSingleSignOnUserIdentifier().hashCode());
hashCode = prime * hashCode + ((getSingleSignOnUserValue() == null) ? 0 : getSingleSignOnUserValue().hashCode());
hashCode = prime * hashCode + ((getUserSettings() == null) ? 0 : getUserSettings().hashCode());
return hashCode;
}
@Override
public DescribeUserProfileResult clone() {
try {
return (DescribeUserProfileResult) super.clone();
} catch (CloneNotSupportedException e) {
throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e);
}
}
}