com.amazonaws.services.macie2.model.UpdateSensitivityInspectionTemplateRequest Maven / Gradle / Ivy
Show all versions of aws-java-sdk-macie2 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.macie2.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 UpdateSensitivityInspectionTemplateRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable {
/**
*
* A custom description of the template. The description can contain as many as 200 characters.
*
*/
private String description;
/**
*
* The managed data identifiers to explicitly exclude (not use) when performing automated sensitive data discovery.
*
*
* To exclude an allow list or custom data identifier that's currently included by the template, update the values
* for the SensitivityInspectionTemplateIncludes.allowListIds and
* SensitivityInspectionTemplateIncludes.customDataIdentifierIds properties, respectively.
*
*/
private SensitivityInspectionTemplateExcludes excludes;
/**
*
* The unique identifier for the Amazon Macie resource that the request applies to.
*
*/
private String id;
/**
*
* The allow lists, custom data identifiers, and managed data identifiers to explicitly include (use) when
* performing automated sensitive data discovery.
*
*/
private SensitivityInspectionTemplateIncludes includes;
/**
*
* A custom description of the template. The description can contain as many as 200 characters.
*
*
* @param description
* A custom description of the template. The description can contain as many as 200 characters.
*/
public void setDescription(String description) {
this.description = description;
}
/**
*
* A custom description of the template. The description can contain as many as 200 characters.
*
*
* @return A custom description of the template. The description can contain as many as 200 characters.
*/
public String getDescription() {
return this.description;
}
/**
*
* A custom description of the template. The description can contain as many as 200 characters.
*
*
* @param description
* A custom description of the template. The description can contain as many as 200 characters.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public UpdateSensitivityInspectionTemplateRequest withDescription(String description) {
setDescription(description);
return this;
}
/**
*
* The managed data identifiers to explicitly exclude (not use) when performing automated sensitive data discovery.
*
*
* To exclude an allow list or custom data identifier that's currently included by the template, update the values
* for the SensitivityInspectionTemplateIncludes.allowListIds and
* SensitivityInspectionTemplateIncludes.customDataIdentifierIds properties, respectively.
*
*
* @param excludes
*
* The managed data identifiers to explicitly exclude (not use) when performing automated sensitive data
* discovery.
*
*
* To exclude an allow list or custom data identifier that's currently included by the template, update the
* values for the SensitivityInspectionTemplateIncludes.allowListIds and
* SensitivityInspectionTemplateIncludes.customDataIdentifierIds properties, respectively.
*
*/
public void setExcludes(SensitivityInspectionTemplateExcludes excludes) {
this.excludes = excludes;
}
/**
*
* The managed data identifiers to explicitly exclude (not use) when performing automated sensitive data discovery.
*
*
* To exclude an allow list or custom data identifier that's currently included by the template, update the values
* for the SensitivityInspectionTemplateIncludes.allowListIds and
* SensitivityInspectionTemplateIncludes.customDataIdentifierIds properties, respectively.
*
*
* @return
* The managed data identifiers to explicitly exclude (not use) when performing automated sensitive data
* discovery.
*
*
* To exclude an allow list or custom data identifier that's currently included by the template, update the
* values for the SensitivityInspectionTemplateIncludes.allowListIds and
* SensitivityInspectionTemplateIncludes.customDataIdentifierIds properties, respectively.
*
*/
public SensitivityInspectionTemplateExcludes getExcludes() {
return this.excludes;
}
/**
*
* The managed data identifiers to explicitly exclude (not use) when performing automated sensitive data discovery.
*
*
* To exclude an allow list or custom data identifier that's currently included by the template, update the values
* for the SensitivityInspectionTemplateIncludes.allowListIds and
* SensitivityInspectionTemplateIncludes.customDataIdentifierIds properties, respectively.
*
*
* @param excludes
*
* The managed data identifiers to explicitly exclude (not use) when performing automated sensitive data
* discovery.
*
*
* To exclude an allow list or custom data identifier that's currently included by the template, update the
* values for the SensitivityInspectionTemplateIncludes.allowListIds and
* SensitivityInspectionTemplateIncludes.customDataIdentifierIds properties, respectively.
*
* @return Returns a reference to this object so that method calls can be chained together.
*/
public UpdateSensitivityInspectionTemplateRequest withExcludes(SensitivityInspectionTemplateExcludes excludes) {
setExcludes(excludes);
return this;
}
/**
*
* The unique identifier for the Amazon Macie resource that the request applies to.
*
*
* @param id
* The unique identifier for the Amazon Macie resource that the request applies to.
*/
public void setId(String id) {
this.id = id;
}
/**
*
* The unique identifier for the Amazon Macie resource that the request applies to.
*
*
* @return The unique identifier for the Amazon Macie resource that the request applies to.
*/
public String getId() {
return this.id;
}
/**
*
* The unique identifier for the Amazon Macie resource that the request applies to.
*
*
* @param id
* The unique identifier for the Amazon Macie resource that the request applies to.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public UpdateSensitivityInspectionTemplateRequest withId(String id) {
setId(id);
return this;
}
/**
*
* The allow lists, custom data identifiers, and managed data identifiers to explicitly include (use) when
* performing automated sensitive data discovery.
*
*
* @param includes
* The allow lists, custom data identifiers, and managed data identifiers to explicitly include (use) when
* performing automated sensitive data discovery.
*/
public void setIncludes(SensitivityInspectionTemplateIncludes includes) {
this.includes = includes;
}
/**
*
* The allow lists, custom data identifiers, and managed data identifiers to explicitly include (use) when
* performing automated sensitive data discovery.
*
*
* @return The allow lists, custom data identifiers, and managed data identifiers to explicitly include (use) when
* performing automated sensitive data discovery.
*/
public SensitivityInspectionTemplateIncludes getIncludes() {
return this.includes;
}
/**
*
* The allow lists, custom data identifiers, and managed data identifiers to explicitly include (use) when
* performing automated sensitive data discovery.
*
*
* @param includes
* The allow lists, custom data identifiers, and managed data identifiers to explicitly include (use) when
* performing automated sensitive data discovery.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public UpdateSensitivityInspectionTemplateRequest withIncludes(SensitivityInspectionTemplateIncludes includes) {
setIncludes(includes);
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 (getDescription() != null)
sb.append("Description: ").append(getDescription()).append(",");
if (getExcludes() != null)
sb.append("Excludes: ").append(getExcludes()).append(",");
if (getId() != null)
sb.append("Id: ").append(getId()).append(",");
if (getIncludes() != null)
sb.append("Includes: ").append(getIncludes());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof UpdateSensitivityInspectionTemplateRequest == false)
return false;
UpdateSensitivityInspectionTemplateRequest other = (UpdateSensitivityInspectionTemplateRequest) obj;
if (other.getDescription() == null ^ this.getDescription() == null)
return false;
if (other.getDescription() != null && other.getDescription().equals(this.getDescription()) == false)
return false;
if (other.getExcludes() == null ^ this.getExcludes() == null)
return false;
if (other.getExcludes() != null && other.getExcludes().equals(this.getExcludes()) == false)
return false;
if (other.getId() == null ^ this.getId() == null)
return false;
if (other.getId() != null && other.getId().equals(this.getId()) == false)
return false;
if (other.getIncludes() == null ^ this.getIncludes() == null)
return false;
if (other.getIncludes() != null && other.getIncludes().equals(this.getIncludes()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getDescription() == null) ? 0 : getDescription().hashCode());
hashCode = prime * hashCode + ((getExcludes() == null) ? 0 : getExcludes().hashCode());
hashCode = prime * hashCode + ((getId() == null) ? 0 : getId().hashCode());
hashCode = prime * hashCode + ((getIncludes() == null) ? 0 : getIncludes().hashCode());
return hashCode;
}
@Override
public UpdateSensitivityInspectionTemplateRequest clone() {
return (UpdateSensitivityInspectionTemplateRequest) super.clone();
}
}