/* * 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.emrcontainers.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* This entity represents the endpoint that is managed by Amazon EMR on EKS. *
* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class Endpoint implements Serializable, Cloneable, StructuredPojo { /** ** The ID of the endpoint. *
*/ private String id; /** ** The name of the endpoint. *
*/ private String name; /** ** The ARN of the endpoint. *
*/ private String arn; /** ** The ID of the endpoint's virtual cluster. *
*/ private String virtualClusterId; /** ** The type of the endpoint. *
*/ private String type; /** ** The state of the endpoint. *
*/ private String state; /** ** The EMR release version to be used for the endpoint. *
*/ private String releaseLabel; /** ** The execution role ARN of the endpoint. *
*/ private String executionRoleArn; /** ** The certificate ARN of the endpoint. This field is under deprecation and will be removed in future. *
*/ @Deprecated private String certificateArn; /** ** The certificate generated by emr control plane on customer behalf to secure the managed endpoint. *
*/ private Certificate certificateAuthority; /** ** The configuration settings that are used to override existing configurations for endpoints. *
*/ private ConfigurationOverrides configurationOverrides; /** ** The server URL of the endpoint. *
*/ private String serverUrl; /** ** The date and time when the endpoint was created. *
*/ private java.util.Date createdAt; /** ** The security group configuration of the endpoint. *
*/ private String securityGroup; /** ** The subnet IDs of the endpoint. *
*/ private java.util.List* Additional details of the endpoint state. *
*/ private String stateDetails; /** ** The reasons why the endpoint has failed. *
*/ private String failureReason; /** ** The tags of the endpoint. *
*/ private java.util.Map* The ID of the endpoint. *
* * @param id * The ID of the endpoint. */ public void setId(String id) { this.id = id; } /** ** The ID of the endpoint. *
* * @return The ID of the endpoint. */ public String getId() { return this.id; } /** ** The ID of the endpoint. *
* * @param id * The ID of the endpoint. * @return Returns a reference to this object so that method calls can be chained together. */ public Endpoint withId(String id) { setId(id); return this; } /** ** The name of the endpoint. *
* * @param name * The name of the endpoint. */ public void setName(String name) { this.name = name; } /** ** The name of the endpoint. *
* * @return The name of the endpoint. */ public String getName() { return this.name; } /** ** The name of the endpoint. *
* * @param name * The name of the endpoint. * @return Returns a reference to this object so that method calls can be chained together. */ public Endpoint withName(String name) { setName(name); return this; } /** ** The ARN of the endpoint. *
* * @param arn * The ARN of the endpoint. */ public void setArn(String arn) { this.arn = arn; } /** ** The ARN of the endpoint. *
* * @return The ARN of the endpoint. */ public String getArn() { return this.arn; } /** ** The ARN of the endpoint. *
* * @param arn * The ARN of the endpoint. * @return Returns a reference to this object so that method calls can be chained together. */ public Endpoint withArn(String arn) { setArn(arn); return this; } /** ** The ID of the endpoint's virtual cluster. *
* * @param virtualClusterId * The ID of the endpoint's virtual cluster. */ public void setVirtualClusterId(String virtualClusterId) { this.virtualClusterId = virtualClusterId; } /** ** The ID of the endpoint's virtual cluster. *
* * @return The ID of the endpoint's virtual cluster. */ public String getVirtualClusterId() { return this.virtualClusterId; } /** ** The ID of the endpoint's virtual cluster. *
* * @param virtualClusterId * The ID of the endpoint's virtual cluster. * @return Returns a reference to this object so that method calls can be chained together. */ public Endpoint withVirtualClusterId(String virtualClusterId) { setVirtualClusterId(virtualClusterId); return this; } /** ** The type of the endpoint. *
* * @param type * The type of the endpoint. */ public void setType(String type) { this.type = type; } /** ** The type of the endpoint. *
* * @return The type of the endpoint. */ public String getType() { return this.type; } /** ** The type of the endpoint. *
* * @param type * The type of the endpoint. * @return Returns a reference to this object so that method calls can be chained together. */ public Endpoint withType(String type) { setType(type); return this; } /** ** The state of the endpoint. *
* * @param state * The state of the endpoint. * @see EndpointState */ public void setState(String state) { this.state = state; } /** ** The state of the endpoint. *
* * @return The state of the endpoint. * @see EndpointState */ public String getState() { return this.state; } /** ** The state of the endpoint. *
* * @param state * The state of the endpoint. * @return Returns a reference to this object so that method calls can be chained together. * @see EndpointState */ public Endpoint withState(String state) { setState(state); return this; } /** ** The state of the endpoint. *
* * @param state * The state of the endpoint. * @return Returns a reference to this object so that method calls can be chained together. * @see EndpointState */ public Endpoint withState(EndpointState state) { this.state = state.toString(); return this; } /** ** The EMR release version to be used for the endpoint. *
* * @param releaseLabel * The EMR release version to be used for the endpoint. */ public void setReleaseLabel(String releaseLabel) { this.releaseLabel = releaseLabel; } /** ** The EMR release version to be used for the endpoint. *
* * @return The EMR release version to be used for the endpoint. */ public String getReleaseLabel() { return this.releaseLabel; } /** ** The EMR release version to be used for the endpoint. *
* * @param releaseLabel * The EMR release version to be used for the endpoint. * @return Returns a reference to this object so that method calls can be chained together. */ public Endpoint withReleaseLabel(String releaseLabel) { setReleaseLabel(releaseLabel); return this; } /** ** The execution role ARN of the endpoint. *
* * @param executionRoleArn * The execution role ARN of the endpoint. */ public void setExecutionRoleArn(String executionRoleArn) { this.executionRoleArn = executionRoleArn; } /** ** The execution role ARN of the endpoint. *
* * @return The execution role ARN of the endpoint. */ public String getExecutionRoleArn() { return this.executionRoleArn; } /** ** The execution role ARN of the endpoint. *
* * @param executionRoleArn * The execution role ARN of the endpoint. * @return Returns a reference to this object so that method calls can be chained together. */ public Endpoint withExecutionRoleArn(String executionRoleArn) { setExecutionRoleArn(executionRoleArn); return this; } /** ** The certificate ARN of the endpoint. This field is under deprecation and will be removed in future. *
* * @param certificateArn * The certificate ARN of the endpoint. This field is under deprecation and will be removed in future. */ @Deprecated public void setCertificateArn(String certificateArn) { this.certificateArn = certificateArn; } /** ** The certificate ARN of the endpoint. This field is under deprecation and will be removed in future. *
* * @return The certificate ARN of the endpoint. This field is under deprecation and will be removed in future. */ @Deprecated public String getCertificateArn() { return this.certificateArn; } /** ** The certificate ARN of the endpoint. This field is under deprecation and will be removed in future. *
* * @param certificateArn * The certificate ARN of the endpoint. This field is under deprecation and will be removed in future. * @return Returns a reference to this object so that method calls can be chained together. */ @Deprecated public Endpoint withCertificateArn(String certificateArn) { setCertificateArn(certificateArn); return this; } /** ** The certificate generated by emr control plane on customer behalf to secure the managed endpoint. *
* * @param certificateAuthority * The certificate generated by emr control plane on customer behalf to secure the managed endpoint. */ public void setCertificateAuthority(Certificate certificateAuthority) { this.certificateAuthority = certificateAuthority; } /** ** The certificate generated by emr control plane on customer behalf to secure the managed endpoint. *
* * @return The certificate generated by emr control plane on customer behalf to secure the managed endpoint. */ public Certificate getCertificateAuthority() { return this.certificateAuthority; } /** ** The certificate generated by emr control plane on customer behalf to secure the managed endpoint. *
* * @param certificateAuthority * The certificate generated by emr control plane on customer behalf to secure the managed endpoint. * @return Returns a reference to this object so that method calls can be chained together. */ public Endpoint withCertificateAuthority(Certificate certificateAuthority) { setCertificateAuthority(certificateAuthority); return this; } /** ** The configuration settings that are used to override existing configurations for endpoints. *
* * @param configurationOverrides * The configuration settings that are used to override existing configurations for endpoints. */ public void setConfigurationOverrides(ConfigurationOverrides configurationOverrides) { this.configurationOverrides = configurationOverrides; } /** ** The configuration settings that are used to override existing configurations for endpoints. *
* * @return The configuration settings that are used to override existing configurations for endpoints. */ public ConfigurationOverrides getConfigurationOverrides() { return this.configurationOverrides; } /** ** The configuration settings that are used to override existing configurations for endpoints. *
* * @param configurationOverrides * The configuration settings that are used to override existing configurations for endpoints. * @return Returns a reference to this object so that method calls can be chained together. */ public Endpoint withConfigurationOverrides(ConfigurationOverrides configurationOverrides) { setConfigurationOverrides(configurationOverrides); return this; } /** ** The server URL of the endpoint. *
* * @param serverUrl * The server URL of the endpoint. */ public void setServerUrl(String serverUrl) { this.serverUrl = serverUrl; } /** ** The server URL of the endpoint. *
* * @return The server URL of the endpoint. */ public String getServerUrl() { return this.serverUrl; } /** ** The server URL of the endpoint. *
* * @param serverUrl * The server URL of the endpoint. * @return Returns a reference to this object so that method calls can be chained together. */ public Endpoint withServerUrl(String serverUrl) { setServerUrl(serverUrl); return this; } /** ** The date and time when the endpoint was created. *
* * @param createdAt * The date and time when the endpoint was created. */ public void setCreatedAt(java.util.Date createdAt) { this.createdAt = createdAt; } /** ** The date and time when the endpoint was created. *
* * @return The date and time when the endpoint was created. */ public java.util.Date getCreatedAt() { return this.createdAt; } /** ** The date and time when the endpoint was created. *
* * @param createdAt * The date and time when the endpoint was created. * @return Returns a reference to this object so that method calls can be chained together. */ public Endpoint withCreatedAt(java.util.Date createdAt) { setCreatedAt(createdAt); return this; } /** ** The security group configuration of the endpoint. *
* * @param securityGroup * The security group configuration of the endpoint. */ public void setSecurityGroup(String securityGroup) { this.securityGroup = securityGroup; } /** ** The security group configuration of the endpoint. *
* * @return The security group configuration of the endpoint. */ public String getSecurityGroup() { return this.securityGroup; } /** ** The security group configuration of the endpoint. *
* * @param securityGroup * The security group configuration of the endpoint. * @return Returns a reference to this object so that method calls can be chained together. */ public Endpoint withSecurityGroup(String securityGroup) { setSecurityGroup(securityGroup); return this; } /** ** The subnet IDs of the endpoint. *
* * @return The subnet IDs of the endpoint. */ public java.util.List* The subnet IDs of the endpoint. *
* * @param subnetIds * The subnet IDs of the endpoint. */ public void setSubnetIds(java.util.Collection* The subnet IDs of the endpoint. *
** 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 subnet IDs of the endpoint. * @return Returns a reference to this object so that method calls can be chained together. */ public Endpoint withSubnetIds(String... subnetIds) { if (this.subnetIds == null) { setSubnetIds(new java.util.ArrayList* The subnet IDs of the endpoint. *
* * @param subnetIds * The subnet IDs of the endpoint. * @return Returns a reference to this object so that method calls can be chained together. */ public Endpoint withSubnetIds(java.util.Collection* Additional details of the endpoint state. *
* * @param stateDetails * Additional details of the endpoint state. */ public void setStateDetails(String stateDetails) { this.stateDetails = stateDetails; } /** ** Additional details of the endpoint state. *
* * @return Additional details of the endpoint state. */ public String getStateDetails() { return this.stateDetails; } /** ** Additional details of the endpoint state. *
* * @param stateDetails * Additional details of the endpoint state. * @return Returns a reference to this object so that method calls can be chained together. */ public Endpoint withStateDetails(String stateDetails) { setStateDetails(stateDetails); return this; } /** ** The reasons why the endpoint has failed. *
* * @param failureReason * The reasons why the endpoint has failed. * @see FailureReason */ public void setFailureReason(String failureReason) { this.failureReason = failureReason; } /** ** The reasons why the endpoint has failed. *
* * @return The reasons why the endpoint has failed. * @see FailureReason */ public String getFailureReason() { return this.failureReason; } /** ** The reasons why the endpoint has failed. *
* * @param failureReason * The reasons why the endpoint has failed. * @return Returns a reference to this object so that method calls can be chained together. * @see FailureReason */ public Endpoint withFailureReason(String failureReason) { setFailureReason(failureReason); return this; } /** ** The reasons why the endpoint has failed. *
* * @param failureReason * The reasons why the endpoint has failed. * @return Returns a reference to this object so that method calls can be chained together. * @see FailureReason */ public Endpoint withFailureReason(FailureReason failureReason) { this.failureReason = failureReason.toString(); return this; } /** ** The tags of the endpoint. *
* * @return The tags of the endpoint. */ public java.util.Map* The tags of the endpoint. *
* * @param tags * The tags of the endpoint. */ public void setTags(java.util.Map* The tags of the endpoint. *
* * @param tags * The tags of the endpoint. * @return Returns a reference to this object so that method calls can be chained together. */ public Endpoint withTags(java.util.Map