com.amazonaws.services.appflow.model.SourceFieldProperties Maven / Gradle / Ivy
Show all versions of aws-java-sdk-appflow 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.appflow.model;
import java.io.Serializable;
import javax.annotation.Generated;
import com.amazonaws.protocol.StructuredPojo;
import com.amazonaws.protocol.ProtocolMarshaller;
/**
*
* The properties that can be applied to a field when the connector is being used as a source.
*
*
* @see AWS API
* Documentation
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class SourceFieldProperties implements Serializable, Cloneable, StructuredPojo {
/**
*
* Indicates whether the field can be returned in a search result.
*
*/
private Boolean isRetrievable;
/**
*
* Indicates if the field can be queried.
*
*/
private Boolean isQueryable;
/**
*
* Indicates if this timestamp field can be used for incremental queries.
*
*/
private Boolean isTimestampFieldForIncrementalQueries;
/**
*
* Indicates whether the field can be returned in a search result.
*
*
* @param isRetrievable
* Indicates whether the field can be returned in a search result.
*/
public void setIsRetrievable(Boolean isRetrievable) {
this.isRetrievable = isRetrievable;
}
/**
*
* Indicates whether the field can be returned in a search result.
*
*
* @return Indicates whether the field can be returned in a search result.
*/
public Boolean getIsRetrievable() {
return this.isRetrievable;
}
/**
*
* Indicates whether the field can be returned in a search result.
*
*
* @param isRetrievable
* Indicates whether the field can be returned in a search result.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public SourceFieldProperties withIsRetrievable(Boolean isRetrievable) {
setIsRetrievable(isRetrievable);
return this;
}
/**
*
* Indicates whether the field can be returned in a search result.
*
*
* @return Indicates whether the field can be returned in a search result.
*/
public Boolean isRetrievable() {
return this.isRetrievable;
}
/**
*
* Indicates if the field can be queried.
*
*
* @param isQueryable
* Indicates if the field can be queried.
*/
public void setIsQueryable(Boolean isQueryable) {
this.isQueryable = isQueryable;
}
/**
*
* Indicates if the field can be queried.
*
*
* @return Indicates if the field can be queried.
*/
public Boolean getIsQueryable() {
return this.isQueryable;
}
/**
*
* Indicates if the field can be queried.
*
*
* @param isQueryable
* Indicates if the field can be queried.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public SourceFieldProperties withIsQueryable(Boolean isQueryable) {
setIsQueryable(isQueryable);
return this;
}
/**
*
* Indicates if the field can be queried.
*
*
* @return Indicates if the field can be queried.
*/
public Boolean isQueryable() {
return this.isQueryable;
}
/**
*
* Indicates if this timestamp field can be used for incremental queries.
*
*
* @param isTimestampFieldForIncrementalQueries
* Indicates if this timestamp field can be used for incremental queries.
*/
public void setIsTimestampFieldForIncrementalQueries(Boolean isTimestampFieldForIncrementalQueries) {
this.isTimestampFieldForIncrementalQueries = isTimestampFieldForIncrementalQueries;
}
/**
*
* Indicates if this timestamp field can be used for incremental queries.
*
*
* @return Indicates if this timestamp field can be used for incremental queries.
*/
public Boolean getIsTimestampFieldForIncrementalQueries() {
return this.isTimestampFieldForIncrementalQueries;
}
/**
*
* Indicates if this timestamp field can be used for incremental queries.
*
*
* @param isTimestampFieldForIncrementalQueries
* Indicates if this timestamp field can be used for incremental queries.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public SourceFieldProperties withIsTimestampFieldForIncrementalQueries(Boolean isTimestampFieldForIncrementalQueries) {
setIsTimestampFieldForIncrementalQueries(isTimestampFieldForIncrementalQueries);
return this;
}
/**
*
* Indicates if this timestamp field can be used for incremental queries.
*
*
* @return Indicates if this timestamp field can be used for incremental queries.
*/
public Boolean isTimestampFieldForIncrementalQueries() {
return this.isTimestampFieldForIncrementalQueries;
}
/**
* 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 (getIsRetrievable() != null)
sb.append("IsRetrievable: ").append(getIsRetrievable()).append(",");
if (getIsQueryable() != null)
sb.append("IsQueryable: ").append(getIsQueryable()).append(",");
if (getIsTimestampFieldForIncrementalQueries() != null)
sb.append("IsTimestampFieldForIncrementalQueries: ").append(getIsTimestampFieldForIncrementalQueries());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof SourceFieldProperties == false)
return false;
SourceFieldProperties other = (SourceFieldProperties) obj;
if (other.getIsRetrievable() == null ^ this.getIsRetrievable() == null)
return false;
if (other.getIsRetrievable() != null && other.getIsRetrievable().equals(this.getIsRetrievable()) == false)
return false;
if (other.getIsQueryable() == null ^ this.getIsQueryable() == null)
return false;
if (other.getIsQueryable() != null && other.getIsQueryable().equals(this.getIsQueryable()) == false)
return false;
if (other.getIsTimestampFieldForIncrementalQueries() == null ^ this.getIsTimestampFieldForIncrementalQueries() == null)
return false;
if (other.getIsTimestampFieldForIncrementalQueries() != null
&& other.getIsTimestampFieldForIncrementalQueries().equals(this.getIsTimestampFieldForIncrementalQueries()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getIsRetrievable() == null) ? 0 : getIsRetrievable().hashCode());
hashCode = prime * hashCode + ((getIsQueryable() == null) ? 0 : getIsQueryable().hashCode());
hashCode = prime * hashCode + ((getIsTimestampFieldForIncrementalQueries() == null) ? 0 : getIsTimestampFieldForIncrementalQueries().hashCode());
return hashCode;
}
@Override
public SourceFieldProperties clone() {
try {
return (SourceFieldProperties) super.clone();
} catch (CloneNotSupportedException e) {
throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e);
}
}
@com.amazonaws.annotation.SdkInternalApi
@Override
public void marshall(ProtocolMarshaller protocolMarshaller) {
com.amazonaws.services.appflow.model.transform.SourceFieldPropertiesMarshaller.getInstance().marshall(this, protocolMarshaller);
}
}