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

com.amazonaws.services.elasticmapreduce.model.SessionMappingDetail Maven / Gradle / Ivy

Go to download

The AWS Java SDK for Amazon EMR module holds the client classes that are used for communicating with Amazon Elastic MapReduce Service

There is a newer version: 1.12.780
Show newest version
/*
 * Copyright 2017-2022 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.elasticmapreduce.model;

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

/**
 * 

* Details for an Amazon EMR Studio session mapping including creation time, user or group ID, Studio ID, and so on. *

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

* The ID of the Amazon EMR Studio. *

*/ private String studioId; /** *

* The globally unique identifier (GUID) of the user or group. *

*/ private String identityId; /** *

* The name of the user or group. For more information, see UserName and DisplayName in the Amazon Web Services SSO Identity Store API Reference. *

*/ private String identityName; /** *

* Specifies whether the identity mapped to the Amazon EMR Studio is a user or a group. *

*/ private String identityType; /** *

* The Amazon Resource Name (ARN) of the session policy associated with the user or group. *

*/ private String sessionPolicyArn; /** *

* The time the session mapping was created. *

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

* The time the session mapping was last modified. *

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

* The ID of the Amazon EMR Studio. *

* * @param studioId * The ID of the Amazon EMR Studio. */ public void setStudioId(String studioId) { this.studioId = studioId; } /** *

* The ID of the Amazon EMR Studio. *

* * @return The ID of the Amazon EMR Studio. */ public String getStudioId() { return this.studioId; } /** *

* The ID of the Amazon EMR Studio. *

* * @param studioId * The ID of the Amazon EMR Studio. * @return Returns a reference to this object so that method calls can be chained together. */ public SessionMappingDetail withStudioId(String studioId) { setStudioId(studioId); return this; } /** *

* The globally unique identifier (GUID) of the user or group. *

* * @param identityId * The globally unique identifier (GUID) of the user or group. */ public void setIdentityId(String identityId) { this.identityId = identityId; } /** *

* The globally unique identifier (GUID) of the user or group. *

* * @return The globally unique identifier (GUID) of the user or group. */ public String getIdentityId() { return this.identityId; } /** *

* The globally unique identifier (GUID) of the user or group. *

* * @param identityId * The globally unique identifier (GUID) of the user or group. * @return Returns a reference to this object so that method calls can be chained together. */ public SessionMappingDetail withIdentityId(String identityId) { setIdentityId(identityId); return this; } /** *

* The name of the user or group. For more information, see UserName and DisplayName in the Amazon Web Services SSO Identity Store API Reference. *

* * @param identityName * The name of the user or group. For more information, see UserName and DisplayName in the Amazon Web Services SSO Identity Store API Reference. */ public void setIdentityName(String identityName) { this.identityName = identityName; } /** *

* The name of the user or group. For more information, see UserName and DisplayName in the Amazon Web Services SSO Identity Store API Reference. *

* * @return The name of the user or group. For more information, see UserName and DisplayName in the Amazon Web Services SSO Identity Store API Reference. */ public String getIdentityName() { return this.identityName; } /** *

* The name of the user or group. For more information, see UserName and DisplayName in the Amazon Web Services SSO Identity Store API Reference. *

* * @param identityName * The name of the user or group. For more information, see UserName and DisplayName in the Amazon Web Services SSO Identity Store API Reference. * @return Returns a reference to this object so that method calls can be chained together. */ public SessionMappingDetail withIdentityName(String identityName) { setIdentityName(identityName); return this; } /** *

* Specifies whether the identity mapped to the Amazon EMR Studio is a user or a group. *

* * @param identityType * Specifies whether the identity mapped to the Amazon EMR Studio is a user or a group. * @see IdentityType */ public void setIdentityType(String identityType) { this.identityType = identityType; } /** *

* Specifies whether the identity mapped to the Amazon EMR Studio is a user or a group. *

* * @return Specifies whether the identity mapped to the Amazon EMR Studio is a user or a group. * @see IdentityType */ public String getIdentityType() { return this.identityType; } /** *

* Specifies whether the identity mapped to the Amazon EMR Studio is a user or a group. *

* * @param identityType * Specifies whether the identity mapped to the Amazon EMR Studio is a user or a group. * @return Returns a reference to this object so that method calls can be chained together. * @see IdentityType */ public SessionMappingDetail withIdentityType(String identityType) { setIdentityType(identityType); return this; } /** *

* Specifies whether the identity mapped to the Amazon EMR Studio is a user or a group. *

* * @param identityType * Specifies whether the identity mapped to the Amazon EMR Studio is a user or a group. * @return Returns a reference to this object so that method calls can be chained together. * @see IdentityType */ public SessionMappingDetail withIdentityType(IdentityType identityType) { this.identityType = identityType.toString(); return this; } /** *

* The Amazon Resource Name (ARN) of the session policy associated with the user or group. *

* * @param sessionPolicyArn * The Amazon Resource Name (ARN) of the session policy associated with the user or group. */ public void setSessionPolicyArn(String sessionPolicyArn) { this.sessionPolicyArn = sessionPolicyArn; } /** *

* The Amazon Resource Name (ARN) of the session policy associated with the user or group. *

* * @return The Amazon Resource Name (ARN) of the session policy associated with the user or group. */ public String getSessionPolicyArn() { return this.sessionPolicyArn; } /** *

* The Amazon Resource Name (ARN) of the session policy associated with the user or group. *

* * @param sessionPolicyArn * The Amazon Resource Name (ARN) of the session policy associated with the user or group. * @return Returns a reference to this object so that method calls can be chained together. */ public SessionMappingDetail withSessionPolicyArn(String sessionPolicyArn) { setSessionPolicyArn(sessionPolicyArn); return this; } /** *

* The time the session mapping was created. *

* * @param creationTime * The time the session mapping was created. */ public void setCreationTime(java.util.Date creationTime) { this.creationTime = creationTime; } /** *

* The time the session mapping was created. *

* * @return The time the session mapping was created. */ public java.util.Date getCreationTime() { return this.creationTime; } /** *

* The time the session mapping was created. *

* * @param creationTime * The time the session mapping was created. * @return Returns a reference to this object so that method calls can be chained together. */ public SessionMappingDetail withCreationTime(java.util.Date creationTime) { setCreationTime(creationTime); return this; } /** *

* The time the session mapping was last modified. *

* * @param lastModifiedTime * The time the session mapping was last modified. */ public void setLastModifiedTime(java.util.Date lastModifiedTime) { this.lastModifiedTime = lastModifiedTime; } /** *

* The time the session mapping was last modified. *

* * @return The time the session mapping was last modified. */ public java.util.Date getLastModifiedTime() { return this.lastModifiedTime; } /** *

* The time the session mapping was last modified. *

* * @param lastModifiedTime * The time the session mapping was last modified. * @return Returns a reference to this object so that method calls can be chained together. */ public SessionMappingDetail withLastModifiedTime(java.util.Date lastModifiedTime) { setLastModifiedTime(lastModifiedTime); 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 (getStudioId() != null) sb.append("StudioId: ").append(getStudioId()).append(","); if (getIdentityId() != null) sb.append("IdentityId: ").append(getIdentityId()).append(","); if (getIdentityName() != null) sb.append("IdentityName: ").append(getIdentityName()).append(","); if (getIdentityType() != null) sb.append("IdentityType: ").append(getIdentityType()).append(","); if (getSessionPolicyArn() != null) sb.append("SessionPolicyArn: ").append(getSessionPolicyArn()).append(","); if (getCreationTime() != null) sb.append("CreationTime: ").append(getCreationTime()).append(","); if (getLastModifiedTime() != null) sb.append("LastModifiedTime: ").append(getLastModifiedTime()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof SessionMappingDetail == false) return false; SessionMappingDetail other = (SessionMappingDetail) obj; if (other.getStudioId() == null ^ this.getStudioId() == null) return false; if (other.getStudioId() != null && other.getStudioId().equals(this.getStudioId()) == false) return false; if (other.getIdentityId() == null ^ this.getIdentityId() == null) return false; if (other.getIdentityId() != null && other.getIdentityId().equals(this.getIdentityId()) == false) return false; if (other.getIdentityName() == null ^ this.getIdentityName() == null) return false; if (other.getIdentityName() != null && other.getIdentityName().equals(this.getIdentityName()) == false) return false; if (other.getIdentityType() == null ^ this.getIdentityType() == null) return false; if (other.getIdentityType() != null && other.getIdentityType().equals(this.getIdentityType()) == false) return false; if (other.getSessionPolicyArn() == null ^ this.getSessionPolicyArn() == null) return false; if (other.getSessionPolicyArn() != null && other.getSessionPolicyArn().equals(this.getSessionPolicyArn()) == 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; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getStudioId() == null) ? 0 : getStudioId().hashCode()); hashCode = prime * hashCode + ((getIdentityId() == null) ? 0 : getIdentityId().hashCode()); hashCode = prime * hashCode + ((getIdentityName() == null) ? 0 : getIdentityName().hashCode()); hashCode = prime * hashCode + ((getIdentityType() == null) ? 0 : getIdentityType().hashCode()); hashCode = prime * hashCode + ((getSessionPolicyArn() == null) ? 0 : getSessionPolicyArn().hashCode()); hashCode = prime * hashCode + ((getCreationTime() == null) ? 0 : getCreationTime().hashCode()); hashCode = prime * hashCode + ((getLastModifiedTime() == null) ? 0 : getLastModifiedTime().hashCode()); return hashCode; } @Override public SessionMappingDetail clone() { try { return (SessionMappingDetail) 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.elasticmapreduce.model.transform.SessionMappingDetailMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy