com.amazonaws.services.auditmanager.model.UpdateAssessmentControlSetStatusRequest Maven / Gradle / Ivy
Show all versions of aws-java-sdk-auditmanager 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.auditmanager.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 UpdateAssessmentControlSetStatusRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable {
/**
*
* The unique identifier for the assessment.
*
*/
private String assessmentId;
/**
*
* The unique identifier for the control set.
*
*/
private String controlSetId;
/**
*
* The status of the control set that's being updated.
*
*/
private String status;
/**
*
* The comment that's related to the status update.
*
*/
private String comment;
/**
*
* The unique identifier for the assessment.
*
*
* @param assessmentId
* The unique identifier for the assessment.
*/
public void setAssessmentId(String assessmentId) {
this.assessmentId = assessmentId;
}
/**
*
* The unique identifier for the assessment.
*
*
* @return The unique identifier for the assessment.
*/
public String getAssessmentId() {
return this.assessmentId;
}
/**
*
* The unique identifier for the assessment.
*
*
* @param assessmentId
* The unique identifier for the assessment.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public UpdateAssessmentControlSetStatusRequest withAssessmentId(String assessmentId) {
setAssessmentId(assessmentId);
return this;
}
/**
*
* The unique identifier for the control set.
*
*
* @param controlSetId
* The unique identifier for the control set.
*/
public void setControlSetId(String controlSetId) {
this.controlSetId = controlSetId;
}
/**
*
* The unique identifier for the control set.
*
*
* @return The unique identifier for the control set.
*/
public String getControlSetId() {
return this.controlSetId;
}
/**
*
* The unique identifier for the control set.
*
*
* @param controlSetId
* The unique identifier for the control set.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public UpdateAssessmentControlSetStatusRequest withControlSetId(String controlSetId) {
setControlSetId(controlSetId);
return this;
}
/**
*
* The status of the control set that's being updated.
*
*
* @param status
* The status of the control set that's being updated.
* @see ControlSetStatus
*/
public void setStatus(String status) {
this.status = status;
}
/**
*
* The status of the control set that's being updated.
*
*
* @return The status of the control set that's being updated.
* @see ControlSetStatus
*/
public String getStatus() {
return this.status;
}
/**
*
* The status of the control set that's being updated.
*
*
* @param status
* The status of the control set that's being updated.
* @return Returns a reference to this object so that method calls can be chained together.
* @see ControlSetStatus
*/
public UpdateAssessmentControlSetStatusRequest withStatus(String status) {
setStatus(status);
return this;
}
/**
*
* The status of the control set that's being updated.
*
*
* @param status
* The status of the control set that's being updated.
* @return Returns a reference to this object so that method calls can be chained together.
* @see ControlSetStatus
*/
public UpdateAssessmentControlSetStatusRequest withStatus(ControlSetStatus status) {
this.status = status.toString();
return this;
}
/**
*
* The comment that's related to the status update.
*
*
* @param comment
* The comment that's related to the status update.
*/
public void setComment(String comment) {
this.comment = comment;
}
/**
*
* The comment that's related to the status update.
*
*
* @return The comment that's related to the status update.
*/
public String getComment() {
return this.comment;
}
/**
*
* The comment that's related to the status update.
*
*
* @param comment
* The comment that's related to the status update.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public UpdateAssessmentControlSetStatusRequest withComment(String comment) {
setComment(comment);
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 (getAssessmentId() != null)
sb.append("AssessmentId: ").append(getAssessmentId()).append(",");
if (getControlSetId() != null)
sb.append("ControlSetId: ").append(getControlSetId()).append(",");
if (getStatus() != null)
sb.append("Status: ").append(getStatus()).append(",");
if (getComment() != null)
sb.append("Comment: ").append("***Sensitive Data Redacted***");
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof UpdateAssessmentControlSetStatusRequest == false)
return false;
UpdateAssessmentControlSetStatusRequest other = (UpdateAssessmentControlSetStatusRequest) obj;
if (other.getAssessmentId() == null ^ this.getAssessmentId() == null)
return false;
if (other.getAssessmentId() != null && other.getAssessmentId().equals(this.getAssessmentId()) == false)
return false;
if (other.getControlSetId() == null ^ this.getControlSetId() == null)
return false;
if (other.getControlSetId() != null && other.getControlSetId().equals(this.getControlSetId()) == false)
return false;
if (other.getStatus() == null ^ this.getStatus() == null)
return false;
if (other.getStatus() != null && other.getStatus().equals(this.getStatus()) == false)
return false;
if (other.getComment() == null ^ this.getComment() == null)
return false;
if (other.getComment() != null && other.getComment().equals(this.getComment()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getAssessmentId() == null) ? 0 : getAssessmentId().hashCode());
hashCode = prime * hashCode + ((getControlSetId() == null) ? 0 : getControlSetId().hashCode());
hashCode = prime * hashCode + ((getStatus() == null) ? 0 : getStatus().hashCode());
hashCode = prime * hashCode + ((getComment() == null) ? 0 : getComment().hashCode());
return hashCode;
}
@Override
public UpdateAssessmentControlSetStatusRequest clone() {
return (UpdateAssessmentControlSetStatusRequest) super.clone();
}
}