com.amazonaws.services.appsync.model.StartDataSourceIntrospectionResult Maven / Gradle / Ivy
Show all versions of aws-java-sdk-appsync 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.appsync.model;
import java.io.Serializable;
import javax.annotation.Generated;
/**
*
* @see AWS API Documentation
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class StartDataSourceIntrospectionResult extends com.amazonaws.AmazonWebServiceResult implements Serializable, Cloneable {
/**
*
* The introspection ID. Each introspection contains a unique ID that can be used to reference the instrospection
* record.
*
*/
private String introspectionId;
/**
*
* The status of the introspection during creation. By default, when a new instrospection has been created, the
* status will be set to PROCESSING
. Once the operation has been completed, the status will change to
* SUCCESS
or FAILED
depending on how the data was parsed. A FAILED
operation
* will return an error and its details as an introspectionStatusDetail
.
*
*/
private String introspectionStatus;
/**
*
* The error detail field. When a FAILED
introspectionStatus
is returned, the
* introspectionStatusDetail
will also return the exact error that was generated during the operation.
*
*/
private String introspectionStatusDetail;
/**
*
* The introspection ID. Each introspection contains a unique ID that can be used to reference the instrospection
* record.
*
*
* @param introspectionId
* The introspection ID. Each introspection contains a unique ID that can be used to reference the
* instrospection record.
*/
public void setIntrospectionId(String introspectionId) {
this.introspectionId = introspectionId;
}
/**
*
* The introspection ID. Each introspection contains a unique ID that can be used to reference the instrospection
* record.
*
*
* @return The introspection ID. Each introspection contains a unique ID that can be used to reference the
* instrospection record.
*/
public String getIntrospectionId() {
return this.introspectionId;
}
/**
*
* The introspection ID. Each introspection contains a unique ID that can be used to reference the instrospection
* record.
*
*
* @param introspectionId
* The introspection ID. Each introspection contains a unique ID that can be used to reference the
* instrospection record.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public StartDataSourceIntrospectionResult withIntrospectionId(String introspectionId) {
setIntrospectionId(introspectionId);
return this;
}
/**
*
* The status of the introspection during creation. By default, when a new instrospection has been created, the
* status will be set to PROCESSING
. Once the operation has been completed, the status will change to
* SUCCESS
or FAILED
depending on how the data was parsed. A FAILED
operation
* will return an error and its details as an introspectionStatusDetail
.
*
*
* @param introspectionStatus
* The status of the introspection during creation. By default, when a new instrospection has been created,
* the status will be set to PROCESSING
. Once the operation has been completed, the status will
* change to SUCCESS
or FAILED
depending on how the data was parsed. A
* FAILED
operation will return an error and its details as an
* introspectionStatusDetail
.
* @see DataSourceIntrospectionStatus
*/
public void setIntrospectionStatus(String introspectionStatus) {
this.introspectionStatus = introspectionStatus;
}
/**
*
* The status of the introspection during creation. By default, when a new instrospection has been created, the
* status will be set to PROCESSING
. Once the operation has been completed, the status will change to
* SUCCESS
or FAILED
depending on how the data was parsed. A FAILED
operation
* will return an error and its details as an introspectionStatusDetail
.
*
*
* @return The status of the introspection during creation. By default, when a new instrospection has been created,
* the status will be set to PROCESSING
. Once the operation has been completed, the status will
* change to SUCCESS
or FAILED
depending on how the data was parsed. A
* FAILED
operation will return an error and its details as an
* introspectionStatusDetail
.
* @see DataSourceIntrospectionStatus
*/
public String getIntrospectionStatus() {
return this.introspectionStatus;
}
/**
*
* The status of the introspection during creation. By default, when a new instrospection has been created, the
* status will be set to PROCESSING
. Once the operation has been completed, the status will change to
* SUCCESS
or FAILED
depending on how the data was parsed. A FAILED
operation
* will return an error and its details as an introspectionStatusDetail
.
*
*
* @param introspectionStatus
* The status of the introspection during creation. By default, when a new instrospection has been created,
* the status will be set to PROCESSING
. Once the operation has been completed, the status will
* change to SUCCESS
or FAILED
depending on how the data was parsed. A
* FAILED
operation will return an error and its details as an
* introspectionStatusDetail
.
* @return Returns a reference to this object so that method calls can be chained together.
* @see DataSourceIntrospectionStatus
*/
public StartDataSourceIntrospectionResult withIntrospectionStatus(String introspectionStatus) {
setIntrospectionStatus(introspectionStatus);
return this;
}
/**
*
* The status of the introspection during creation. By default, when a new instrospection has been created, the
* status will be set to PROCESSING
. Once the operation has been completed, the status will change to
* SUCCESS
or FAILED
depending on how the data was parsed. A FAILED
operation
* will return an error and its details as an introspectionStatusDetail
.
*
*
* @param introspectionStatus
* The status of the introspection during creation. By default, when a new instrospection has been created,
* the status will be set to PROCESSING
. Once the operation has been completed, the status will
* change to SUCCESS
or FAILED
depending on how the data was parsed. A
* FAILED
operation will return an error and its details as an
* introspectionStatusDetail
.
* @return Returns a reference to this object so that method calls can be chained together.
* @see DataSourceIntrospectionStatus
*/
public StartDataSourceIntrospectionResult withIntrospectionStatus(DataSourceIntrospectionStatus introspectionStatus) {
this.introspectionStatus = introspectionStatus.toString();
return this;
}
/**
*
* The error detail field. When a FAILED
introspectionStatus
is returned, the
* introspectionStatusDetail
will also return the exact error that was generated during the operation.
*
*
* @param introspectionStatusDetail
* The error detail field. When a FAILED
introspectionStatus
is returned, the
* introspectionStatusDetail
will also return the exact error that was generated during the
* operation.
*/
public void setIntrospectionStatusDetail(String introspectionStatusDetail) {
this.introspectionStatusDetail = introspectionStatusDetail;
}
/**
*
* The error detail field. When a FAILED
introspectionStatus
is returned, the
* introspectionStatusDetail
will also return the exact error that was generated during the operation.
*
*
* @return The error detail field. When a FAILED
introspectionStatus
is returned, the
* introspectionStatusDetail
will also return the exact error that was generated during the
* operation.
*/
public String getIntrospectionStatusDetail() {
return this.introspectionStatusDetail;
}
/**
*
* The error detail field. When a FAILED
introspectionStatus
is returned, the
* introspectionStatusDetail
will also return the exact error that was generated during the operation.
*
*
* @param introspectionStatusDetail
* The error detail field. When a FAILED
introspectionStatus
is returned, the
* introspectionStatusDetail
will also return the exact error that was generated during the
* operation.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public StartDataSourceIntrospectionResult withIntrospectionStatusDetail(String introspectionStatusDetail) {
setIntrospectionStatusDetail(introspectionStatusDetail);
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 (getIntrospectionId() != null)
sb.append("IntrospectionId: ").append(getIntrospectionId()).append(",");
if (getIntrospectionStatus() != null)
sb.append("IntrospectionStatus: ").append(getIntrospectionStatus()).append(",");
if (getIntrospectionStatusDetail() != null)
sb.append("IntrospectionStatusDetail: ").append(getIntrospectionStatusDetail());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof StartDataSourceIntrospectionResult == false)
return false;
StartDataSourceIntrospectionResult other = (StartDataSourceIntrospectionResult) obj;
if (other.getIntrospectionId() == null ^ this.getIntrospectionId() == null)
return false;
if (other.getIntrospectionId() != null && other.getIntrospectionId().equals(this.getIntrospectionId()) == false)
return false;
if (other.getIntrospectionStatus() == null ^ this.getIntrospectionStatus() == null)
return false;
if (other.getIntrospectionStatus() != null && other.getIntrospectionStatus().equals(this.getIntrospectionStatus()) == false)
return false;
if (other.getIntrospectionStatusDetail() == null ^ this.getIntrospectionStatusDetail() == null)
return false;
if (other.getIntrospectionStatusDetail() != null && other.getIntrospectionStatusDetail().equals(this.getIntrospectionStatusDetail()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getIntrospectionId() == null) ? 0 : getIntrospectionId().hashCode());
hashCode = prime * hashCode + ((getIntrospectionStatus() == null) ? 0 : getIntrospectionStatus().hashCode());
hashCode = prime * hashCode + ((getIntrospectionStatusDetail() == null) ? 0 : getIntrospectionStatusDetail().hashCode());
return hashCode;
}
@Override
public StartDataSourceIntrospectionResult clone() {
try {
return (StartDataSourceIntrospectionResult) super.clone();
} catch (CloneNotSupportedException e) {
throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e);
}
}
}