com.amazonaws.services.cloudfront.model.FieldLevelEncryptionSummary Maven / Gradle / Ivy
Show all versions of aws-java-sdk-cloudfront Show documentation
/*
* Copyright 2016-2021 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.cloudfront.model;
import java.io.Serializable;
import javax.annotation.Generated;
/**
*
* A summary of a field-level encryption item.
*
*
* @see AWS API Documentation
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class FieldLevelEncryptionSummary implements Serializable, Cloneable {
/**
*
* The unique ID of a field-level encryption item.
*
*/
private String id;
/**
*
* The last time that the summary of field-level encryption items was modified.
*
*/
private java.util.Date lastModifiedTime;
/**
*
* An optional comment about the field-level encryption item. The comment cannot be longer than 128 characters.
*
*/
private String comment;
/**
*
* A summary of a query argument-profile mapping.
*
*/
private QueryArgProfileConfig queryArgProfileConfig;
/**
*
* A summary of a content type-profile mapping.
*
*/
private ContentTypeProfileConfig contentTypeProfileConfig;
/**
*
* The unique ID of a field-level encryption item.
*
*
* @param id
* The unique ID of a field-level encryption item.
*/
public void setId(String id) {
this.id = id;
}
/**
*
* The unique ID of a field-level encryption item.
*
*
* @return The unique ID of a field-level encryption item.
*/
public String getId() {
return this.id;
}
/**
*
* The unique ID of a field-level encryption item.
*
*
* @param id
* The unique ID of a field-level encryption item.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public FieldLevelEncryptionSummary withId(String id) {
setId(id);
return this;
}
/**
*
* The last time that the summary of field-level encryption items was modified.
*
*
* @param lastModifiedTime
* The last time that the summary of field-level encryption items was modified.
*/
public void setLastModifiedTime(java.util.Date lastModifiedTime) {
this.lastModifiedTime = lastModifiedTime;
}
/**
*
* The last time that the summary of field-level encryption items was modified.
*
*
* @return The last time that the summary of field-level encryption items was modified.
*/
public java.util.Date getLastModifiedTime() {
return this.lastModifiedTime;
}
/**
*
* The last time that the summary of field-level encryption items was modified.
*
*
* @param lastModifiedTime
* The last time that the summary of field-level encryption items was modified.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public FieldLevelEncryptionSummary withLastModifiedTime(java.util.Date lastModifiedTime) {
setLastModifiedTime(lastModifiedTime);
return this;
}
/**
*
* An optional comment about the field-level encryption item. The comment cannot be longer than 128 characters.
*
*
* @param comment
* An optional comment about the field-level encryption item. The comment cannot be longer than 128
* characters.
*/
public void setComment(String comment) {
this.comment = comment;
}
/**
*
* An optional comment about the field-level encryption item. The comment cannot be longer than 128 characters.
*
*
* @return An optional comment about the field-level encryption item. The comment cannot be longer than 128
* characters.
*/
public String getComment() {
return this.comment;
}
/**
*
* An optional comment about the field-level encryption item. The comment cannot be longer than 128 characters.
*
*
* @param comment
* An optional comment about the field-level encryption item. The comment cannot be longer than 128
* characters.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public FieldLevelEncryptionSummary withComment(String comment) {
setComment(comment);
return this;
}
/**
*
* A summary of a query argument-profile mapping.
*
*
* @param queryArgProfileConfig
* A summary of a query argument-profile mapping.
*/
public void setQueryArgProfileConfig(QueryArgProfileConfig queryArgProfileConfig) {
this.queryArgProfileConfig = queryArgProfileConfig;
}
/**
*
* A summary of a query argument-profile mapping.
*
*
* @return A summary of a query argument-profile mapping.
*/
public QueryArgProfileConfig getQueryArgProfileConfig() {
return this.queryArgProfileConfig;
}
/**
*
* A summary of a query argument-profile mapping.
*
*
* @param queryArgProfileConfig
* A summary of a query argument-profile mapping.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public FieldLevelEncryptionSummary withQueryArgProfileConfig(QueryArgProfileConfig queryArgProfileConfig) {
setQueryArgProfileConfig(queryArgProfileConfig);
return this;
}
/**
*
* A summary of a content type-profile mapping.
*
*
* @param contentTypeProfileConfig
* A summary of a content type-profile mapping.
*/
public void setContentTypeProfileConfig(ContentTypeProfileConfig contentTypeProfileConfig) {
this.contentTypeProfileConfig = contentTypeProfileConfig;
}
/**
*
* A summary of a content type-profile mapping.
*
*
* @return A summary of a content type-profile mapping.
*/
public ContentTypeProfileConfig getContentTypeProfileConfig() {
return this.contentTypeProfileConfig;
}
/**
*
* A summary of a content type-profile mapping.
*
*
* @param contentTypeProfileConfig
* A summary of a content type-profile mapping.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public FieldLevelEncryptionSummary withContentTypeProfileConfig(ContentTypeProfileConfig contentTypeProfileConfig) {
setContentTypeProfileConfig(contentTypeProfileConfig);
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 (getId() != null)
sb.append("Id: ").append(getId()).append(",");
if (getLastModifiedTime() != null)
sb.append("LastModifiedTime: ").append(getLastModifiedTime()).append(",");
if (getComment() != null)
sb.append("Comment: ").append(getComment()).append(",");
if (getQueryArgProfileConfig() != null)
sb.append("QueryArgProfileConfig: ").append(getQueryArgProfileConfig()).append(",");
if (getContentTypeProfileConfig() != null)
sb.append("ContentTypeProfileConfig: ").append(getContentTypeProfileConfig());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof FieldLevelEncryptionSummary == false)
return false;
FieldLevelEncryptionSummary other = (FieldLevelEncryptionSummary) obj;
if (other.getId() == null ^ this.getId() == null)
return false;
if (other.getId() != null && other.getId().equals(this.getId()) == false)
return false;
if (other.getLastModifiedTime() == null ^ this.getLastModifiedTime() == null)
return false;
if (other.getLastModifiedTime() != null && other.getLastModifiedTime().equals(this.getLastModifiedTime()) == false)
return false;
if (other.getComment() == null ^ this.getComment() == null)
return false;
if (other.getComment() != null && other.getComment().equals(this.getComment()) == false)
return false;
if (other.getQueryArgProfileConfig() == null ^ this.getQueryArgProfileConfig() == null)
return false;
if (other.getQueryArgProfileConfig() != null && other.getQueryArgProfileConfig().equals(this.getQueryArgProfileConfig()) == false)
return false;
if (other.getContentTypeProfileConfig() == null ^ this.getContentTypeProfileConfig() == null)
return false;
if (other.getContentTypeProfileConfig() != null && other.getContentTypeProfileConfig().equals(this.getContentTypeProfileConfig()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getId() == null) ? 0 : getId().hashCode());
hashCode = prime * hashCode + ((getLastModifiedTime() == null) ? 0 : getLastModifiedTime().hashCode());
hashCode = prime * hashCode + ((getComment() == null) ? 0 : getComment().hashCode());
hashCode = prime * hashCode + ((getQueryArgProfileConfig() == null) ? 0 : getQueryArgProfileConfig().hashCode());
hashCode = prime * hashCode + ((getContentTypeProfileConfig() == null) ? 0 : getContentTypeProfileConfig().hashCode());
return hashCode;
}
@Override
public FieldLevelEncryptionSummary clone() {
try {
return (FieldLevelEncryptionSummary) super.clone();
} catch (CloneNotSupportedException e) {
throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e);
}
}
}