com.amazonaws.services.ec2.model.AthenaIntegration Maven / Gradle / Ivy
Show all versions of aws-java-sdk-ec2 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.ec2.model;
import java.io.Serializable;
import javax.annotation.Generated;
/**
*
* Describes integration options for Amazon Athena.
*
*
* @see AWS API
* Documentation
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class AthenaIntegration implements Serializable, Cloneable {
/**
*
* The location in Amazon S3 to store the generated CloudFormation template.
*
*/
private String integrationResultS3DestinationArn;
/**
*
* The schedule for adding new partitions to the table.
*
*/
private String partitionLoadFrequency;
/**
*
* The start date for the partition.
*
*/
private java.util.Date partitionStartDate;
/**
*
* The end date for the partition.
*
*/
private java.util.Date partitionEndDate;
/**
*
* The location in Amazon S3 to store the generated CloudFormation template.
*
*
* @param integrationResultS3DestinationArn
* The location in Amazon S3 to store the generated CloudFormation template.
*/
public void setIntegrationResultS3DestinationArn(String integrationResultS3DestinationArn) {
this.integrationResultS3DestinationArn = integrationResultS3DestinationArn;
}
/**
*
* The location in Amazon S3 to store the generated CloudFormation template.
*
*
* @return The location in Amazon S3 to store the generated CloudFormation template.
*/
public String getIntegrationResultS3DestinationArn() {
return this.integrationResultS3DestinationArn;
}
/**
*
* The location in Amazon S3 to store the generated CloudFormation template.
*
*
* @param integrationResultS3DestinationArn
* The location in Amazon S3 to store the generated CloudFormation template.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public AthenaIntegration withIntegrationResultS3DestinationArn(String integrationResultS3DestinationArn) {
setIntegrationResultS3DestinationArn(integrationResultS3DestinationArn);
return this;
}
/**
*
* The schedule for adding new partitions to the table.
*
*
* @param partitionLoadFrequency
* The schedule for adding new partitions to the table.
* @see PartitionLoadFrequency
*/
public void setPartitionLoadFrequency(String partitionLoadFrequency) {
this.partitionLoadFrequency = partitionLoadFrequency;
}
/**
*
* The schedule for adding new partitions to the table.
*
*
* @return The schedule for adding new partitions to the table.
* @see PartitionLoadFrequency
*/
public String getPartitionLoadFrequency() {
return this.partitionLoadFrequency;
}
/**
*
* The schedule for adding new partitions to the table.
*
*
* @param partitionLoadFrequency
* The schedule for adding new partitions to the table.
* @return Returns a reference to this object so that method calls can be chained together.
* @see PartitionLoadFrequency
*/
public AthenaIntegration withPartitionLoadFrequency(String partitionLoadFrequency) {
setPartitionLoadFrequency(partitionLoadFrequency);
return this;
}
/**
*
* The schedule for adding new partitions to the table.
*
*
* @param partitionLoadFrequency
* The schedule for adding new partitions to the table.
* @return Returns a reference to this object so that method calls can be chained together.
* @see PartitionLoadFrequency
*/
public AthenaIntegration withPartitionLoadFrequency(PartitionLoadFrequency partitionLoadFrequency) {
this.partitionLoadFrequency = partitionLoadFrequency.toString();
return this;
}
/**
*
* The start date for the partition.
*
*
* @param partitionStartDate
* The start date for the partition.
*/
public void setPartitionStartDate(java.util.Date partitionStartDate) {
this.partitionStartDate = partitionStartDate;
}
/**
*
* The start date for the partition.
*
*
* @return The start date for the partition.
*/
public java.util.Date getPartitionStartDate() {
return this.partitionStartDate;
}
/**
*
* The start date for the partition.
*
*
* @param partitionStartDate
* The start date for the partition.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public AthenaIntegration withPartitionStartDate(java.util.Date partitionStartDate) {
setPartitionStartDate(partitionStartDate);
return this;
}
/**
*
* The end date for the partition.
*
*
* @param partitionEndDate
* The end date for the partition.
*/
public void setPartitionEndDate(java.util.Date partitionEndDate) {
this.partitionEndDate = partitionEndDate;
}
/**
*
* The end date for the partition.
*
*
* @return The end date for the partition.
*/
public java.util.Date getPartitionEndDate() {
return this.partitionEndDate;
}
/**
*
* The end date for the partition.
*
*
* @param partitionEndDate
* The end date for the partition.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public AthenaIntegration withPartitionEndDate(java.util.Date partitionEndDate) {
setPartitionEndDate(partitionEndDate);
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 (getIntegrationResultS3DestinationArn() != null)
sb.append("IntegrationResultS3DestinationArn: ").append(getIntegrationResultS3DestinationArn()).append(",");
if (getPartitionLoadFrequency() != null)
sb.append("PartitionLoadFrequency: ").append(getPartitionLoadFrequency()).append(",");
if (getPartitionStartDate() != null)
sb.append("PartitionStartDate: ").append(getPartitionStartDate()).append(",");
if (getPartitionEndDate() != null)
sb.append("PartitionEndDate: ").append(getPartitionEndDate());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof AthenaIntegration == false)
return false;
AthenaIntegration other = (AthenaIntegration) obj;
if (other.getIntegrationResultS3DestinationArn() == null ^ this.getIntegrationResultS3DestinationArn() == null)
return false;
if (other.getIntegrationResultS3DestinationArn() != null
&& other.getIntegrationResultS3DestinationArn().equals(this.getIntegrationResultS3DestinationArn()) == false)
return false;
if (other.getPartitionLoadFrequency() == null ^ this.getPartitionLoadFrequency() == null)
return false;
if (other.getPartitionLoadFrequency() != null && other.getPartitionLoadFrequency().equals(this.getPartitionLoadFrequency()) == false)
return false;
if (other.getPartitionStartDate() == null ^ this.getPartitionStartDate() == null)
return false;
if (other.getPartitionStartDate() != null && other.getPartitionStartDate().equals(this.getPartitionStartDate()) == false)
return false;
if (other.getPartitionEndDate() == null ^ this.getPartitionEndDate() == null)
return false;
if (other.getPartitionEndDate() != null && other.getPartitionEndDate().equals(this.getPartitionEndDate()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getIntegrationResultS3DestinationArn() == null) ? 0 : getIntegrationResultS3DestinationArn().hashCode());
hashCode = prime * hashCode + ((getPartitionLoadFrequency() == null) ? 0 : getPartitionLoadFrequency().hashCode());
hashCode = prime * hashCode + ((getPartitionStartDate() == null) ? 0 : getPartitionStartDate().hashCode());
hashCode = prime * hashCode + ((getPartitionEndDate() == null) ? 0 : getPartitionEndDate().hashCode());
return hashCode;
}
@Override
public AthenaIntegration clone() {
try {
return (AthenaIntegration) super.clone();
} catch (CloneNotSupportedException e) {
throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e);
}
}
}