com.amazonaws.services.redshift.model.ModifyRedshiftIdcApplicationRequest 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 ModifyRedshiftIdcApplicationRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable {
/**
*
* The ARN for the Redshift application that integrates with IAM Identity Center.
*
*/
private String redshiftIdcApplicationArn;
/**
*
* The namespace for the Amazon Redshift IAM Identity Center application to change. It determines which managed
* application verifies the connection token.
*
*/
private String identityNamespace;
/**
*
* The IAM role ARN associated with the Amazon Redshift IAM Identity Center application to change. It has the
* required permissions to be assumed and invoke the IDC Identity Center API.
*
*/
private String iamRoleArn;
/**
*
* The display name for the Amazon Redshift IAM Identity Center application to change. It appears on the console.
*
*/
private String idcDisplayName;
/**
*
* The authorized token issuer list for the Amazon Redshift IAM Identity Center application to change.
*
*/
private com.amazonaws.internal.SdkInternalList authorizedTokenIssuerList;
/**
*
* A collection of service integrations associated with the application.
*
*/
private com.amazonaws.internal.SdkInternalList serviceIntegrations;
/**
*
* The ARN for the Redshift application that integrates with IAM Identity Center.
*
*
* @param redshiftIdcApplicationArn
* The ARN for the Redshift application that integrates with IAM Identity Center.
*/
public void setRedshiftIdcApplicationArn(String redshiftIdcApplicationArn) {
this.redshiftIdcApplicationArn = redshiftIdcApplicationArn;
}
/**
*
* The ARN for the Redshift application that integrates with IAM Identity Center.
*
*
* @return The ARN for the Redshift application that integrates with IAM Identity Center.
*/
public String getRedshiftIdcApplicationArn() {
return this.redshiftIdcApplicationArn;
}
/**
*
* The ARN for the Redshift application that integrates with IAM Identity Center.
*
*
* @param redshiftIdcApplicationArn
* The ARN for the Redshift application that integrates with IAM Identity Center.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ModifyRedshiftIdcApplicationRequest withRedshiftIdcApplicationArn(String redshiftIdcApplicationArn) {
setRedshiftIdcApplicationArn(redshiftIdcApplicationArn);
return this;
}
/**
*
* The namespace for the Amazon Redshift IAM Identity Center application to change. It determines which managed
* application verifies the connection token.
*
*
* @param identityNamespace
* The namespace for the Amazon Redshift IAM Identity Center application to change. 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 to change. It determines which managed
* application verifies the connection token.
*
*
* @return The namespace for the Amazon Redshift IAM Identity Center application to change. 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 to change. It determines which managed
* application verifies the connection token.
*
*
* @param identityNamespace
* The namespace for the Amazon Redshift IAM Identity Center application to change. 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 ModifyRedshiftIdcApplicationRequest withIdentityNamespace(String identityNamespace) {
setIdentityNamespace(identityNamespace);
return this;
}
/**
*
* The IAM role ARN associated with the Amazon Redshift IAM Identity Center application to change. It has the
* required permissions to be assumed and invoke the IDC Identity Center API.
*
*
* @param iamRoleArn
* The IAM role ARN associated with the Amazon Redshift IAM Identity Center application to change. 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 associated with the Amazon Redshift IAM Identity Center application to change. It has the
* required permissions to be assumed and invoke the IDC Identity Center API.
*
*
* @return The IAM role ARN associated with the Amazon Redshift IAM Identity Center application to change. 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 associated with the Amazon Redshift IAM Identity Center application to change. It has the
* required permissions to be assumed and invoke the IDC Identity Center API.
*
*
* @param iamRoleArn
* The IAM role ARN associated with the Amazon Redshift IAM Identity Center application to change. 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 ModifyRedshiftIdcApplicationRequest withIamRoleArn(String iamRoleArn) {
setIamRoleArn(iamRoleArn);
return this;
}
/**
*
* The display name for the Amazon Redshift IAM Identity Center application to change. It appears on the console.
*
*
* @param idcDisplayName
* The display name for the Amazon Redshift IAM Identity Center application to change. It appears on the
* console.
*/
public void setIdcDisplayName(String idcDisplayName) {
this.idcDisplayName = idcDisplayName;
}
/**
*
* The display name for the Amazon Redshift IAM Identity Center application to change. It appears on the console.
*
*
* @return The display name for the Amazon Redshift IAM Identity Center application to change. It appears on the
* console.
*/
public String getIdcDisplayName() {
return this.idcDisplayName;
}
/**
*
* The display name for the Amazon Redshift IAM Identity Center application to change. It appears on the console.
*
*
* @param idcDisplayName
* The display name for the Amazon Redshift IAM Identity Center application to change. It appears on the
* console.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ModifyRedshiftIdcApplicationRequest withIdcDisplayName(String idcDisplayName) {
setIdcDisplayName(idcDisplayName);
return this;
}
/**
*
* The authorized token issuer list for the Amazon Redshift IAM Identity Center application to change.
*
*
* @return The authorized token issuer list for the Amazon Redshift IAM Identity Center application to change.
*/
public java.util.List getAuthorizedTokenIssuerList() {
if (authorizedTokenIssuerList == null) {
authorizedTokenIssuerList = new com.amazonaws.internal.SdkInternalList();
}
return authorizedTokenIssuerList;
}
/**
*
* The authorized token issuer list for the Amazon Redshift IAM Identity Center application to change.
*
*
* @param authorizedTokenIssuerList
* The authorized token issuer list for the Amazon Redshift IAM Identity Center application to change.
*/
public void setAuthorizedTokenIssuerList(java.util.Collection authorizedTokenIssuerList) {
if (authorizedTokenIssuerList == null) {
this.authorizedTokenIssuerList = null;
return;
}
this.authorizedTokenIssuerList = new com.amazonaws.internal.SdkInternalList(authorizedTokenIssuerList);
}
/**
*
* The authorized token issuer list for the Amazon Redshift IAM Identity Center application to change.
*
*
* 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 authorized token issuer list for the Amazon Redshift IAM Identity Center application to change.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ModifyRedshiftIdcApplicationRequest 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 authorized token issuer list for the Amazon Redshift IAM Identity Center application to change.
*
*
* @param authorizedTokenIssuerList
* The authorized token issuer list for the Amazon Redshift IAM Identity Center application to change.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ModifyRedshiftIdcApplicationRequest withAuthorizedTokenIssuerList(java.util.Collection authorizedTokenIssuerList) {
setAuthorizedTokenIssuerList(authorizedTokenIssuerList);
return this;
}
/**
*
* A collection of service integrations associated with the application.
*
*
* @return A collection of service integrations associated with the application.
*/
public java.util.List getServiceIntegrations() {
if (serviceIntegrations == null) {
serviceIntegrations = new com.amazonaws.internal.SdkInternalList();
}
return serviceIntegrations;
}
/**
*
* A collection of service integrations associated with the application.
*
*
* @param serviceIntegrations
* A collection of service integrations associated with the 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 associated with the 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 associated with the application.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ModifyRedshiftIdcApplicationRequest 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 associated with the application.
*
*
* @param serviceIntegrations
* A collection of service integrations associated with the application.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ModifyRedshiftIdcApplicationRequest 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 (getRedshiftIdcApplicationArn() != null)
sb.append("RedshiftIdcApplicationArn: ").append(getRedshiftIdcApplicationArn()).append(",");
if (getIdentityNamespace() != null)
sb.append("IdentityNamespace: ").append(getIdentityNamespace()).append(",");
if (getIamRoleArn() != null)
sb.append("IamRoleArn: ").append(getIamRoleArn()).append(",");
if (getIdcDisplayName() != null)
sb.append("IdcDisplayName: ").append(getIdcDisplayName()).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 ModifyRedshiftIdcApplicationRequest == false)
return false;
ModifyRedshiftIdcApplicationRequest other = (ModifyRedshiftIdcApplicationRequest) obj;
if (other.getRedshiftIdcApplicationArn() == null ^ this.getRedshiftIdcApplicationArn() == null)
return false;
if (other.getRedshiftIdcApplicationArn() != null && other.getRedshiftIdcApplicationArn().equals(this.getRedshiftIdcApplicationArn()) == 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.getIamRoleArn() == null ^ this.getIamRoleArn() == null)
return false;
if (other.getIamRoleArn() != null && other.getIamRoleArn().equals(this.getIamRoleArn()) == 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.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 + ((getRedshiftIdcApplicationArn() == null) ? 0 : getRedshiftIdcApplicationArn().hashCode());
hashCode = prime * hashCode + ((getIdentityNamespace() == null) ? 0 : getIdentityNamespace().hashCode());
hashCode = prime * hashCode + ((getIamRoleArn() == null) ? 0 : getIamRoleArn().hashCode());
hashCode = prime * hashCode + ((getIdcDisplayName() == null) ? 0 : getIdcDisplayName().hashCode());
hashCode = prime * hashCode + ((getAuthorizedTokenIssuerList() == null) ? 0 : getAuthorizedTokenIssuerList().hashCode());
hashCode = prime * hashCode + ((getServiceIntegrations() == null) ? 0 : getServiceIntegrations().hashCode());
return hashCode;
}
@Override
public ModifyRedshiftIdcApplicationRequest clone() {
return (ModifyRedshiftIdcApplicationRequest) super.clone();
}
}