com.amazonaws.services.athena.model.ResultConfigurationUpdates Maven / Gradle / Ivy
Show all versions of aws-java-sdk-athena Show documentation
/*
* 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.athena.model;
import java.io.Serializable;
import javax.annotation.Generated;
import com.amazonaws.protocol.StructuredPojo;
import com.amazonaws.protocol.ProtocolMarshaller;
/**
*
* The information about the updates in the query results, such as output location and encryption configuration for the
* query results.
*
*
* @see AWS
* API Documentation
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class ResultConfigurationUpdates implements Serializable, Cloneable, StructuredPojo {
/**
*
* The location in Amazon S3 where your query results are stored, such as s3://path/to/query/bucket/
.
* For more information, see Query Results
* If workgroup settings override client-side settings, then the query uses the location for the query results and
* the encryption configuration that are specified for the workgroup. The "workgroup settings override" is specified
* in EnforceWorkGroupConfiguration (true/false) in the WorkGroupConfiguration. See
* WorkGroupConfiguration$EnforceWorkGroupConfiguration.
*
*/
private String outputLocation;
/**
*
* If set to "true", indicates that the previously-specified query results location (also known as a client-side
* setting) for queries in this workgroup should be ignored and set to null. If set to "false" or not set, and a
* value is present in the OutputLocation in ResultConfigurationUpdates (the client-side setting), the
* OutputLocation in the workgroup's ResultConfiguration will be updated with the new value. For more information,
* see Workgroup Settings
* Override Client-Side Settings.
*
*/
private Boolean removeOutputLocation;
/**
*
* The encryption configuration for the query results.
*
*/
private EncryptionConfiguration encryptionConfiguration;
/**
*
* If set to "true", indicates that the previously-specified encryption configuration (also known as the client-side
* setting) for queries in this workgroup should be ignored and set to null. If set to "false" or not set, and a
* value is present in the EncryptionConfiguration in ResultConfigurationUpdates (the client-side setting), the
* EncryptionConfiguration in the workgroup's ResultConfiguration will be updated with the new value. For more
* information, see Workgroup Settings Override
* Client-Side Settings.
*
*/
private Boolean removeEncryptionConfiguration;
/**
*
* The location in Amazon S3 where your query results are stored, such as s3://path/to/query/bucket/
.
* For more information, see Query Results
* If workgroup settings override client-side settings, then the query uses the location for the query results and
* the encryption configuration that are specified for the workgroup. The "workgroup settings override" is specified
* in EnforceWorkGroupConfiguration (true/false) in the WorkGroupConfiguration. See
* WorkGroupConfiguration$EnforceWorkGroupConfiguration.
*
*
* @param outputLocation
* The location in Amazon S3 where your query results are stored, such as
* s3://path/to/query/bucket/
. For more information, see Query Results If workgroup settings
* override client-side settings, then the query uses the location for the query results and the encryption
* configuration that are specified for the workgroup. The "workgroup settings override" is specified in
* EnforceWorkGroupConfiguration (true/false) in the WorkGroupConfiguration. See
* WorkGroupConfiguration$EnforceWorkGroupConfiguration.
*/
public void setOutputLocation(String outputLocation) {
this.outputLocation = outputLocation;
}
/**
*
* The location in Amazon S3 where your query results are stored, such as s3://path/to/query/bucket/
.
* For more information, see Query Results
* If workgroup settings override client-side settings, then the query uses the location for the query results and
* the encryption configuration that are specified for the workgroup. The "workgroup settings override" is specified
* in EnforceWorkGroupConfiguration (true/false) in the WorkGroupConfiguration. See
* WorkGroupConfiguration$EnforceWorkGroupConfiguration.
*
*
* @return The location in Amazon S3 where your query results are stored, such as
* s3://path/to/query/bucket/
. For more information, see Query Results If workgroup settings
* override client-side settings, then the query uses the location for the query results and the encryption
* configuration that are specified for the workgroup. The "workgroup settings override" is specified in
* EnforceWorkGroupConfiguration (true/false) in the WorkGroupConfiguration. See
* WorkGroupConfiguration$EnforceWorkGroupConfiguration.
*/
public String getOutputLocation() {
return this.outputLocation;
}
/**
*
* The location in Amazon S3 where your query results are stored, such as s3://path/to/query/bucket/
.
* For more information, see Query Results
* If workgroup settings override client-side settings, then the query uses the location for the query results and
* the encryption configuration that are specified for the workgroup. The "workgroup settings override" is specified
* in EnforceWorkGroupConfiguration (true/false) in the WorkGroupConfiguration. See
* WorkGroupConfiguration$EnforceWorkGroupConfiguration.
*
*
* @param outputLocation
* The location in Amazon S3 where your query results are stored, such as
* s3://path/to/query/bucket/
. For more information, see Query Results If workgroup settings
* override client-side settings, then the query uses the location for the query results and the encryption
* configuration that are specified for the workgroup. The "workgroup settings override" is specified in
* EnforceWorkGroupConfiguration (true/false) in the WorkGroupConfiguration. See
* WorkGroupConfiguration$EnforceWorkGroupConfiguration.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ResultConfigurationUpdates withOutputLocation(String outputLocation) {
setOutputLocation(outputLocation);
return this;
}
/**
*
* If set to "true", indicates that the previously-specified query results location (also known as a client-side
* setting) for queries in this workgroup should be ignored and set to null. If set to "false" or not set, and a
* value is present in the OutputLocation in ResultConfigurationUpdates (the client-side setting), the
* OutputLocation in the workgroup's ResultConfiguration will be updated with the new value. For more information,
* see Workgroup Settings
* Override Client-Side Settings.
*
*
* @param removeOutputLocation
* If set to "true", indicates that the previously-specified query results location (also known as a
* client-side setting) for queries in this workgroup should be ignored and set to null. If set to "false" or
* not set, and a value is present in the OutputLocation in ResultConfigurationUpdates (the client-side
* setting), the OutputLocation in the workgroup's ResultConfiguration will be updated with the new value.
* For more information, see Workgroup Settings
* Override Client-Side Settings.
*/
public void setRemoveOutputLocation(Boolean removeOutputLocation) {
this.removeOutputLocation = removeOutputLocation;
}
/**
*
* If set to "true", indicates that the previously-specified query results location (also known as a client-side
* setting) for queries in this workgroup should be ignored and set to null. If set to "false" or not set, and a
* value is present in the OutputLocation in ResultConfigurationUpdates (the client-side setting), the
* OutputLocation in the workgroup's ResultConfiguration will be updated with the new value. For more information,
* see Workgroup Settings
* Override Client-Side Settings.
*
*
* @return If set to "true", indicates that the previously-specified query results location (also known as a
* client-side setting) for queries in this workgroup should be ignored and set to null. If set to "false"
* or not set, and a value is present in the OutputLocation in ResultConfigurationUpdates (the client-side
* setting), the OutputLocation in the workgroup's ResultConfiguration will be updated with the new value.
* For more information, see Workgroup Settings
* Override Client-Side Settings.
*/
public Boolean getRemoveOutputLocation() {
return this.removeOutputLocation;
}
/**
*
* If set to "true", indicates that the previously-specified query results location (also known as a client-side
* setting) for queries in this workgroup should be ignored and set to null. If set to "false" or not set, and a
* value is present in the OutputLocation in ResultConfigurationUpdates (the client-side setting), the
* OutputLocation in the workgroup's ResultConfiguration will be updated with the new value. For more information,
* see Workgroup Settings
* Override Client-Side Settings.
*
*
* @param removeOutputLocation
* If set to "true", indicates that the previously-specified query results location (also known as a
* client-side setting) for queries in this workgroup should be ignored and set to null. If set to "false" or
* not set, and a value is present in the OutputLocation in ResultConfigurationUpdates (the client-side
* setting), the OutputLocation in the workgroup's ResultConfiguration will be updated with the new value.
* For more information, see Workgroup Settings
* Override Client-Side Settings.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ResultConfigurationUpdates withRemoveOutputLocation(Boolean removeOutputLocation) {
setRemoveOutputLocation(removeOutputLocation);
return this;
}
/**
*
* If set to "true", indicates that the previously-specified query results location (also known as a client-side
* setting) for queries in this workgroup should be ignored and set to null. If set to "false" or not set, and a
* value is present in the OutputLocation in ResultConfigurationUpdates (the client-side setting), the
* OutputLocation in the workgroup's ResultConfiguration will be updated with the new value. For more information,
* see Workgroup Settings
* Override Client-Side Settings.
*
*
* @return If set to "true", indicates that the previously-specified query results location (also known as a
* client-side setting) for queries in this workgroup should be ignored and set to null. If set to "false"
* or not set, and a value is present in the OutputLocation in ResultConfigurationUpdates (the client-side
* setting), the OutputLocation in the workgroup's ResultConfiguration will be updated with the new value.
* For more information, see Workgroup Settings
* Override Client-Side Settings.
*/
public Boolean isRemoveOutputLocation() {
return this.removeOutputLocation;
}
/**
*
* The encryption configuration for the query results.
*
*
* @param encryptionConfiguration
* The encryption configuration for the query results.
*/
public void setEncryptionConfiguration(EncryptionConfiguration encryptionConfiguration) {
this.encryptionConfiguration = encryptionConfiguration;
}
/**
*
* The encryption configuration for the query results.
*
*
* @return The encryption configuration for the query results.
*/
public EncryptionConfiguration getEncryptionConfiguration() {
return this.encryptionConfiguration;
}
/**
*
* The encryption configuration for the query results.
*
*
* @param encryptionConfiguration
* The encryption configuration for the query results.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ResultConfigurationUpdates withEncryptionConfiguration(EncryptionConfiguration encryptionConfiguration) {
setEncryptionConfiguration(encryptionConfiguration);
return this;
}
/**
*
* If set to "true", indicates that the previously-specified encryption configuration (also known as the client-side
* setting) for queries in this workgroup should be ignored and set to null. If set to "false" or not set, and a
* value is present in the EncryptionConfiguration in ResultConfigurationUpdates (the client-side setting), the
* EncryptionConfiguration in the workgroup's ResultConfiguration will be updated with the new value. For more
* information, see Workgroup Settings Override
* Client-Side Settings.
*
*
* @param removeEncryptionConfiguration
* If set to "true", indicates that the previously-specified encryption configuration (also known as the
* client-side setting) for queries in this workgroup should be ignored and set to null. If set to "false" or
* not set, and a value is present in the EncryptionConfiguration in ResultConfigurationUpdates (the
* client-side setting), the EncryptionConfiguration in the workgroup's ResultConfiguration will be updated
* with the new value. For more information, see Workgroup Settings
* Override Client-Side Settings.
*/
public void setRemoveEncryptionConfiguration(Boolean removeEncryptionConfiguration) {
this.removeEncryptionConfiguration = removeEncryptionConfiguration;
}
/**
*
* If set to "true", indicates that the previously-specified encryption configuration (also known as the client-side
* setting) for queries in this workgroup should be ignored and set to null. If set to "false" or not set, and a
* value is present in the EncryptionConfiguration in ResultConfigurationUpdates (the client-side setting), the
* EncryptionConfiguration in the workgroup's ResultConfiguration will be updated with the new value. For more
* information, see Workgroup Settings Override
* Client-Side Settings.
*
*
* @return If set to "true", indicates that the previously-specified encryption configuration (also known as the
* client-side setting) for queries in this workgroup should be ignored and set to null. If set to "false"
* or not set, and a value is present in the EncryptionConfiguration in ResultConfigurationUpdates (the
* client-side setting), the EncryptionConfiguration in the workgroup's ResultConfiguration will be updated
* with the new value. For more information, see Workgroup Settings
* Override Client-Side Settings.
*/
public Boolean getRemoveEncryptionConfiguration() {
return this.removeEncryptionConfiguration;
}
/**
*
* If set to "true", indicates that the previously-specified encryption configuration (also known as the client-side
* setting) for queries in this workgroup should be ignored and set to null. If set to "false" or not set, and a
* value is present in the EncryptionConfiguration in ResultConfigurationUpdates (the client-side setting), the
* EncryptionConfiguration in the workgroup's ResultConfiguration will be updated with the new value. For more
* information, see Workgroup Settings Override
* Client-Side Settings.
*
*
* @param removeEncryptionConfiguration
* If set to "true", indicates that the previously-specified encryption configuration (also known as the
* client-side setting) for queries in this workgroup should be ignored and set to null. If set to "false" or
* not set, and a value is present in the EncryptionConfiguration in ResultConfigurationUpdates (the
* client-side setting), the EncryptionConfiguration in the workgroup's ResultConfiguration will be updated
* with the new value. For more information, see Workgroup Settings
* Override Client-Side Settings.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ResultConfigurationUpdates withRemoveEncryptionConfiguration(Boolean removeEncryptionConfiguration) {
setRemoveEncryptionConfiguration(removeEncryptionConfiguration);
return this;
}
/**
*
* If set to "true", indicates that the previously-specified encryption configuration (also known as the client-side
* setting) for queries in this workgroup should be ignored and set to null. If set to "false" or not set, and a
* value is present in the EncryptionConfiguration in ResultConfigurationUpdates (the client-side setting), the
* EncryptionConfiguration in the workgroup's ResultConfiguration will be updated with the new value. For more
* information, see Workgroup Settings Override
* Client-Side Settings.
*
*
* @return If set to "true", indicates that the previously-specified encryption configuration (also known as the
* client-side setting) for queries in this workgroup should be ignored and set to null. If set to "false"
* or not set, and a value is present in the EncryptionConfiguration in ResultConfigurationUpdates (the
* client-side setting), the EncryptionConfiguration in the workgroup's ResultConfiguration will be updated
* with the new value. For more information, see Workgroup Settings
* Override Client-Side Settings.
*/
public Boolean isRemoveEncryptionConfiguration() {
return this.removeEncryptionConfiguration;
}
/**
* 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 (getOutputLocation() != null)
sb.append("OutputLocation: ").append(getOutputLocation()).append(",");
if (getRemoveOutputLocation() != null)
sb.append("RemoveOutputLocation: ").append(getRemoveOutputLocation()).append(",");
if (getEncryptionConfiguration() != null)
sb.append("EncryptionConfiguration: ").append(getEncryptionConfiguration()).append(",");
if (getRemoveEncryptionConfiguration() != null)
sb.append("RemoveEncryptionConfiguration: ").append(getRemoveEncryptionConfiguration());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof ResultConfigurationUpdates == false)
return false;
ResultConfigurationUpdates other = (ResultConfigurationUpdates) obj;
if (other.getOutputLocation() == null ^ this.getOutputLocation() == null)
return false;
if (other.getOutputLocation() != null && other.getOutputLocation().equals(this.getOutputLocation()) == false)
return false;
if (other.getRemoveOutputLocation() == null ^ this.getRemoveOutputLocation() == null)
return false;
if (other.getRemoveOutputLocation() != null && other.getRemoveOutputLocation().equals(this.getRemoveOutputLocation()) == false)
return false;
if (other.getEncryptionConfiguration() == null ^ this.getEncryptionConfiguration() == null)
return false;
if (other.getEncryptionConfiguration() != null && other.getEncryptionConfiguration().equals(this.getEncryptionConfiguration()) == false)
return false;
if (other.getRemoveEncryptionConfiguration() == null ^ this.getRemoveEncryptionConfiguration() == null)
return false;
if (other.getRemoveEncryptionConfiguration() != null
&& other.getRemoveEncryptionConfiguration().equals(this.getRemoveEncryptionConfiguration()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getOutputLocation() == null) ? 0 : getOutputLocation().hashCode());
hashCode = prime * hashCode + ((getRemoveOutputLocation() == null) ? 0 : getRemoveOutputLocation().hashCode());
hashCode = prime * hashCode + ((getEncryptionConfiguration() == null) ? 0 : getEncryptionConfiguration().hashCode());
hashCode = prime * hashCode + ((getRemoveEncryptionConfiguration() == null) ? 0 : getRemoveEncryptionConfiguration().hashCode());
return hashCode;
}
@Override
public ResultConfigurationUpdates clone() {
try {
return (ResultConfigurationUpdates) 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.athena.model.transform.ResultConfigurationUpdatesMarshaller.getInstance().marshall(this, protocolMarshaller);
}
}