
com.amazonaws.services.iot.model.DescribeIndexResult Maven / Gradle / Ivy
/*
* Copyright 2015-2020 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.iot.model;
import java.io.Serializable;
import javax.annotation.Generated;
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class DescribeIndexResult extends com.amazonaws.AmazonWebServiceResult implements Serializable, Cloneable {
/**
*
* The index name.
*
*/
private String indexName;
/**
*
* The index status.
*
*/
private String indexStatus;
/**
*
* Contains a value that specifies the type of indexing performed. Valid values are:
*
*
* -
*
* REGISTRY – Your thing index contains only registry data.
*
*
* -
*
* REGISTRY_AND_SHADOW - Your thing index contains registry data and shadow data.
*
*
* -
*
* REGISTRY_AND_CONNECTIVITY_STATUS - Your thing index contains registry data and thing connectivity status data.
*
*
* -
*
* REGISTRY_AND_SHADOW_AND_CONNECTIVITY_STATUS - Your thing index contains registry data, shadow data, and thing
* connectivity status data.
*
*
*
*/
private String schema;
/**
*
* The index name.
*
*
* @param indexName
* The index name.
*/
public void setIndexName(String indexName) {
this.indexName = indexName;
}
/**
*
* The index name.
*
*
* @return The index name.
*/
public String getIndexName() {
return this.indexName;
}
/**
*
* The index name.
*
*
* @param indexName
* The index name.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeIndexResult withIndexName(String indexName) {
setIndexName(indexName);
return this;
}
/**
*
* The index status.
*
*
* @param indexStatus
* The index status.
* @see IndexStatus
*/
public void setIndexStatus(String indexStatus) {
this.indexStatus = indexStatus;
}
/**
*
* The index status.
*
*
* @return The index status.
* @see IndexStatus
*/
public String getIndexStatus() {
return this.indexStatus;
}
/**
*
* The index status.
*
*
* @param indexStatus
* The index status.
* @return Returns a reference to this object so that method calls can be chained together.
* @see IndexStatus
*/
public DescribeIndexResult withIndexStatus(String indexStatus) {
setIndexStatus(indexStatus);
return this;
}
/**
*
* The index status.
*
*
* @param indexStatus
* The index status.
* @return Returns a reference to this object so that method calls can be chained together.
* @see IndexStatus
*/
public DescribeIndexResult withIndexStatus(IndexStatus indexStatus) {
this.indexStatus = indexStatus.toString();
return this;
}
/**
*
* Contains a value that specifies the type of indexing performed. Valid values are:
*
*
* -
*
* REGISTRY – Your thing index contains only registry data.
*
*
* -
*
* REGISTRY_AND_SHADOW - Your thing index contains registry data and shadow data.
*
*
* -
*
* REGISTRY_AND_CONNECTIVITY_STATUS - Your thing index contains registry data and thing connectivity status data.
*
*
* -
*
* REGISTRY_AND_SHADOW_AND_CONNECTIVITY_STATUS - Your thing index contains registry data, shadow data, and thing
* connectivity status data.
*
*
*
*
* @param schema
* Contains a value that specifies the type of indexing performed. Valid values are:
*
* -
*
* REGISTRY – Your thing index contains only registry data.
*
*
* -
*
* REGISTRY_AND_SHADOW - Your thing index contains registry data and shadow data.
*
*
* -
*
* REGISTRY_AND_CONNECTIVITY_STATUS - Your thing index contains registry data and thing connectivity status
* data.
*
*
* -
*
* REGISTRY_AND_SHADOW_AND_CONNECTIVITY_STATUS - Your thing index contains registry data, shadow data, and
* thing connectivity status data.
*
*
*/
public void setSchema(String schema) {
this.schema = schema;
}
/**
*
* Contains a value that specifies the type of indexing performed. Valid values are:
*
*
* -
*
* REGISTRY – Your thing index contains only registry data.
*
*
* -
*
* REGISTRY_AND_SHADOW - Your thing index contains registry data and shadow data.
*
*
* -
*
* REGISTRY_AND_CONNECTIVITY_STATUS - Your thing index contains registry data and thing connectivity status data.
*
*
* -
*
* REGISTRY_AND_SHADOW_AND_CONNECTIVITY_STATUS - Your thing index contains registry data, shadow data, and thing
* connectivity status data.
*
*
*
*
* @return Contains a value that specifies the type of indexing performed. Valid values are:
*
* -
*
* REGISTRY – Your thing index contains only registry data.
*
*
* -
*
* REGISTRY_AND_SHADOW - Your thing index contains registry data and shadow data.
*
*
* -
*
* REGISTRY_AND_CONNECTIVITY_STATUS - Your thing index contains registry data and thing connectivity status
* data.
*
*
* -
*
* REGISTRY_AND_SHADOW_AND_CONNECTIVITY_STATUS - Your thing index contains registry data, shadow data, and
* thing connectivity status data.
*
*
*/
public String getSchema() {
return this.schema;
}
/**
*
* Contains a value that specifies the type of indexing performed. Valid values are:
*
*
* -
*
* REGISTRY – Your thing index contains only registry data.
*
*
* -
*
* REGISTRY_AND_SHADOW - Your thing index contains registry data and shadow data.
*
*
* -
*
* REGISTRY_AND_CONNECTIVITY_STATUS - Your thing index contains registry data and thing connectivity status data.
*
*
* -
*
* REGISTRY_AND_SHADOW_AND_CONNECTIVITY_STATUS - Your thing index contains registry data, shadow data, and thing
* connectivity status data.
*
*
*
*
* @param schema
* Contains a value that specifies the type of indexing performed. Valid values are:
*
* -
*
* REGISTRY – Your thing index contains only registry data.
*
*
* -
*
* REGISTRY_AND_SHADOW - Your thing index contains registry data and shadow data.
*
*
* -
*
* REGISTRY_AND_CONNECTIVITY_STATUS - Your thing index contains registry data and thing connectivity status
* data.
*
*
* -
*
* REGISTRY_AND_SHADOW_AND_CONNECTIVITY_STATUS - Your thing index contains registry data, shadow data, and
* thing connectivity status data.
*
*
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeIndexResult withSchema(String schema) {
setSchema(schema);
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 (getIndexName() != null)
sb.append("IndexName: ").append(getIndexName()).append(",");
if (getIndexStatus() != null)
sb.append("IndexStatus: ").append(getIndexStatus()).append(",");
if (getSchema() != null)
sb.append("Schema: ").append(getSchema());
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.getIndexName() == null ^ this.getIndexName() == null)
return false;
if (other.getIndexName() != null && other.getIndexName().equals(this.getIndexName()) == false)
return false;
if (other.getIndexStatus() == null ^ this.getIndexStatus() == null)
return false;
if (other.getIndexStatus() != null && other.getIndexStatus().equals(this.getIndexStatus()) == false)
return false;
if (other.getSchema() == null ^ this.getSchema() == null)
return false;
if (other.getSchema() != null && other.getSchema().equals(this.getSchema()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getIndexName() == null) ? 0 : getIndexName().hashCode());
hashCode = prime * hashCode + ((getIndexStatus() == null) ? 0 : getIndexStatus().hashCode());
hashCode = prime * hashCode + ((getSchema() == null) ? 0 : getSchema().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);
}
}
}