com.amazonaws.services.elasticmapreduce.model.DeleteStudioSessionMappingRequest Maven / Gradle / Ivy
Show all versions of aws-java-sdk-emr Show documentation
/*
* 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.AmazonWebServiceRequest;
/**
*
* @see AWS API Documentation
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class DeleteStudioSessionMappingRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable {
/**
*
* The ID of the Amazon EMR Studio.
*
*/
private String studioId;
/**
*
* The globally unique identifier (GUID) of the user or group to remove from the Amazon EMR Studio. For more
* information, see UserId and GroupId in the Amazon Web Services SSO Identity Store API Reference. Either IdentityName
* or IdentityId
must be specified.
*
*/
private String identityId;
/**
*
* The name of the user name or group to remove from the Amazon EMR Studio. For more information, see UserName and DisplayName in the Amazon Web Services SSO Store API Reference. Either IdentityName
or
* IdentityId
must be specified.
*
*/
private String identityName;
/**
*
* Specifies whether the identity to delete from the Amazon EMR Studio is a user or a group.
*
*/
private String identityType;
/**
*
* 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 DeleteStudioSessionMappingRequest withStudioId(String studioId) {
setStudioId(studioId);
return this;
}
/**
*
* The globally unique identifier (GUID) of the user or group to remove from the Amazon EMR Studio. For more
* information, see UserId and GroupId in the Amazon Web Services SSO Identity Store API Reference. Either IdentityName
* or IdentityId
must be specified.
*
*
* @param identityId
* The globally unique identifier (GUID) of the user or group to remove from the Amazon EMR Studio. For more
* information, see UserId and GroupId in the Amazon Web Services SSO Identity Store API Reference. Either
* IdentityName
or IdentityId
must be specified.
*/
public void setIdentityId(String identityId) {
this.identityId = identityId;
}
/**
*
* The globally unique identifier (GUID) of the user or group to remove from the Amazon EMR Studio. For more
* information, see UserId and GroupId in the Amazon Web Services SSO Identity Store API Reference. Either IdentityName
* or IdentityId
must be specified.
*
*
* @return The globally unique identifier (GUID) of the user or group to remove from the Amazon EMR Studio. For more
* information, see UserId and GroupId in the Amazon Web Services SSO Identity Store API Reference. Either
* IdentityName
or IdentityId
must be specified.
*/
public String getIdentityId() {
return this.identityId;
}
/**
*
* The globally unique identifier (GUID) of the user or group to remove from the Amazon EMR Studio. For more
* information, see UserId and GroupId in the Amazon Web Services SSO Identity Store API Reference. Either IdentityName
* or IdentityId
must be specified.
*
*
* @param identityId
* The globally unique identifier (GUID) of the user or group to remove from the Amazon EMR Studio. For more
* information, see UserId and GroupId in the Amazon Web Services SSO Identity Store API Reference. Either
* IdentityName
or IdentityId
must be specified.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DeleteStudioSessionMappingRequest withIdentityId(String identityId) {
setIdentityId(identityId);
return this;
}
/**
*
* The name of the user name or group to remove from the Amazon EMR Studio. For more information, see UserName and DisplayName in the Amazon Web Services SSO Store API Reference. Either IdentityName
or
* IdentityId
must be specified.
*
*
* @param identityName
* The name of the user name or group to remove from the Amazon EMR Studio. For more information, see UserName and DisplayName in the Amazon Web Services SSO Store API Reference. Either
* IdentityName
or IdentityId
must be specified.
*/
public void setIdentityName(String identityName) {
this.identityName = identityName;
}
/**
*
* The name of the user name or group to remove from the Amazon EMR Studio. For more information, see UserName and DisplayName in the Amazon Web Services SSO Store API Reference. Either IdentityName
or
* IdentityId
must be specified.
*
*
* @return The name of the user name or group to remove from the Amazon EMR Studio. For more information, see UserName and DisplayName in the Amazon Web Services SSO Store API Reference. Either
* IdentityName
or IdentityId
must be specified.
*/
public String getIdentityName() {
return this.identityName;
}
/**
*
* The name of the user name or group to remove from the Amazon EMR Studio. For more information, see UserName and DisplayName in the Amazon Web Services SSO Store API Reference. Either IdentityName
or
* IdentityId
must be specified.
*
*
* @param identityName
* The name of the user name or group to remove from the Amazon EMR Studio. For more information, see UserName and DisplayName in the Amazon Web Services SSO Store API Reference. Either
* IdentityName
or IdentityId
must be specified.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DeleteStudioSessionMappingRequest withIdentityName(String identityName) {
setIdentityName(identityName);
return this;
}
/**
*
* Specifies whether the identity to delete from the Amazon EMR Studio is a user or a group.
*
*
* @param identityType
* Specifies whether the identity to delete from the Amazon EMR Studio is a user or a group.
* @see IdentityType
*/
public void setIdentityType(String identityType) {
this.identityType = identityType;
}
/**
*
* Specifies whether the identity to delete from the Amazon EMR Studio is a user or a group.
*
*
* @return Specifies whether the identity to delete from the Amazon EMR Studio is a user or a group.
* @see IdentityType
*/
public String getIdentityType() {
return this.identityType;
}
/**
*
* Specifies whether the identity to delete from the Amazon EMR Studio is a user or a group.
*
*
* @param identityType
* Specifies whether the identity to delete from 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 DeleteStudioSessionMappingRequest withIdentityType(String identityType) {
setIdentityType(identityType);
return this;
}
/**
*
* Specifies whether the identity to delete from the Amazon EMR Studio is a user or a group.
*
*
* @param identityType
* Specifies whether the identity to delete from 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 DeleteStudioSessionMappingRequest withIdentityType(IdentityType identityType) {
this.identityType = identityType.toString();
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());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof DeleteStudioSessionMappingRequest == false)
return false;
DeleteStudioSessionMappingRequest other = (DeleteStudioSessionMappingRequest) 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;
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());
return hashCode;
}
@Override
public DeleteStudioSessionMappingRequest clone() {
return (DeleteStudioSessionMappingRequest) super.clone();
}
}