/* * Copyright 2018-2023 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 including ID, creation time, name, and so on. *
* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class Studio implements Serializable, Cloneable, StructuredPojo { /** ** The ID of the Amazon EMR Studio. *
*/ private String studioId; /** ** The Amazon Resource Name (ARN) of the Amazon EMR Studio. *
*/ private String studioArn; /** ** The name of the Amazon EMR Studio. *
*/ private String name; /** ** The detailed description of the Amazon EMR Studio. *
*/ private String description; /** ** Specifies whether the Amazon EMR Studio authenticates users with IAM or IAM Identity Center. *
*/ private String authMode; /** ** The ID of the VPC associated with the Amazon EMR Studio. *
*/ private String vpcId; /** ** The list of IDs of the subnets associated with the Amazon EMR Studio. *
*/ private com.amazonaws.internal.SdkInternalList* The name of the IAM role assumed by the Amazon EMR Studio. *
*/ private String serviceRole; /** *
* The name of the IAM role assumed by users logged in to the Amazon EMR Studio. A Studio only requires a
* UserRole
when you use IAM authentication.
*
* The ID of the Workspace security group associated with the Amazon EMR Studio. The Workspace security group allows * outbound network traffic to resources in the Engine security group and to the internet. *
*/ private String workspaceSecurityGroupId; /** ** The ID of the Engine security group associated with the Amazon EMR Studio. The Engine security group allows * inbound network traffic from resources in the Workspace security group. *
*/ private String engineSecurityGroupId; /** ** The unique access URL of the Amazon EMR Studio. *
*/ private String url; /** ** The time the Amazon EMR Studio was created. *
*/ private java.util.Date creationTime; /** ** The Amazon S3 location to back up Amazon EMR Studio Workspaces and notebook files. *
*/ private String defaultS3Location; /** ** Your identity provider's authentication endpoint. Amazon EMR Studio redirects federated users to this endpoint * for authentication when logging in to a Studio with the Studio URL. *
*/ private String idpAuthUrl; /** *
* The name of your identity provider's RelayState
parameter.
*
* A list of tags associated with the Amazon EMR Studio. *
*/ private com.amazonaws.internal.SdkInternalList* 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 Studio withStudioId(String studioId) { setStudioId(studioId); return this; } /** ** The Amazon Resource Name (ARN) of the Amazon EMR Studio. *
* * @param studioArn * The Amazon Resource Name (ARN) of the Amazon EMR Studio. */ public void setStudioArn(String studioArn) { this.studioArn = studioArn; } /** ** The Amazon Resource Name (ARN) of the Amazon EMR Studio. *
* * @return The Amazon Resource Name (ARN) of the Amazon EMR Studio. */ public String getStudioArn() { return this.studioArn; } /** ** The Amazon Resource Name (ARN) of the Amazon EMR Studio. *
* * @param studioArn * The Amazon Resource Name (ARN) of the Amazon EMR Studio. * @return Returns a reference to this object so that method calls can be chained together. */ public Studio withStudioArn(String studioArn) { setStudioArn(studioArn); return this; } /** ** The name of the Amazon EMR Studio. *
* * @param name * The name of the Amazon EMR Studio. */ public void setName(String name) { this.name = name; } /** ** The name of the Amazon EMR Studio. *
* * @return The name of the Amazon EMR Studio. */ public String getName() { return this.name; } /** ** The name of the Amazon EMR Studio. *
* * @param name * The name of the Amazon EMR Studio. * @return Returns a reference to this object so that method calls can be chained together. */ public Studio withName(String name) { setName(name); return this; } /** ** The detailed description of the Amazon EMR Studio. *
* * @param description * The detailed description of the Amazon EMR Studio. */ public void setDescription(String description) { this.description = description; } /** ** The detailed description of the Amazon EMR Studio. *
* * @return The detailed description of the Amazon EMR Studio. */ public String getDescription() { return this.description; } /** ** The detailed description of the Amazon EMR Studio. *
* * @param description * The detailed description of the Amazon EMR Studio. * @return Returns a reference to this object so that method calls can be chained together. */ public Studio withDescription(String description) { setDescription(description); return this; } /** ** Specifies whether the Amazon EMR Studio authenticates users with IAM or IAM Identity Center. *
* * @param authMode * Specifies whether the Amazon EMR Studio authenticates users with IAM or IAM Identity Center. * @see AuthMode */ public void setAuthMode(String authMode) { this.authMode = authMode; } /** ** Specifies whether the Amazon EMR Studio authenticates users with IAM or IAM Identity Center. *
* * @return Specifies whether the Amazon EMR Studio authenticates users with IAM or IAM Identity Center. * @see AuthMode */ public String getAuthMode() { return this.authMode; } /** ** Specifies whether the Amazon EMR Studio authenticates users with IAM or IAM Identity Center. *
* * @param authMode * Specifies whether the Amazon EMR Studio authenticates users with IAM or IAM Identity Center. * @return Returns a reference to this object so that method calls can be chained together. * @see AuthMode */ public Studio withAuthMode(String authMode) { setAuthMode(authMode); return this; } /** ** Specifies whether the Amazon EMR Studio authenticates users with IAM or IAM Identity Center. *
* * @param authMode * Specifies whether the Amazon EMR Studio authenticates users with IAM or IAM Identity Center. * @return Returns a reference to this object so that method calls can be chained together. * @see AuthMode */ public Studio withAuthMode(AuthMode authMode) { this.authMode = authMode.toString(); return this; } /** ** The ID of the VPC associated with the Amazon EMR Studio. *
* * @param vpcId * The ID of the VPC associated with the Amazon EMR Studio. */ public void setVpcId(String vpcId) { this.vpcId = vpcId; } /** ** The ID of the VPC associated with the Amazon EMR Studio. *
* * @return The ID of the VPC associated with the Amazon EMR Studio. */ public String getVpcId() { return this.vpcId; } /** ** The ID of the VPC associated with the Amazon EMR Studio. *
* * @param vpcId * The ID of the VPC associated with the Amazon EMR Studio. * @return Returns a reference to this object so that method calls can be chained together. */ public Studio withVpcId(String vpcId) { setVpcId(vpcId); return this; } /** ** The list of IDs of the subnets associated with the Amazon EMR Studio. *
* * @return The list of IDs of the subnets associated with the Amazon EMR Studio. */ public java.util.List* The list of IDs of the subnets associated with the Amazon EMR Studio. *
* * @param subnetIds * The list of IDs of the subnets associated with the Amazon EMR Studio. */ public void setSubnetIds(java.util.Collection* The list of IDs of the subnets associated with the Amazon EMR Studio. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setSubnetIds(java.util.Collection)} or {@link #withSubnetIds(java.util.Collection)} if you want to * override the existing values. *
* * @param subnetIds * The list of IDs of the subnets associated with the Amazon EMR Studio. * @return Returns a reference to this object so that method calls can be chained together. */ public Studio withSubnetIds(String... subnetIds) { if (this.subnetIds == null) { setSubnetIds(new com.amazonaws.internal.SdkInternalList* The list of IDs of the subnets associated with the Amazon EMR Studio. *
* * @param subnetIds * The list of IDs of the subnets associated with the Amazon EMR Studio. * @return Returns a reference to this object so that method calls can be chained together. */ public Studio withSubnetIds(java.util.Collection* The name of the IAM role assumed by the Amazon EMR Studio. *
* * @param serviceRole * The name of the IAM role assumed by the Amazon EMR Studio. */ public void setServiceRole(String serviceRole) { this.serviceRole = serviceRole; } /** ** The name of the IAM role assumed by the Amazon EMR Studio. *
* * @return The name of the IAM role assumed by the Amazon EMR Studio. */ public String getServiceRole() { return this.serviceRole; } /** ** The name of the IAM role assumed by the Amazon EMR Studio. *
* * @param serviceRole * The name of the IAM role assumed by the Amazon EMR Studio. * @return Returns a reference to this object so that method calls can be chained together. */ public Studio withServiceRole(String serviceRole) { setServiceRole(serviceRole); return this; } /** *
* The name of the IAM role assumed by users logged in to the Amazon EMR Studio. A Studio only requires a
* UserRole
when you use IAM authentication.
*
UserRole
when you use IAM authentication.
*/
public void setUserRole(String userRole) {
this.userRole = userRole;
}
/**
*
* The name of the IAM role assumed by users logged in to the Amazon EMR Studio. A Studio only requires a
* UserRole
when you use IAM authentication.
*
UserRole
when you use IAM authentication.
*/
public String getUserRole() {
return this.userRole;
}
/**
*
* The name of the IAM role assumed by users logged in to the Amazon EMR Studio. A Studio only requires a
* UserRole
when you use IAM authentication.
*
UserRole
when you use IAM authentication.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public Studio withUserRole(String userRole) {
setUserRole(userRole);
return this;
}
/**
* * The ID of the Workspace security group associated with the Amazon EMR Studio. The Workspace security group allows * outbound network traffic to resources in the Engine security group and to the internet. *
* * @param workspaceSecurityGroupId * The ID of the Workspace security group associated with the Amazon EMR Studio. The Workspace security group * allows outbound network traffic to resources in the Engine security group and to the internet. */ public void setWorkspaceSecurityGroupId(String workspaceSecurityGroupId) { this.workspaceSecurityGroupId = workspaceSecurityGroupId; } /** ** The ID of the Workspace security group associated with the Amazon EMR Studio. The Workspace security group allows * outbound network traffic to resources in the Engine security group and to the internet. *
* * @return The ID of the Workspace security group associated with the Amazon EMR Studio. The Workspace security * group allows outbound network traffic to resources in the Engine security group and to the internet. */ public String getWorkspaceSecurityGroupId() { return this.workspaceSecurityGroupId; } /** ** The ID of the Workspace security group associated with the Amazon EMR Studio. The Workspace security group allows * outbound network traffic to resources in the Engine security group and to the internet. *
* * @param workspaceSecurityGroupId * The ID of the Workspace security group associated with the Amazon EMR Studio. The Workspace security group * allows outbound network traffic to resources in the Engine security group and to the internet. * @return Returns a reference to this object so that method calls can be chained together. */ public Studio withWorkspaceSecurityGroupId(String workspaceSecurityGroupId) { setWorkspaceSecurityGroupId(workspaceSecurityGroupId); return this; } /** ** The ID of the Engine security group associated with the Amazon EMR Studio. The Engine security group allows * inbound network traffic from resources in the Workspace security group. *
* * @param engineSecurityGroupId * The ID of the Engine security group associated with the Amazon EMR Studio. The Engine security group * allows inbound network traffic from resources in the Workspace security group. */ public void setEngineSecurityGroupId(String engineSecurityGroupId) { this.engineSecurityGroupId = engineSecurityGroupId; } /** ** The ID of the Engine security group associated with the Amazon EMR Studio. The Engine security group allows * inbound network traffic from resources in the Workspace security group. *
* * @return The ID of the Engine security group associated with the Amazon EMR Studio. The Engine security group * allows inbound network traffic from resources in the Workspace security group. */ public String getEngineSecurityGroupId() { return this.engineSecurityGroupId; } /** ** The ID of the Engine security group associated with the Amazon EMR Studio. The Engine security group allows * inbound network traffic from resources in the Workspace security group. *
* * @param engineSecurityGroupId * The ID of the Engine security group associated with the Amazon EMR Studio. The Engine security group * allows inbound network traffic from resources in the Workspace security group. * @return Returns a reference to this object so that method calls can be chained together. */ public Studio withEngineSecurityGroupId(String engineSecurityGroupId) { setEngineSecurityGroupId(engineSecurityGroupId); return this; } /** ** The unique access URL of the Amazon EMR Studio. *
* * @param url * The unique access URL of the Amazon EMR Studio. */ public void setUrl(String url) { this.url = url; } /** ** The unique access URL of the Amazon EMR Studio. *
* * @return The unique access URL of the Amazon EMR Studio. */ public String getUrl() { return this.url; } /** ** The unique access URL of the Amazon EMR Studio. *
* * @param url * The unique access URL of the Amazon EMR Studio. * @return Returns a reference to this object so that method calls can be chained together. */ public Studio withUrl(String url) { setUrl(url); return this; } /** ** The time the Amazon EMR Studio was created. *
* * @param creationTime * The time the Amazon EMR Studio was created. */ public void setCreationTime(java.util.Date creationTime) { this.creationTime = creationTime; } /** ** The time the Amazon EMR Studio was created. *
* * @return The time the Amazon EMR Studio was created. */ public java.util.Date getCreationTime() { return this.creationTime; } /** ** The time the Amazon EMR Studio was created. *
* * @param creationTime * The time the Amazon EMR Studio was created. * @return Returns a reference to this object so that method calls can be chained together. */ public Studio withCreationTime(java.util.Date creationTime) { setCreationTime(creationTime); return this; } /** ** The Amazon S3 location to back up Amazon EMR Studio Workspaces and notebook files. *
* * @param defaultS3Location * The Amazon S3 location to back up Amazon EMR Studio Workspaces and notebook files. */ public void setDefaultS3Location(String defaultS3Location) { this.defaultS3Location = defaultS3Location; } /** ** The Amazon S3 location to back up Amazon EMR Studio Workspaces and notebook files. *
* * @return The Amazon S3 location to back up Amazon EMR Studio Workspaces and notebook files. */ public String getDefaultS3Location() { return this.defaultS3Location; } /** ** The Amazon S3 location to back up Amazon EMR Studio Workspaces and notebook files. *
* * @param defaultS3Location * The Amazon S3 location to back up Amazon EMR Studio Workspaces and notebook files. * @return Returns a reference to this object so that method calls can be chained together. */ public Studio withDefaultS3Location(String defaultS3Location) { setDefaultS3Location(defaultS3Location); return this; } /** ** Your identity provider's authentication endpoint. Amazon EMR Studio redirects federated users to this endpoint * for authentication when logging in to a Studio with the Studio URL. *
* * @param idpAuthUrl * Your identity provider's authentication endpoint. Amazon EMR Studio redirects federated users to this * endpoint for authentication when logging in to a Studio with the Studio URL. */ public void setIdpAuthUrl(String idpAuthUrl) { this.idpAuthUrl = idpAuthUrl; } /** ** Your identity provider's authentication endpoint. Amazon EMR Studio redirects federated users to this endpoint * for authentication when logging in to a Studio with the Studio URL. *
* * @return Your identity provider's authentication endpoint. Amazon EMR Studio redirects federated users to this * endpoint for authentication when logging in to a Studio with the Studio URL. */ public String getIdpAuthUrl() { return this.idpAuthUrl; } /** ** Your identity provider's authentication endpoint. Amazon EMR Studio redirects federated users to this endpoint * for authentication when logging in to a Studio with the Studio URL. *
* * @param idpAuthUrl * Your identity provider's authentication endpoint. Amazon EMR Studio redirects federated users to this * endpoint for authentication when logging in to a Studio with the Studio URL. * @return Returns a reference to this object so that method calls can be chained together. */ public Studio withIdpAuthUrl(String idpAuthUrl) { setIdpAuthUrl(idpAuthUrl); return this; } /** *
* The name of your identity provider's RelayState
parameter.
*
RelayState
parameter.
*/
public void setIdpRelayStateParameterName(String idpRelayStateParameterName) {
this.idpRelayStateParameterName = idpRelayStateParameterName;
}
/**
*
* The name of your identity provider's RelayState
parameter.
*
RelayState
parameter.
*/
public String getIdpRelayStateParameterName() {
return this.idpRelayStateParameterName;
}
/**
*
* The name of your identity provider's RelayState
parameter.
*
RelayState
parameter.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public Studio withIdpRelayStateParameterName(String idpRelayStateParameterName) {
setIdpRelayStateParameterName(idpRelayStateParameterName);
return this;
}
/**
* * A list of tags associated with the Amazon EMR Studio. *
* * @return A list of tags associated with the Amazon EMR Studio. */ public java.util.List* A list of tags associated with the Amazon EMR Studio. *
* * @param tags * A list of tags associated with the Amazon EMR Studio. */ public void setTags(java.util.Collection* A list of tags associated with the Amazon EMR Studio. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setTags(java.util.Collection)} or {@link #withTags(java.util.Collection)} if you want to override the * existing values. *
* * @param tags * A list of tags associated with the Amazon EMR Studio. * @return Returns a reference to this object so that method calls can be chained together. */ public Studio withTags(Tag... tags) { if (this.tags == null) { setTags(new com.amazonaws.internal.SdkInternalList* A list of tags associated with the Amazon EMR Studio. *
* * @param tags * A list of tags associated with the Amazon EMR Studio. * @return Returns a reference to this object so that method calls can be chained together. */ public Studio withTags(java.util.Collection