com.amazonaws.services.kendra.model.DescribeIndexResult Maven / Gradle / Ivy
Show all versions of aws-java-sdk-kendra 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.kendra.model;
import java.io.Serializable;
import javax.annotation.Generated;
/**
*
* @see AWS API
* Documentation
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class DescribeIndexResult extends com.amazonaws.AmazonWebServiceResult implements Serializable, Cloneable {
/**
*
* The name of the index.
*
*/
private String name;
/**
*
* The identifier of the index.
*
*/
private String id;
/**
*
* The Amazon Kendra edition used for the index. You decide the edition when you create the index.
*
*/
private String edition;
/**
*
* The Amazon Resource Name (ARN) of the IAM role that gives Amazon Kendra permission to write to your Amazon
* CloudWatch logs.
*
*/
private String roleArn;
/**
*
* The identifier of the KMS customer master key (CMK) that is used to encrypt your data. Amazon Kendra doesn't
* support asymmetric CMKs.
*
*/
private ServerSideEncryptionConfiguration serverSideEncryptionConfiguration;
/**
*
* The current status of the index. When the value is ACTIVE
, the index is ready for use. If the
* Status
field value is FAILED
, the ErrorMessage
field contains a message
* that explains why.
*
*/
private String status;
/**
*
* The description for the index.
*
*/
private String description;
/**
*
* The Unix timestamp when the index was created.
*
*/
private java.util.Date createdAt;
/**
*
* The Unix timestamp when the index was last updated.
*
*/
private java.util.Date updatedAt;
/**
*
* Configuration information for document metadata or fields. Document metadata are fields or attributes associated
* with your documents. For example, the company department name associated with each document.
*
*/
private java.util.List documentMetadataConfigurations;
/**
*
* Provides information about the number of FAQ questions and answers and the number of text documents indexed.
*
*/
private IndexStatistics indexStatistics;
/**
*
* When the Status
field value is FAILED
, the ErrorMessage
field contains a
* message that explains why.
*
*/
private String errorMessage;
/**
*
* For Enterprise Edition indexes, you can choose to use additional capacity to meet the needs of your application.
* This contains the capacity units used for the index. A query or document storage capacity of zero indicates that
* the index is using the default capacity. For more information on the default capacity for an index and adjusting
* this, see Adjusting capacity.
*
*/
private CapacityUnitsConfiguration capacityUnits;
/**
*
* The user token configuration for the Amazon Kendra index.
*
*/
private java.util.List userTokenConfigurations;
/**
*
* The user context policy for the Amazon Kendra index.
*
*/
private String userContextPolicy;
/**
*
* Whether you have enabled IAM Identity Center identity source for your users and groups. This is useful for user
* context filtering, where search results are filtered based on the user or their group access to documents.
*
*/
private UserGroupResolutionConfiguration userGroupResolutionConfiguration;
/**
*
* The name of the index.
*
*
* @param name
* The name of the index.
*/
public void setName(String name) {
this.name = name;
}
/**
*
* The name of the index.
*
*
* @return The name of the index.
*/
public String getName() {
return this.name;
}
/**
*
* The name of the index.
*
*
* @param name
* The name of the index.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeIndexResult withName(String name) {
setName(name);
return this;
}
/**
*
* The identifier of the index.
*
*
* @param id
* The identifier of the index.
*/
public void setId(String id) {
this.id = id;
}
/**
*
* The identifier of the index.
*
*
* @return The identifier of the index.
*/
public String getId() {
return this.id;
}
/**
*
* The identifier of the index.
*
*
* @param id
* The identifier of the index.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeIndexResult withId(String id) {
setId(id);
return this;
}
/**
*
* The Amazon Kendra edition used for the index. You decide the edition when you create the index.
*
*
* @param edition
* The Amazon Kendra edition used for the index. You decide the edition when you create the index.
* @see IndexEdition
*/
public void setEdition(String edition) {
this.edition = edition;
}
/**
*
* The Amazon Kendra edition used for the index. You decide the edition when you create the index.
*
*
* @return The Amazon Kendra edition used for the index. You decide the edition when you create the index.
* @see IndexEdition
*/
public String getEdition() {
return this.edition;
}
/**
*
* The Amazon Kendra edition used for the index. You decide the edition when you create the index.
*
*
* @param edition
* The Amazon Kendra edition used for the index. You decide the edition when you create the index.
* @return Returns a reference to this object so that method calls can be chained together.
* @see IndexEdition
*/
public DescribeIndexResult withEdition(String edition) {
setEdition(edition);
return this;
}
/**
*
* The Amazon Kendra edition used for the index. You decide the edition when you create the index.
*
*
* @param edition
* The Amazon Kendra edition used for the index. You decide the edition when you create the index.
* @return Returns a reference to this object so that method calls can be chained together.
* @see IndexEdition
*/
public DescribeIndexResult withEdition(IndexEdition edition) {
this.edition = edition.toString();
return this;
}
/**
*
* The Amazon Resource Name (ARN) of the IAM role that gives Amazon Kendra permission to write to your Amazon
* CloudWatch logs.
*
*
* @param roleArn
* The Amazon Resource Name (ARN) of the IAM role that gives Amazon Kendra permission to write to your Amazon
* CloudWatch logs.
*/
public void setRoleArn(String roleArn) {
this.roleArn = roleArn;
}
/**
*
* The Amazon Resource Name (ARN) of the IAM role that gives Amazon Kendra permission to write to your Amazon
* CloudWatch logs.
*
*
* @return The Amazon Resource Name (ARN) of the IAM role that gives Amazon Kendra permission to write to your
* Amazon CloudWatch logs.
*/
public String getRoleArn() {
return this.roleArn;
}
/**
*
* The Amazon Resource Name (ARN) of the IAM role that gives Amazon Kendra permission to write to your Amazon
* CloudWatch logs.
*
*
* @param roleArn
* The Amazon Resource Name (ARN) of the IAM role that gives Amazon Kendra permission to write to your Amazon
* CloudWatch logs.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeIndexResult withRoleArn(String roleArn) {
setRoleArn(roleArn);
return this;
}
/**
*
* The identifier of the KMS customer master key (CMK) that is used to encrypt your data. Amazon Kendra doesn't
* support asymmetric CMKs.
*
*
* @param serverSideEncryptionConfiguration
* The identifier of the KMS customer master key (CMK) that is used to encrypt your data. Amazon Kendra
* doesn't support asymmetric CMKs.
*/
public void setServerSideEncryptionConfiguration(ServerSideEncryptionConfiguration serverSideEncryptionConfiguration) {
this.serverSideEncryptionConfiguration = serverSideEncryptionConfiguration;
}
/**
*
* The identifier of the KMS customer master key (CMK) that is used to encrypt your data. Amazon Kendra doesn't
* support asymmetric CMKs.
*
*
* @return The identifier of the KMS customer master key (CMK) that is used to encrypt your data. Amazon Kendra
* doesn't support asymmetric CMKs.
*/
public ServerSideEncryptionConfiguration getServerSideEncryptionConfiguration() {
return this.serverSideEncryptionConfiguration;
}
/**
*
* The identifier of the KMS customer master key (CMK) that is used to encrypt your data. Amazon Kendra doesn't
* support asymmetric CMKs.
*
*
* @param serverSideEncryptionConfiguration
* The identifier of the KMS customer master key (CMK) that is used to encrypt your data. Amazon Kendra
* doesn't support asymmetric CMKs.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeIndexResult withServerSideEncryptionConfiguration(ServerSideEncryptionConfiguration serverSideEncryptionConfiguration) {
setServerSideEncryptionConfiguration(serverSideEncryptionConfiguration);
return this;
}
/**
*
* The current status of the index. When the value is ACTIVE
, the index is ready for use. If the
* Status
field value is FAILED
, the ErrorMessage
field contains a message
* that explains why.
*
*
* @param status
* The current status of the index. When the value is ACTIVE
, the index is ready for use. If the
* Status
field value is FAILED
, the ErrorMessage
field contains a
* message that explains why.
* @see IndexStatus
*/
public void setStatus(String status) {
this.status = status;
}
/**
*
* The current status of the index. When the value is ACTIVE
, the index is ready for use. If the
* Status
field value is FAILED
, the ErrorMessage
field contains a message
* that explains why.
*
*
* @return The current status of the index. When the value is ACTIVE
, the index is ready for use. If
* the Status
field value is FAILED
, the ErrorMessage
field contains
* a message that explains why.
* @see IndexStatus
*/
public String getStatus() {
return this.status;
}
/**
*
* The current status of the index. When the value is ACTIVE
, the index is ready for use. If the
* Status
field value is FAILED
, the ErrorMessage
field contains a message
* that explains why.
*
*
* @param status
* The current status of the index. When the value is ACTIVE
, the index is ready for use. If the
* Status
field value is FAILED
, the ErrorMessage
field contains a
* message that explains why.
* @return Returns a reference to this object so that method calls can be chained together.
* @see IndexStatus
*/
public DescribeIndexResult withStatus(String status) {
setStatus(status);
return this;
}
/**
*
* The current status of the index. When the value is ACTIVE
, the index is ready for use. If the
* Status
field value is FAILED
, the ErrorMessage
field contains a message
* that explains why.
*
*
* @param status
* The current status of the index. When the value is ACTIVE
, the index is ready for use. If the
* Status
field value is FAILED
, the ErrorMessage
field contains a
* message that explains why.
* @return Returns a reference to this object so that method calls can be chained together.
* @see IndexStatus
*/
public DescribeIndexResult withStatus(IndexStatus status) {
this.status = status.toString();
return this;
}
/**
*
* The description for the index.
*
*
* @param description
* The description for the index.
*/
public void setDescription(String description) {
this.description = description;
}
/**
*
* The description for the index.
*
*
* @return The description for the index.
*/
public String getDescription() {
return this.description;
}
/**
*
* The description for the index.
*
*
* @param description
* The description for the index.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeIndexResult withDescription(String description) {
setDescription(description);
return this;
}
/**
*
* The Unix timestamp when the index was created.
*
*
* @param createdAt
* The Unix timestamp when the index was created.
*/
public void setCreatedAt(java.util.Date createdAt) {
this.createdAt = createdAt;
}
/**
*
* The Unix timestamp when the index was created.
*
*
* @return The Unix timestamp when the index was created.
*/
public java.util.Date getCreatedAt() {
return this.createdAt;
}
/**
*
* The Unix timestamp when the index was created.
*
*
* @param createdAt
* The Unix timestamp when the index was created.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeIndexResult withCreatedAt(java.util.Date createdAt) {
setCreatedAt(createdAt);
return this;
}
/**
*
* The Unix timestamp when the index was last updated.
*
*
* @param updatedAt
* The Unix timestamp when the index was last updated.
*/
public void setUpdatedAt(java.util.Date updatedAt) {
this.updatedAt = updatedAt;
}
/**
*
* The Unix timestamp when the index was last updated.
*
*
* @return The Unix timestamp when the index was last updated.
*/
public java.util.Date getUpdatedAt() {
return this.updatedAt;
}
/**
*
* The Unix timestamp when the index was last updated.
*
*
* @param updatedAt
* The Unix timestamp when the index was last updated.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeIndexResult withUpdatedAt(java.util.Date updatedAt) {
setUpdatedAt(updatedAt);
return this;
}
/**
*
* Configuration information for document metadata or fields. Document metadata are fields or attributes associated
* with your documents. For example, the company department name associated with each document.
*
*
* @return Configuration information for document metadata or fields. Document metadata are fields or attributes
* associated with your documents. For example, the company department name associated with each document.
*/
public java.util.List getDocumentMetadataConfigurations() {
return documentMetadataConfigurations;
}
/**
*
* Configuration information for document metadata or fields. Document metadata are fields or attributes associated
* with your documents. For example, the company department name associated with each document.
*
*
* @param documentMetadataConfigurations
* Configuration information for document metadata or fields. Document metadata are fields or attributes
* associated with your documents. For example, the company department name associated with each document.
*/
public void setDocumentMetadataConfigurations(java.util.Collection documentMetadataConfigurations) {
if (documentMetadataConfigurations == null) {
this.documentMetadataConfigurations = null;
return;
}
this.documentMetadataConfigurations = new java.util.ArrayList(documentMetadataConfigurations);
}
/**
*
* Configuration information for document metadata or fields. Document metadata are fields or attributes associated
* with your documents. For example, the company department name associated with each document.
*
*
* NOTE: This method appends the values to the existing list (if any). Use
* {@link #setDocumentMetadataConfigurations(java.util.Collection)} or
* {@link #withDocumentMetadataConfigurations(java.util.Collection)} if you want to override the existing values.
*
*
* @param documentMetadataConfigurations
* Configuration information for document metadata or fields. Document metadata are fields or attributes
* associated with your documents. For example, the company department name associated with each document.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeIndexResult withDocumentMetadataConfigurations(DocumentMetadataConfiguration... documentMetadataConfigurations) {
if (this.documentMetadataConfigurations == null) {
setDocumentMetadataConfigurations(new java.util.ArrayList(documentMetadataConfigurations.length));
}
for (DocumentMetadataConfiguration ele : documentMetadataConfigurations) {
this.documentMetadataConfigurations.add(ele);
}
return this;
}
/**
*
* Configuration information for document metadata or fields. Document metadata are fields or attributes associated
* with your documents. For example, the company department name associated with each document.
*
*
* @param documentMetadataConfigurations
* Configuration information for document metadata or fields. Document metadata are fields or attributes
* associated with your documents. For example, the company department name associated with each document.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeIndexResult withDocumentMetadataConfigurations(java.util.Collection documentMetadataConfigurations) {
setDocumentMetadataConfigurations(documentMetadataConfigurations);
return this;
}
/**
*
* Provides information about the number of FAQ questions and answers and the number of text documents indexed.
*
*
* @param indexStatistics
* Provides information about the number of FAQ questions and answers and the number of text documents
* indexed.
*/
public void setIndexStatistics(IndexStatistics indexStatistics) {
this.indexStatistics = indexStatistics;
}
/**
*
* Provides information about the number of FAQ questions and answers and the number of text documents indexed.
*
*
* @return Provides information about the number of FAQ questions and answers and the number of text documents
* indexed.
*/
public IndexStatistics getIndexStatistics() {
return this.indexStatistics;
}
/**
*
* Provides information about the number of FAQ questions and answers and the number of text documents indexed.
*
*
* @param indexStatistics
* Provides information about the number of FAQ questions and answers and the number of text documents
* indexed.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeIndexResult withIndexStatistics(IndexStatistics indexStatistics) {
setIndexStatistics(indexStatistics);
return this;
}
/**
*
* When the Status
field value is FAILED
, the ErrorMessage
field contains a
* message that explains why.
*
*
* @param errorMessage
* When the Status
field value is FAILED
, the ErrorMessage
field
* contains a message that explains why.
*/
public void setErrorMessage(String errorMessage) {
this.errorMessage = errorMessage;
}
/**
*
* When the Status
field value is FAILED
, the ErrorMessage
field contains a
* message that explains why.
*
*
* @return When the Status
field value is FAILED
, the ErrorMessage
field
* contains a message that explains why.
*/
public String getErrorMessage() {
return this.errorMessage;
}
/**
*
* When the Status
field value is FAILED
, the ErrorMessage
field contains a
* message that explains why.
*
*
* @param errorMessage
* When the Status
field value is FAILED
, the ErrorMessage
field
* contains a message that explains why.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeIndexResult withErrorMessage(String errorMessage) {
setErrorMessage(errorMessage);
return this;
}
/**
*
* For Enterprise Edition indexes, you can choose to use additional capacity to meet the needs of your application.
* This contains the capacity units used for the index. A query or document storage capacity of zero indicates that
* the index is using the default capacity. For more information on the default capacity for an index and adjusting
* this, see Adjusting capacity.
*
*
* @param capacityUnits
* For Enterprise Edition indexes, you can choose to use additional capacity to meet the needs of your
* application. This contains the capacity units used for the index. A query or document storage capacity of
* zero indicates that the index is using the default capacity. For more information on the default capacity
* for an index and adjusting this, see Adjusting capacity.
*/
public void setCapacityUnits(CapacityUnitsConfiguration capacityUnits) {
this.capacityUnits = capacityUnits;
}
/**
*
* For Enterprise Edition indexes, you can choose to use additional capacity to meet the needs of your application.
* This contains the capacity units used for the index. A query or document storage capacity of zero indicates that
* the index is using the default capacity. For more information on the default capacity for an index and adjusting
* this, see Adjusting capacity.
*
*
* @return For Enterprise Edition indexes, you can choose to use additional capacity to meet the needs of your
* application. This contains the capacity units used for the index. A query or document storage capacity of
* zero indicates that the index is using the default capacity. For more information on the default capacity
* for an index and adjusting this, see Adjusting capacity.
*/
public CapacityUnitsConfiguration getCapacityUnits() {
return this.capacityUnits;
}
/**
*
* For Enterprise Edition indexes, you can choose to use additional capacity to meet the needs of your application.
* This contains the capacity units used for the index. A query or document storage capacity of zero indicates that
* the index is using the default capacity. For more information on the default capacity for an index and adjusting
* this, see Adjusting capacity.
*
*
* @param capacityUnits
* For Enterprise Edition indexes, you can choose to use additional capacity to meet the needs of your
* application. This contains the capacity units used for the index. A query or document storage capacity of
* zero indicates that the index is using the default capacity. For more information on the default capacity
* for an index and adjusting this, see Adjusting capacity.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeIndexResult withCapacityUnits(CapacityUnitsConfiguration capacityUnits) {
setCapacityUnits(capacityUnits);
return this;
}
/**
*
* The user token configuration for the Amazon Kendra index.
*
*
* @return The user token configuration for the Amazon Kendra index.
*/
public java.util.List getUserTokenConfigurations() {
return userTokenConfigurations;
}
/**
*
* The user token configuration for the Amazon Kendra index.
*
*
* @param userTokenConfigurations
* The user token configuration for the Amazon Kendra index.
*/
public void setUserTokenConfigurations(java.util.Collection userTokenConfigurations) {
if (userTokenConfigurations == null) {
this.userTokenConfigurations = null;
return;
}
this.userTokenConfigurations = new java.util.ArrayList(userTokenConfigurations);
}
/**
*
* The user token configuration for the Amazon Kendra index.
*
*
* NOTE: This method appends the values to the existing list (if any). Use
* {@link #setUserTokenConfigurations(java.util.Collection)} or
* {@link #withUserTokenConfigurations(java.util.Collection)} if you want to override the existing values.
*
*
* @param userTokenConfigurations
* The user token configuration for the Amazon Kendra index.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeIndexResult withUserTokenConfigurations(UserTokenConfiguration... userTokenConfigurations) {
if (this.userTokenConfigurations == null) {
setUserTokenConfigurations(new java.util.ArrayList(userTokenConfigurations.length));
}
for (UserTokenConfiguration ele : userTokenConfigurations) {
this.userTokenConfigurations.add(ele);
}
return this;
}
/**
*
* The user token configuration for the Amazon Kendra index.
*
*
* @param userTokenConfigurations
* The user token configuration for the Amazon Kendra index.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeIndexResult withUserTokenConfigurations(java.util.Collection userTokenConfigurations) {
setUserTokenConfigurations(userTokenConfigurations);
return this;
}
/**
*
* The user context policy for the Amazon Kendra index.
*
*
* @param userContextPolicy
* The user context policy for the Amazon Kendra index.
* @see UserContextPolicy
*/
public void setUserContextPolicy(String userContextPolicy) {
this.userContextPolicy = userContextPolicy;
}
/**
*
* The user context policy for the Amazon Kendra index.
*
*
* @return The user context policy for the Amazon Kendra index.
* @see UserContextPolicy
*/
public String getUserContextPolicy() {
return this.userContextPolicy;
}
/**
*
* The user context policy for the Amazon Kendra index.
*
*
* @param userContextPolicy
* The user context policy for the Amazon Kendra index.
* @return Returns a reference to this object so that method calls can be chained together.
* @see UserContextPolicy
*/
public DescribeIndexResult withUserContextPolicy(String userContextPolicy) {
setUserContextPolicy(userContextPolicy);
return this;
}
/**
*
* The user context policy for the Amazon Kendra index.
*
*
* @param userContextPolicy
* The user context policy for the Amazon Kendra index.
* @return Returns a reference to this object so that method calls can be chained together.
* @see UserContextPolicy
*/
public DescribeIndexResult withUserContextPolicy(UserContextPolicy userContextPolicy) {
this.userContextPolicy = userContextPolicy.toString();
return this;
}
/**
*
* Whether you have enabled IAM Identity Center identity source for your users and groups. This is useful for user
* context filtering, where search results are filtered based on the user or their group access to documents.
*
*
* @param userGroupResolutionConfiguration
* Whether you have enabled IAM Identity Center identity source for your users and groups. This is useful for
* user context filtering, where search results are filtered based on the user or their group access to
* documents.
*/
public void setUserGroupResolutionConfiguration(UserGroupResolutionConfiguration userGroupResolutionConfiguration) {
this.userGroupResolutionConfiguration = userGroupResolutionConfiguration;
}
/**
*
* Whether you have enabled IAM Identity Center identity source for your users and groups. This is useful for user
* context filtering, where search results are filtered based on the user or their group access to documents.
*
*
* @return Whether you have enabled IAM Identity Center identity source for your users and groups. This is useful
* for user context filtering, where search results are filtered based on the user or their group access to
* documents.
*/
public UserGroupResolutionConfiguration getUserGroupResolutionConfiguration() {
return this.userGroupResolutionConfiguration;
}
/**
*
* Whether you have enabled IAM Identity Center identity source for your users and groups. This is useful for user
* context filtering, where search results are filtered based on the user or their group access to documents.
*
*
* @param userGroupResolutionConfiguration
* Whether you have enabled IAM Identity Center identity source for your users and groups. This is useful for
* user context filtering, where search results are filtered based on the user or their group access to
* documents.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeIndexResult withUserGroupResolutionConfiguration(UserGroupResolutionConfiguration userGroupResolutionConfiguration) {
setUserGroupResolutionConfiguration(userGroupResolutionConfiguration);
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 (getName() != null)
sb.append("Name: ").append(getName()).append(",");
if (getId() != null)
sb.append("Id: ").append(getId()).append(",");
if (getEdition() != null)
sb.append("Edition: ").append(getEdition()).append(",");
if (getRoleArn() != null)
sb.append("RoleArn: ").append(getRoleArn()).append(",");
if (getServerSideEncryptionConfiguration() != null)
sb.append("ServerSideEncryptionConfiguration: ").append(getServerSideEncryptionConfiguration()).append(",");
if (getStatus() != null)
sb.append("Status: ").append(getStatus()).append(",");
if (getDescription() != null)
sb.append("Description: ").append(getDescription()).append(",");
if (getCreatedAt() != null)
sb.append("CreatedAt: ").append(getCreatedAt()).append(",");
if (getUpdatedAt() != null)
sb.append("UpdatedAt: ").append(getUpdatedAt()).append(",");
if (getDocumentMetadataConfigurations() != null)
sb.append("DocumentMetadataConfigurations: ").append(getDocumentMetadataConfigurations()).append(",");
if (getIndexStatistics() != null)
sb.append("IndexStatistics: ").append(getIndexStatistics()).append(",");
if (getErrorMessage() != null)
sb.append("ErrorMessage: ").append(getErrorMessage()).append(",");
if (getCapacityUnits() != null)
sb.append("CapacityUnits: ").append(getCapacityUnits()).append(",");
if (getUserTokenConfigurations() != null)
sb.append("UserTokenConfigurations: ").append(getUserTokenConfigurations()).append(",");
if (getUserContextPolicy() != null)
sb.append("UserContextPolicy: ").append(getUserContextPolicy()).append(",");
if (getUserGroupResolutionConfiguration() != null)
sb.append("UserGroupResolutionConfiguration: ").append(getUserGroupResolutionConfiguration());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof DescribeIndexResult == false)
return false;
DescribeIndexResult other = (DescribeIndexResult) obj;
if (other.getName() == null ^ this.getName() == null)
return false;
if (other.getName() != null && other.getName().equals(this.getName()) == false)
return false;
if (other.getId() == null ^ this.getId() == null)
return false;
if (other.getId() != null && other.getId().equals(this.getId()) == false)
return false;
if (other.getEdition() == null ^ this.getEdition() == null)
return false;
if (other.getEdition() != null && other.getEdition().equals(this.getEdition()) == false)
return false;
if (other.getRoleArn() == null ^ this.getRoleArn() == null)
return false;
if (other.getRoleArn() != null && other.getRoleArn().equals(this.getRoleArn()) == false)
return false;
if (other.getServerSideEncryptionConfiguration() == null ^ this.getServerSideEncryptionConfiguration() == null)
return false;
if (other.getServerSideEncryptionConfiguration() != null
&& other.getServerSideEncryptionConfiguration().equals(this.getServerSideEncryptionConfiguration()) == false)
return false;
if (other.getStatus() == null ^ this.getStatus() == null)
return false;
if (other.getStatus() != null && other.getStatus().equals(this.getStatus()) == false)
return false;
if (other.getDescription() == null ^ this.getDescription() == null)
return false;
if (other.getDescription() != null && other.getDescription().equals(this.getDescription()) == false)
return false;
if (other.getCreatedAt() == null ^ this.getCreatedAt() == null)
return false;
if (other.getCreatedAt() != null && other.getCreatedAt().equals(this.getCreatedAt()) == false)
return false;
if (other.getUpdatedAt() == null ^ this.getUpdatedAt() == null)
return false;
if (other.getUpdatedAt() != null && other.getUpdatedAt().equals(this.getUpdatedAt()) == false)
return false;
if (other.getDocumentMetadataConfigurations() == null ^ this.getDocumentMetadataConfigurations() == null)
return false;
if (other.getDocumentMetadataConfigurations() != null
&& other.getDocumentMetadataConfigurations().equals(this.getDocumentMetadataConfigurations()) == false)
return false;
if (other.getIndexStatistics() == null ^ this.getIndexStatistics() == null)
return false;
if (other.getIndexStatistics() != null && other.getIndexStatistics().equals(this.getIndexStatistics()) == false)
return false;
if (other.getErrorMessage() == null ^ this.getErrorMessage() == null)
return false;
if (other.getErrorMessage() != null && other.getErrorMessage().equals(this.getErrorMessage()) == false)
return false;
if (other.getCapacityUnits() == null ^ this.getCapacityUnits() == null)
return false;
if (other.getCapacityUnits() != null && other.getCapacityUnits().equals(this.getCapacityUnits()) == false)
return false;
if (other.getUserTokenConfigurations() == null ^ this.getUserTokenConfigurations() == null)
return false;
if (other.getUserTokenConfigurations() != null && other.getUserTokenConfigurations().equals(this.getUserTokenConfigurations()) == false)
return false;
if (other.getUserContextPolicy() == null ^ this.getUserContextPolicy() == null)
return false;
if (other.getUserContextPolicy() != null && other.getUserContextPolicy().equals(this.getUserContextPolicy()) == false)
return false;
if (other.getUserGroupResolutionConfiguration() == null ^ this.getUserGroupResolutionConfiguration() == null)
return false;
if (other.getUserGroupResolutionConfiguration() != null
&& other.getUserGroupResolutionConfiguration().equals(this.getUserGroupResolutionConfiguration()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getName() == null) ? 0 : getName().hashCode());
hashCode = prime * hashCode + ((getId() == null) ? 0 : getId().hashCode());
hashCode = prime * hashCode + ((getEdition() == null) ? 0 : getEdition().hashCode());
hashCode = prime * hashCode + ((getRoleArn() == null) ? 0 : getRoleArn().hashCode());
hashCode = prime * hashCode + ((getServerSideEncryptionConfiguration() == null) ? 0 : getServerSideEncryptionConfiguration().hashCode());
hashCode = prime * hashCode + ((getStatus() == null) ? 0 : getStatus().hashCode());
hashCode = prime * hashCode + ((getDescription() == null) ? 0 : getDescription().hashCode());
hashCode = prime * hashCode + ((getCreatedAt() == null) ? 0 : getCreatedAt().hashCode());
hashCode = prime * hashCode + ((getUpdatedAt() == null) ? 0 : getUpdatedAt().hashCode());
hashCode = prime * hashCode + ((getDocumentMetadataConfigurations() == null) ? 0 : getDocumentMetadataConfigurations().hashCode());
hashCode = prime * hashCode + ((getIndexStatistics() == null) ? 0 : getIndexStatistics().hashCode());
hashCode = prime * hashCode + ((getErrorMessage() == null) ? 0 : getErrorMessage().hashCode());
hashCode = prime * hashCode + ((getCapacityUnits() == null) ? 0 : getCapacityUnits().hashCode());
hashCode = prime * hashCode + ((getUserTokenConfigurations() == null) ? 0 : getUserTokenConfigurations().hashCode());
hashCode = prime * hashCode + ((getUserContextPolicy() == null) ? 0 : getUserContextPolicy().hashCode());
hashCode = prime * hashCode + ((getUserGroupResolutionConfiguration() == null) ? 0 : getUserGroupResolutionConfiguration().hashCode());
return hashCode;
}
@Override
public DescribeIndexResult clone() {
try {
return (DescribeIndexResult) super.clone();
} catch (CloneNotSupportedException e) {
throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e);
}
}
}