com.amazonaws.services.honeycode.model.DescribeTableDataImportJobRequest Maven / Gradle / Ivy
Show all versions of aws-java-sdk-honeycode Show documentation
/*
* Copyright 2017-2022 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.honeycode.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 DescribeTableDataImportJobRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable {
/**
*
* The ID of the workbook into which data was imported.
*
*
* If a workbook with the specified id could not be found, this API throws ResourceNotFoundException.
*
*/
private String workbookId;
/**
*
* The ID of the table into which data was imported.
*
*
* If a table with the specified id could not be found, this API throws ResourceNotFoundException.
*
*/
private String tableId;
/**
*
* The ID of the job that was returned by the StartTableDataImportJob request.
*
*
* If a job with the specified id could not be found, this API throws ResourceNotFoundException.
*
*/
private String jobId;
/**
*
* The ID of the workbook into which data was imported.
*
*
* If a workbook with the specified id could not be found, this API throws ResourceNotFoundException.
*
*
* @param workbookId
* The ID of the workbook into which data was imported.
*
* If a workbook with the specified id could not be found, this API throws ResourceNotFoundException.
*/
public void setWorkbookId(String workbookId) {
this.workbookId = workbookId;
}
/**
*
* The ID of the workbook into which data was imported.
*
*
* If a workbook with the specified id could not be found, this API throws ResourceNotFoundException.
*
*
* @return The ID of the workbook into which data was imported.
*
* If a workbook with the specified id could not be found, this API throws ResourceNotFoundException.
*/
public String getWorkbookId() {
return this.workbookId;
}
/**
*
* The ID of the workbook into which data was imported.
*
*
* If a workbook with the specified id could not be found, this API throws ResourceNotFoundException.
*
*
* @param workbookId
* The ID of the workbook into which data was imported.
*
* If a workbook with the specified id could not be found, this API throws ResourceNotFoundException.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeTableDataImportJobRequest withWorkbookId(String workbookId) {
setWorkbookId(workbookId);
return this;
}
/**
*
* The ID of the table into which data was imported.
*
*
* If a table with the specified id could not be found, this API throws ResourceNotFoundException.
*
*
* @param tableId
* The ID of the table into which data was imported.
*
* If a table with the specified id could not be found, this API throws ResourceNotFoundException.
*/
public void setTableId(String tableId) {
this.tableId = tableId;
}
/**
*
* The ID of the table into which data was imported.
*
*
* If a table with the specified id could not be found, this API throws ResourceNotFoundException.
*
*
* @return The ID of the table into which data was imported.
*
* If a table with the specified id could not be found, this API throws ResourceNotFoundException.
*/
public String getTableId() {
return this.tableId;
}
/**
*
* The ID of the table into which data was imported.
*
*
* If a table with the specified id could not be found, this API throws ResourceNotFoundException.
*
*
* @param tableId
* The ID of the table into which data was imported.
*
* If a table with the specified id could not be found, this API throws ResourceNotFoundException.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeTableDataImportJobRequest withTableId(String tableId) {
setTableId(tableId);
return this;
}
/**
*
* The ID of the job that was returned by the StartTableDataImportJob request.
*
*
* If a job with the specified id could not be found, this API throws ResourceNotFoundException.
*
*
* @param jobId
* The ID of the job that was returned by the StartTableDataImportJob request.
*
* If a job with the specified id could not be found, this API throws ResourceNotFoundException.
*/
public void setJobId(String jobId) {
this.jobId = jobId;
}
/**
*
* The ID of the job that was returned by the StartTableDataImportJob request.
*
*
* If a job with the specified id could not be found, this API throws ResourceNotFoundException.
*
*
* @return The ID of the job that was returned by the StartTableDataImportJob request.
*
* If a job with the specified id could not be found, this API throws ResourceNotFoundException.
*/
public String getJobId() {
return this.jobId;
}
/**
*
* The ID of the job that was returned by the StartTableDataImportJob request.
*
*
* If a job with the specified id could not be found, this API throws ResourceNotFoundException.
*
*
* @param jobId
* The ID of the job that was returned by the StartTableDataImportJob request.
*
* If a job with the specified id could not be found, this API throws ResourceNotFoundException.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeTableDataImportJobRequest withJobId(String jobId) {
setJobId(jobId);
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 (getWorkbookId() != null)
sb.append("WorkbookId: ").append(getWorkbookId()).append(",");
if (getTableId() != null)
sb.append("TableId: ").append(getTableId()).append(",");
if (getJobId() != null)
sb.append("JobId: ").append(getJobId());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof DescribeTableDataImportJobRequest == false)
return false;
DescribeTableDataImportJobRequest other = (DescribeTableDataImportJobRequest) obj;
if (other.getWorkbookId() == null ^ this.getWorkbookId() == null)
return false;
if (other.getWorkbookId() != null && other.getWorkbookId().equals(this.getWorkbookId()) == false)
return false;
if (other.getTableId() == null ^ this.getTableId() == null)
return false;
if (other.getTableId() != null && other.getTableId().equals(this.getTableId()) == false)
return false;
if (other.getJobId() == null ^ this.getJobId() == null)
return false;
if (other.getJobId() != null && other.getJobId().equals(this.getJobId()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getWorkbookId() == null) ? 0 : getWorkbookId().hashCode());
hashCode = prime * hashCode + ((getTableId() == null) ? 0 : getTableId().hashCode());
hashCode = prime * hashCode + ((getJobId() == null) ? 0 : getJobId().hashCode());
return hashCode;
}
@Override
public DescribeTableDataImportJobRequest clone() {
return (DescribeTableDataImportJobRequest) super.clone();
}
}