/* * 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.redshift.model; import java.io.Serializable; import javax.annotation.Generated; /** *
* An Identity and Access Management (IAM) role that can be used by the associated Amazon Redshift cluster to access * other Amazon Web Services services. *
* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class ClusterIamRole implements Serializable, Cloneable { /** *
* The Amazon Resource Name (ARN) of the IAM role, for example,
* arn:aws:iam::123456789012:role/RedshiftCopyUnload
.
*
* A value that describes the status of the IAM role's association with an Amazon Redshift cluster. *
** The following are possible statuses and descriptions. *
*
* in-sync
: The role is available for use by the cluster.
*
* adding
: The role is in the process of being associated with the cluster.
*
* removing
: The role is in the process of being disassociated with the cluster.
*
* The Amazon Resource Name (ARN) of the IAM role, for example,
* arn:aws:iam::123456789012:role/RedshiftCopyUnload
.
*
arn:aws:iam::123456789012:role/RedshiftCopyUnload
.
*/
public void setIamRoleArn(String iamRoleArn) {
this.iamRoleArn = iamRoleArn;
}
/**
*
* The Amazon Resource Name (ARN) of the IAM role, for example,
* arn:aws:iam::123456789012:role/RedshiftCopyUnload
.
*
arn:aws:iam::123456789012:role/RedshiftCopyUnload
.
*/
public String getIamRoleArn() {
return this.iamRoleArn;
}
/**
*
* The Amazon Resource Name (ARN) of the IAM role, for example,
* arn:aws:iam::123456789012:role/RedshiftCopyUnload
.
*
arn:aws:iam::123456789012:role/RedshiftCopyUnload
.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ClusterIamRole withIamRoleArn(String iamRoleArn) {
setIamRoleArn(iamRoleArn);
return this;
}
/**
* * A value that describes the status of the IAM role's association with an Amazon Redshift cluster. *
** The following are possible statuses and descriptions. *
*
* in-sync
: The role is available for use by the cluster.
*
* adding
: The role is in the process of being associated with the cluster.
*
* removing
: The role is in the process of being disassociated with the cluster.
*
* The following are possible statuses and descriptions. *
*
* in-sync
: The role is available for use by the cluster.
*
* adding
: The role is in the process of being associated with the cluster.
*
* removing
: The role is in the process of being disassociated with the cluster.
*
* A value that describes the status of the IAM role's association with an Amazon Redshift cluster. *
** The following are possible statuses and descriptions. *
*
* in-sync
: The role is available for use by the cluster.
*
* adding
: The role is in the process of being associated with the cluster.
*
* removing
: The role is in the process of being disassociated with the cluster.
*
* The following are possible statuses and descriptions. *
*
* in-sync
: The role is available for use by the cluster.
*
* adding
: The role is in the process of being associated with the cluster.
*
* removing
: The role is in the process of being disassociated with the cluster.
*
* A value that describes the status of the IAM role's association with an Amazon Redshift cluster. *
** The following are possible statuses and descriptions. *
*
* in-sync
: The role is available for use by the cluster.
*
* adding
: The role is in the process of being associated with the cluster.
*
* removing
: The role is in the process of being disassociated with the cluster.
*
* The following are possible statuses and descriptions. *
*
* in-sync
: The role is available for use by the cluster.
*
* adding
: The role is in the process of being associated with the cluster.
*
* removing
: The role is in the process of being disassociated with the cluster.
*