com.amazonaws.services.redshift.model.CreateRedshiftIdcApplicationRequest Maven / Gradle / Ivy
Show all versions of aws-java-sdk-redshift Show documentation
/*
* Copyright 2019-2024 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;
import com.amazonaws.AmazonWebServiceRequest;
/**
*
* @see AWS API Documentation
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class CreateRedshiftIdcApplicationRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable {
/**
*
* The Amazon resource name (ARN) of the IAM Identity Center instance where Amazon Redshift creates a new managed
* application.
*
*/
private String idcInstanceArn;
/**
*
* The name of the Redshift application in IAM Identity Center.
*
*/
private String redshiftIdcApplicationName;
/**
*
* The namespace for the Amazon Redshift IAM Identity Center application instance. It determines which managed
* application verifies the connection token.
*
*/
private String identityNamespace;
/**
*
* The display name for the Amazon Redshift IAM Identity Center application instance. It appears in the console.
*
*/
private String idcDisplayName;
/**
*
* The IAM role ARN for the Amazon Redshift IAM Identity Center application instance. It has the required
* permissions to be assumed and invoke the IDC Identity Center API.
*
*/
private String iamRoleArn;
/**
*
* The token issuer list for the Amazon Redshift IAM Identity Center application instance.
*
*/
private com.amazonaws.internal.SdkInternalList authorizedTokenIssuerList;
/**
*
* A collection of service integrations for the Redshift IAM Identity Center application.
*
*/
private com.amazonaws.internal.SdkInternalList serviceIntegrations;
/**
*
* The Amazon resource name (ARN) of the IAM Identity Center instance where Amazon Redshift creates a new managed
* application.
*
*
* @param idcInstanceArn
* The Amazon resource name (ARN) of the IAM Identity Center instance where Amazon Redshift creates a new
* managed application.
*/
public void setIdcInstanceArn(String idcInstanceArn) {
this.idcInstanceArn = idcInstanceArn;
}
/**
*
* The Amazon resource name (ARN) of the IAM Identity Center instance where Amazon Redshift creates a new managed
* application.
*
*
* @return The Amazon resource name (ARN) of the IAM Identity Center instance where Amazon Redshift creates a new
* managed application.
*/
public String getIdcInstanceArn() {
return this.idcInstanceArn;
}
/**
*
* The Amazon resource name (ARN) of the IAM Identity Center instance where Amazon Redshift creates a new managed
* application.
*
*
* @param idcInstanceArn
* The Amazon resource name (ARN) of the IAM Identity Center instance where Amazon Redshift creates a new
* managed application.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateRedshiftIdcApplicationRequest withIdcInstanceArn(String idcInstanceArn) {
setIdcInstanceArn(idcInstanceArn);
return this;
}
/**
*
* The name of the Redshift application in IAM Identity Center.
*
*
* @param redshiftIdcApplicationName
* The name of the Redshift application in IAM Identity Center.
*/
public void setRedshiftIdcApplicationName(String redshiftIdcApplicationName) {
this.redshiftIdcApplicationName = redshiftIdcApplicationName;
}
/**
*
* The name of the Redshift application in IAM Identity Center.
*
*
* @return The name of the Redshift application in IAM Identity Center.
*/
public String getRedshiftIdcApplicationName() {
return this.redshiftIdcApplicationName;
}
/**
*
* The name of the Redshift application in IAM Identity Center.
*
*
* @param redshiftIdcApplicationName
* The name of the Redshift application in IAM Identity Center.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateRedshiftIdcApplicationRequest withRedshiftIdcApplicationName(String redshiftIdcApplicationName) {
setRedshiftIdcApplicationName(redshiftIdcApplicationName);
return this;
}
/**
*
* The namespace for the Amazon Redshift IAM Identity Center application instance. It determines which managed
* application verifies the connection token.
*
*
* @param identityNamespace
* The namespace for the Amazon Redshift IAM Identity Center application instance. It determines which
* managed application verifies the connection token.
*/
public void setIdentityNamespace(String identityNamespace) {
this.identityNamespace = identityNamespace;
}
/**
*
* The namespace for the Amazon Redshift IAM Identity Center application instance. It determines which managed
* application verifies the connection token.
*
*
* @return The namespace for the Amazon Redshift IAM Identity Center application instance. It determines which
* managed application verifies the connection token.
*/
public String getIdentityNamespace() {
return this.identityNamespace;
}
/**
*
* The namespace for the Amazon Redshift IAM Identity Center application instance. It determines which managed
* application verifies the connection token.
*
*
* @param identityNamespace
* The namespace for the Amazon Redshift IAM Identity Center application instance. It determines which
* managed application verifies the connection token.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateRedshiftIdcApplicationRequest withIdentityNamespace(String identityNamespace) {
setIdentityNamespace(identityNamespace);
return this;
}
/**
*
* The display name for the Amazon Redshift IAM Identity Center application instance. It appears in the console.
*
*
* @param idcDisplayName
* The display name for the Amazon Redshift IAM Identity Center application instance. It appears in the
* console.
*/
public void setIdcDisplayName(String idcDisplayName) {
this.idcDisplayName = idcDisplayName;
}
/**
*
* The display name for the Amazon Redshift IAM Identity Center application instance. It appears in the console.
*
*
* @return The display name for the Amazon Redshift IAM Identity Center application instance. It appears in the
* console.
*/
public String getIdcDisplayName() {
return this.idcDisplayName;
}
/**
*
* The display name for the Amazon Redshift IAM Identity Center application instance. It appears in the console.
*
*
* @param idcDisplayName
* The display name for the Amazon Redshift IAM Identity Center application instance. It appears in the
* console.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateRedshiftIdcApplicationRequest withIdcDisplayName(String idcDisplayName) {
setIdcDisplayName(idcDisplayName);
return this;
}
/**
*
* The IAM role ARN for the Amazon Redshift IAM Identity Center application instance. It has the required
* permissions to be assumed and invoke the IDC Identity Center API.
*
*
* @param iamRoleArn
* The IAM role ARN for the Amazon Redshift IAM Identity Center application instance. It has the required
* permissions to be assumed and invoke the IDC Identity Center API.
*/
public void setIamRoleArn(String iamRoleArn) {
this.iamRoleArn = iamRoleArn;
}
/**
*
* The IAM role ARN for the Amazon Redshift IAM Identity Center application instance. It has the required
* permissions to be assumed and invoke the IDC Identity Center API.
*
*
* @return The IAM role ARN for the Amazon Redshift IAM Identity Center application instance. It has the required
* permissions to be assumed and invoke the IDC Identity Center API.
*/
public String getIamRoleArn() {
return this.iamRoleArn;
}
/**
*
* The IAM role ARN for the Amazon Redshift IAM Identity Center application instance. It has the required
* permissions to be assumed and invoke the IDC Identity Center API.
*
*
* @param iamRoleArn
* The IAM role ARN for the Amazon Redshift IAM Identity Center application instance. It has the required
* permissions to be assumed and invoke the IDC Identity Center API.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateRedshiftIdcApplicationRequest withIamRoleArn(String iamRoleArn) {
setIamRoleArn(iamRoleArn);
return this;
}
/**
*
* The token issuer list for the Amazon Redshift IAM Identity Center application instance.
*
*
* @return The token issuer list for the Amazon Redshift IAM Identity Center application instance.
*/
public java.util.List getAuthorizedTokenIssuerList() {
if (authorizedTokenIssuerList == null) {
authorizedTokenIssuerList = new com.amazonaws.internal.SdkInternalList();
}
return authorizedTokenIssuerList;
}
/**
*
* The token issuer list for the Amazon Redshift IAM Identity Center application instance.
*
*
* @param authorizedTokenIssuerList
* The token issuer list for the Amazon Redshift IAM Identity Center application instance.
*/
public void setAuthorizedTokenIssuerList(java.util.Collection authorizedTokenIssuerList) {
if (authorizedTokenIssuerList == null) {
this.authorizedTokenIssuerList = null;
return;
}
this.authorizedTokenIssuerList = new com.amazonaws.internal.SdkInternalList(authorizedTokenIssuerList);
}
/**
*
* The token issuer list for the Amazon Redshift IAM Identity Center application instance.
*
*
* NOTE: This method appends the values to the existing list (if any). Use
* {@link #setAuthorizedTokenIssuerList(java.util.Collection)} or
* {@link #withAuthorizedTokenIssuerList(java.util.Collection)} if you want to override the existing values.
*
*
* @param authorizedTokenIssuerList
* The token issuer list for the Amazon Redshift IAM Identity Center application instance.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateRedshiftIdcApplicationRequest withAuthorizedTokenIssuerList(AuthorizedTokenIssuer... authorizedTokenIssuerList) {
if (this.authorizedTokenIssuerList == null) {
setAuthorizedTokenIssuerList(new com.amazonaws.internal.SdkInternalList(authorizedTokenIssuerList.length));
}
for (AuthorizedTokenIssuer ele : authorizedTokenIssuerList) {
this.authorizedTokenIssuerList.add(ele);
}
return this;
}
/**
*
* The token issuer list for the Amazon Redshift IAM Identity Center application instance.
*
*
* @param authorizedTokenIssuerList
* The token issuer list for the Amazon Redshift IAM Identity Center application instance.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateRedshiftIdcApplicationRequest withAuthorizedTokenIssuerList(java.util.Collection authorizedTokenIssuerList) {
setAuthorizedTokenIssuerList(authorizedTokenIssuerList);
return this;
}
/**
*
* A collection of service integrations for the Redshift IAM Identity Center application.
*
*
* @return A collection of service integrations for the Redshift IAM Identity Center application.
*/
public java.util.List getServiceIntegrations() {
if (serviceIntegrations == null) {
serviceIntegrations = new com.amazonaws.internal.SdkInternalList();
}
return serviceIntegrations;
}
/**
*
* A collection of service integrations for the Redshift IAM Identity Center application.
*
*
* @param serviceIntegrations
* A collection of service integrations for the Redshift IAM Identity Center application.
*/
public void setServiceIntegrations(java.util.Collection serviceIntegrations) {
if (serviceIntegrations == null) {
this.serviceIntegrations = null;
return;
}
this.serviceIntegrations = new com.amazonaws.internal.SdkInternalList(serviceIntegrations);
}
/**
*
* A collection of service integrations for the Redshift IAM Identity Center application.
*
*
* NOTE: This method appends the values to the existing list (if any). Use
* {@link #setServiceIntegrations(java.util.Collection)} or {@link #withServiceIntegrations(java.util.Collection)}
* if you want to override the existing values.
*
*
* @param serviceIntegrations
* A collection of service integrations for the Redshift IAM Identity Center application.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateRedshiftIdcApplicationRequest withServiceIntegrations(ServiceIntegrationsUnion... serviceIntegrations) {
if (this.serviceIntegrations == null) {
setServiceIntegrations(new com.amazonaws.internal.SdkInternalList(serviceIntegrations.length));
}
for (ServiceIntegrationsUnion ele : serviceIntegrations) {
this.serviceIntegrations.add(ele);
}
return this;
}
/**
*
* A collection of service integrations for the Redshift IAM Identity Center application.
*
*
* @param serviceIntegrations
* A collection of service integrations for the Redshift IAM Identity Center application.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateRedshiftIdcApplicationRequest withServiceIntegrations(java.util.Collection serviceIntegrations) {
setServiceIntegrations(serviceIntegrations);
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 (getIdcInstanceArn() != null)
sb.append("IdcInstanceArn: ").append(getIdcInstanceArn()).append(",");
if (getRedshiftIdcApplicationName() != null)
sb.append("RedshiftIdcApplicationName: ").append(getRedshiftIdcApplicationName()).append(",");
if (getIdentityNamespace() != null)
sb.append("IdentityNamespace: ").append(getIdentityNamespace()).append(",");
if (getIdcDisplayName() != null)
sb.append("IdcDisplayName: ").append(getIdcDisplayName()).append(",");
if (getIamRoleArn() != null)
sb.append("IamRoleArn: ").append(getIamRoleArn()).append(",");
if (getAuthorizedTokenIssuerList() != null)
sb.append("AuthorizedTokenIssuerList: ").append(getAuthorizedTokenIssuerList()).append(",");
if (getServiceIntegrations() != null)
sb.append("ServiceIntegrations: ").append(getServiceIntegrations());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof CreateRedshiftIdcApplicationRequest == false)
return false;
CreateRedshiftIdcApplicationRequest other = (CreateRedshiftIdcApplicationRequest) obj;
if (other.getIdcInstanceArn() == null ^ this.getIdcInstanceArn() == null)
return false;
if (other.getIdcInstanceArn() != null && other.getIdcInstanceArn().equals(this.getIdcInstanceArn()) == false)
return false;
if (other.getRedshiftIdcApplicationName() == null ^ this.getRedshiftIdcApplicationName() == null)
return false;
if (other.getRedshiftIdcApplicationName() != null && other.getRedshiftIdcApplicationName().equals(this.getRedshiftIdcApplicationName()) == false)
return false;
if (other.getIdentityNamespace() == null ^ this.getIdentityNamespace() == null)
return false;
if (other.getIdentityNamespace() != null && other.getIdentityNamespace().equals(this.getIdentityNamespace()) == false)
return false;
if (other.getIdcDisplayName() == null ^ this.getIdcDisplayName() == null)
return false;
if (other.getIdcDisplayName() != null && other.getIdcDisplayName().equals(this.getIdcDisplayName()) == false)
return false;
if (other.getIamRoleArn() == null ^ this.getIamRoleArn() == null)
return false;
if (other.getIamRoleArn() != null && other.getIamRoleArn().equals(this.getIamRoleArn()) == false)
return false;
if (other.getAuthorizedTokenIssuerList() == null ^ this.getAuthorizedTokenIssuerList() == null)
return false;
if (other.getAuthorizedTokenIssuerList() != null && other.getAuthorizedTokenIssuerList().equals(this.getAuthorizedTokenIssuerList()) == false)
return false;
if (other.getServiceIntegrations() == null ^ this.getServiceIntegrations() == null)
return false;
if (other.getServiceIntegrations() != null && other.getServiceIntegrations().equals(this.getServiceIntegrations()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getIdcInstanceArn() == null) ? 0 : getIdcInstanceArn().hashCode());
hashCode = prime * hashCode + ((getRedshiftIdcApplicationName() == null) ? 0 : getRedshiftIdcApplicationName().hashCode());
hashCode = prime * hashCode + ((getIdentityNamespace() == null) ? 0 : getIdentityNamespace().hashCode());
hashCode = prime * hashCode + ((getIdcDisplayName() == null) ? 0 : getIdcDisplayName().hashCode());
hashCode = prime * hashCode + ((getIamRoleArn() == null) ? 0 : getIamRoleArn().hashCode());
hashCode = prime * hashCode + ((getAuthorizedTokenIssuerList() == null) ? 0 : getAuthorizedTokenIssuerList().hashCode());
hashCode = prime * hashCode + ((getServiceIntegrations() == null) ? 0 : getServiceIntegrations().hashCode());
return hashCode;
}
@Override
public CreateRedshiftIdcApplicationRequest clone() {
return (CreateRedshiftIdcApplicationRequest) super.clone();
}
}