com.amazonaws.services.lakeformation.model.CreateLakeFormationIdentityCenterConfigurationRequest Maven / Gradle / Ivy
Show all versions of aws-java-sdk-lakeformation 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.lakeformation.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 CreateLakeFormationIdentityCenterConfigurationRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable {
/**
*
* The identifier for the Data Catalog. By default, the account ID. The Data Catalog is the persistent metadata
* store. It contains database definitions, table definitions, view definitions, and other control information to
* manage your Lake Formation environment.
*
*/
private String catalogId;
/**
*
* The ARN of the IAM Identity Center instance for which the operation will be executed. For more information about
* ARNs, see Amazon Resource Names (ARNs) and Amazon Web Services Service Namespaces in the Amazon Web Services
* General Reference.
*
*/
private String instanceArn;
/**
*
* A list of the account IDs of Amazon Web Services accounts of third-party applications that are allowed to access
* data managed by Lake Formation.
*
*/
private ExternalFilteringConfiguration externalFiltering;
/**
*
* A list of Amazon Web Services account IDs and/or Amazon Web Services organization/organizational unit ARNs that
* are allowed to access data managed by Lake Formation.
*
*
* If the ShareRecipients
list includes valid values, a resource share is created with the principals
* you want to have access to the resources.
*
*
* If the ShareRecipients
value is null or the list is empty, no resource share is created.
*
*/
private java.util.List shareRecipients;
/**
*
* The identifier for the Data Catalog. By default, the account ID. The Data Catalog is the persistent metadata
* store. It contains database definitions, table definitions, view definitions, and other control information to
* manage your Lake Formation environment.
*
*
* @param catalogId
* The identifier for the Data Catalog. By default, the account ID. The Data Catalog is the persistent
* metadata store. It contains database definitions, table definitions, view definitions, and other control
* information to manage your Lake Formation environment.
*/
public void setCatalogId(String catalogId) {
this.catalogId = catalogId;
}
/**
*
* The identifier for the Data Catalog. By default, the account ID. The Data Catalog is the persistent metadata
* store. It contains database definitions, table definitions, view definitions, and other control information to
* manage your Lake Formation environment.
*
*
* @return The identifier for the Data Catalog. By default, the account ID. The Data Catalog is the persistent
* metadata store. It contains database definitions, table definitions, view definitions, and other control
* information to manage your Lake Formation environment.
*/
public String getCatalogId() {
return this.catalogId;
}
/**
*
* The identifier for the Data Catalog. By default, the account ID. The Data Catalog is the persistent metadata
* store. It contains database definitions, table definitions, view definitions, and other control information to
* manage your Lake Formation environment.
*
*
* @param catalogId
* The identifier for the Data Catalog. By default, the account ID. The Data Catalog is the persistent
* metadata store. It contains database definitions, table definitions, view definitions, and other control
* information to manage your Lake Formation environment.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateLakeFormationIdentityCenterConfigurationRequest withCatalogId(String catalogId) {
setCatalogId(catalogId);
return this;
}
/**
*
* The ARN of the IAM Identity Center instance for which the operation will be executed. For more information about
* ARNs, see Amazon Resource Names (ARNs) and Amazon Web Services Service Namespaces in the Amazon Web Services
* General Reference.
*
*
* @param instanceArn
* The ARN of the IAM Identity Center instance for which the operation will be executed. For more information
* about ARNs, see Amazon Resource Names (ARNs) and Amazon Web Services Service Namespaces in the Amazon Web
* Services General Reference.
*/
public void setInstanceArn(String instanceArn) {
this.instanceArn = instanceArn;
}
/**
*
* The ARN of the IAM Identity Center instance for which the operation will be executed. For more information about
* ARNs, see Amazon Resource Names (ARNs) and Amazon Web Services Service Namespaces in the Amazon Web Services
* General Reference.
*
*
* @return The ARN of the IAM Identity Center instance for which the operation will be executed. For more
* information about ARNs, see Amazon Resource Names (ARNs) and Amazon Web Services Service Namespaces in
* the Amazon Web Services General Reference.
*/
public String getInstanceArn() {
return this.instanceArn;
}
/**
*
* The ARN of the IAM Identity Center instance for which the operation will be executed. For more information about
* ARNs, see Amazon Resource Names (ARNs) and Amazon Web Services Service Namespaces in the Amazon Web Services
* General Reference.
*
*
* @param instanceArn
* The ARN of the IAM Identity Center instance for which the operation will be executed. For more information
* about ARNs, see Amazon Resource Names (ARNs) and Amazon Web Services Service Namespaces in the Amazon Web
* Services General Reference.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateLakeFormationIdentityCenterConfigurationRequest withInstanceArn(String instanceArn) {
setInstanceArn(instanceArn);
return this;
}
/**
*
* A list of the account IDs of Amazon Web Services accounts of third-party applications that are allowed to access
* data managed by Lake Formation.
*
*
* @param externalFiltering
* A list of the account IDs of Amazon Web Services accounts of third-party applications that are allowed to
* access data managed by Lake Formation.
*/
public void setExternalFiltering(ExternalFilteringConfiguration externalFiltering) {
this.externalFiltering = externalFiltering;
}
/**
*
* A list of the account IDs of Amazon Web Services accounts of third-party applications that are allowed to access
* data managed by Lake Formation.
*
*
* @return A list of the account IDs of Amazon Web Services accounts of third-party applications that are allowed to
* access data managed by Lake Formation.
*/
public ExternalFilteringConfiguration getExternalFiltering() {
return this.externalFiltering;
}
/**
*
* A list of the account IDs of Amazon Web Services accounts of third-party applications that are allowed to access
* data managed by Lake Formation.
*
*
* @param externalFiltering
* A list of the account IDs of Amazon Web Services accounts of third-party applications that are allowed to
* access data managed by Lake Formation.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateLakeFormationIdentityCenterConfigurationRequest withExternalFiltering(ExternalFilteringConfiguration externalFiltering) {
setExternalFiltering(externalFiltering);
return this;
}
/**
*
* A list of Amazon Web Services account IDs and/or Amazon Web Services organization/organizational unit ARNs that
* are allowed to access data managed by Lake Formation.
*
*
* If the ShareRecipients
list includes valid values, a resource share is created with the principals
* you want to have access to the resources.
*
*
* If the ShareRecipients
value is null or the list is empty, no resource share is created.
*
*
* @return A list of Amazon Web Services account IDs and/or Amazon Web Services organization/organizational unit
* ARNs that are allowed to access data managed by Lake Formation.
*
* If the ShareRecipients
list includes valid values, a resource share is created with the
* principals you want to have access to the resources.
*
*
* If the ShareRecipients
value is null or the list is empty, no resource share is created.
*/
public java.util.List getShareRecipients() {
return shareRecipients;
}
/**
*
* A list of Amazon Web Services account IDs and/or Amazon Web Services organization/organizational unit ARNs that
* are allowed to access data managed by Lake Formation.
*
*
* If the ShareRecipients
list includes valid values, a resource share is created with the principals
* you want to have access to the resources.
*
*
* If the ShareRecipients
value is null or the list is empty, no resource share is created.
*
*
* @param shareRecipients
* A list of Amazon Web Services account IDs and/or Amazon Web Services organization/organizational unit ARNs
* that are allowed to access data managed by Lake Formation.
*
* If the ShareRecipients
list includes valid values, a resource share is created with the
* principals you want to have access to the resources.
*
*
* If the ShareRecipients
value is null or the list is empty, no resource share is created.
*/
public void setShareRecipients(java.util.Collection shareRecipients) {
if (shareRecipients == null) {
this.shareRecipients = null;
return;
}
this.shareRecipients = new java.util.ArrayList(shareRecipients);
}
/**
*
* A list of Amazon Web Services account IDs and/or Amazon Web Services organization/organizational unit ARNs that
* are allowed to access data managed by Lake Formation.
*
*
* If the ShareRecipients
list includes valid values, a resource share is created with the principals
* you want to have access to the resources.
*
*
* If the ShareRecipients
value is null or the list is empty, no resource share is created.
*
*
* NOTE: This method appends the values to the existing list (if any). Use
* {@link #setShareRecipients(java.util.Collection)} or {@link #withShareRecipients(java.util.Collection)} if you
* want to override the existing values.
*
*
* @param shareRecipients
* A list of Amazon Web Services account IDs and/or Amazon Web Services organization/organizational unit ARNs
* that are allowed to access data managed by Lake Formation.
*
* If the ShareRecipients
list includes valid values, a resource share is created with the
* principals you want to have access to the resources.
*
*
* If the ShareRecipients
value is null or the list is empty, no resource share is created.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateLakeFormationIdentityCenterConfigurationRequest withShareRecipients(DataLakePrincipal... shareRecipients) {
if (this.shareRecipients == null) {
setShareRecipients(new java.util.ArrayList(shareRecipients.length));
}
for (DataLakePrincipal ele : shareRecipients) {
this.shareRecipients.add(ele);
}
return this;
}
/**
*
* A list of Amazon Web Services account IDs and/or Amazon Web Services organization/organizational unit ARNs that
* are allowed to access data managed by Lake Formation.
*
*
* If the ShareRecipients
list includes valid values, a resource share is created with the principals
* you want to have access to the resources.
*
*
* If the ShareRecipients
value is null or the list is empty, no resource share is created.
*
*
* @param shareRecipients
* A list of Amazon Web Services account IDs and/or Amazon Web Services organization/organizational unit ARNs
* that are allowed to access data managed by Lake Formation.
*
* If the ShareRecipients
list includes valid values, a resource share is created with the
* principals you want to have access to the resources.
*
*
* If the ShareRecipients
value is null or the list is empty, no resource share is created.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateLakeFormationIdentityCenterConfigurationRequest withShareRecipients(java.util.Collection shareRecipients) {
setShareRecipients(shareRecipients);
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 (getCatalogId() != null)
sb.append("CatalogId: ").append(getCatalogId()).append(",");
if (getInstanceArn() != null)
sb.append("InstanceArn: ").append(getInstanceArn()).append(",");
if (getExternalFiltering() != null)
sb.append("ExternalFiltering: ").append(getExternalFiltering()).append(",");
if (getShareRecipients() != null)
sb.append("ShareRecipients: ").append(getShareRecipients());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof CreateLakeFormationIdentityCenterConfigurationRequest == false)
return false;
CreateLakeFormationIdentityCenterConfigurationRequest other = (CreateLakeFormationIdentityCenterConfigurationRequest) obj;
if (other.getCatalogId() == null ^ this.getCatalogId() == null)
return false;
if (other.getCatalogId() != null && other.getCatalogId().equals(this.getCatalogId()) == false)
return false;
if (other.getInstanceArn() == null ^ this.getInstanceArn() == null)
return false;
if (other.getInstanceArn() != null && other.getInstanceArn().equals(this.getInstanceArn()) == false)
return false;
if (other.getExternalFiltering() == null ^ this.getExternalFiltering() == null)
return false;
if (other.getExternalFiltering() != null && other.getExternalFiltering().equals(this.getExternalFiltering()) == false)
return false;
if (other.getShareRecipients() == null ^ this.getShareRecipients() == null)
return false;
if (other.getShareRecipients() != null && other.getShareRecipients().equals(this.getShareRecipients()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getCatalogId() == null) ? 0 : getCatalogId().hashCode());
hashCode = prime * hashCode + ((getInstanceArn() == null) ? 0 : getInstanceArn().hashCode());
hashCode = prime * hashCode + ((getExternalFiltering() == null) ? 0 : getExternalFiltering().hashCode());
hashCode = prime * hashCode + ((getShareRecipients() == null) ? 0 : getShareRecipients().hashCode());
return hashCode;
}
@Override
public CreateLakeFormationIdentityCenterConfigurationRequest clone() {
return (CreateLakeFormationIdentityCenterConfigurationRequest) super.clone();
}
}