All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.amazonaws.services.config.model.PutEvaluationsRequest Maven / Gradle / Ivy

/*
 * 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.config.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 PutEvaluationsRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** *

* The assessments that the Lambda function performs. Each evaluation identifies an Amazon Web Services resource and * indicates whether it complies with the Config rule that invokes the Lambda function. *

*/ private com.amazonaws.internal.SdkInternalList evaluations; /** *

* An encrypted token that associates an evaluation with an Config rule. Identifies the rule and the event that * triggered the evaluation. *

*/ private String resultToken; /** *

* Use this parameter to specify a test run for PutEvaluations. You can verify whether your Lambda * function will deliver evaluation results to Config. No updates occur to your existing evaluations, and evaluation * results are not sent to Config. *

* *

* When TestMode is true, PutEvaluations doesn't require a valid value for * the ResultToken parameter, but the value cannot be null. *

*
*/ private Boolean testMode; /** *

* The assessments that the Lambda function performs. Each evaluation identifies an Amazon Web Services resource and * indicates whether it complies with the Config rule that invokes the Lambda function. *

* * @return The assessments that the Lambda function performs. Each evaluation identifies an Amazon Web Services * resource and indicates whether it complies with the Config rule that invokes the Lambda function. */ public java.util.List getEvaluations() { if (evaluations == null) { evaluations = new com.amazonaws.internal.SdkInternalList(); } return evaluations; } /** *

* The assessments that the Lambda function performs. Each evaluation identifies an Amazon Web Services resource and * indicates whether it complies with the Config rule that invokes the Lambda function. *

* * @param evaluations * The assessments that the Lambda function performs. Each evaluation identifies an Amazon Web Services * resource and indicates whether it complies with the Config rule that invokes the Lambda function. */ public void setEvaluations(java.util.Collection evaluations) { if (evaluations == null) { this.evaluations = null; return; } this.evaluations = new com.amazonaws.internal.SdkInternalList(evaluations); } /** *

* The assessments that the Lambda function performs. Each evaluation identifies an Amazon Web Services resource and * indicates whether it complies with the Config rule that invokes the Lambda function. *

*

* NOTE: This method appends the values to the existing list (if any). Use * {@link #setEvaluations(java.util.Collection)} or {@link #withEvaluations(java.util.Collection)} if you want to * override the existing values. *

* * @param evaluations * The assessments that the Lambda function performs. Each evaluation identifies an Amazon Web Services * resource and indicates whether it complies with the Config rule that invokes the Lambda function. * @return Returns a reference to this object so that method calls can be chained together. */ public PutEvaluationsRequest withEvaluations(Evaluation... evaluations) { if (this.evaluations == null) { setEvaluations(new com.amazonaws.internal.SdkInternalList(evaluations.length)); } for (Evaluation ele : evaluations) { this.evaluations.add(ele); } return this; } /** *

* The assessments that the Lambda function performs. Each evaluation identifies an Amazon Web Services resource and * indicates whether it complies with the Config rule that invokes the Lambda function. *

* * @param evaluations * The assessments that the Lambda function performs. Each evaluation identifies an Amazon Web Services * resource and indicates whether it complies with the Config rule that invokes the Lambda function. * @return Returns a reference to this object so that method calls can be chained together. */ public PutEvaluationsRequest withEvaluations(java.util.Collection evaluations) { setEvaluations(evaluations); return this; } /** *

* An encrypted token that associates an evaluation with an Config rule. Identifies the rule and the event that * triggered the evaluation. *

* * @param resultToken * An encrypted token that associates an evaluation with an Config rule. Identifies the rule and the event * that triggered the evaluation. */ public void setResultToken(String resultToken) { this.resultToken = resultToken; } /** *

* An encrypted token that associates an evaluation with an Config rule. Identifies the rule and the event that * triggered the evaluation. *

* * @return An encrypted token that associates an evaluation with an Config rule. Identifies the rule and the event * that triggered the evaluation. */ public String getResultToken() { return this.resultToken; } /** *

* An encrypted token that associates an evaluation with an Config rule. Identifies the rule and the event that * triggered the evaluation. *

* * @param resultToken * An encrypted token that associates an evaluation with an Config rule. Identifies the rule and the event * that triggered the evaluation. * @return Returns a reference to this object so that method calls can be chained together. */ public PutEvaluationsRequest withResultToken(String resultToken) { setResultToken(resultToken); return this; } /** *

* Use this parameter to specify a test run for PutEvaluations. You can verify whether your Lambda * function will deliver evaluation results to Config. No updates occur to your existing evaluations, and evaluation * results are not sent to Config. *

* *

* When TestMode is true, PutEvaluations doesn't require a valid value for * the ResultToken parameter, but the value cannot be null. *

*
* * @param testMode * Use this parameter to specify a test run for PutEvaluations. You can verify whether your * Lambda function will deliver evaluation results to Config. No updates occur to your existing evaluations, * and evaluation results are not sent to Config.

*

* When TestMode is true, PutEvaluations doesn't require a valid value * for the ResultToken parameter, but the value cannot be null. *

*/ public void setTestMode(Boolean testMode) { this.testMode = testMode; } /** *

* Use this parameter to specify a test run for PutEvaluations. You can verify whether your Lambda * function will deliver evaluation results to Config. No updates occur to your existing evaluations, and evaluation * results are not sent to Config. *

* *

* When TestMode is true, PutEvaluations doesn't require a valid value for * the ResultToken parameter, but the value cannot be null. *

*
* * @return Use this parameter to specify a test run for PutEvaluations. You can verify whether your * Lambda function will deliver evaluation results to Config. No updates occur to your existing evaluations, * and evaluation results are not sent to Config.

*

* When TestMode is true, PutEvaluations doesn't require a valid * value for the ResultToken parameter, but the value cannot be null. *

*/ public Boolean getTestMode() { return this.testMode; } /** *

* Use this parameter to specify a test run for PutEvaluations. You can verify whether your Lambda * function will deliver evaluation results to Config. No updates occur to your existing evaluations, and evaluation * results are not sent to Config. *

* *

* When TestMode is true, PutEvaluations doesn't require a valid value for * the ResultToken parameter, but the value cannot be null. *

*
* * @param testMode * Use this parameter to specify a test run for PutEvaluations. You can verify whether your * Lambda function will deliver evaluation results to Config. No updates occur to your existing evaluations, * and evaluation results are not sent to Config.

*

* When TestMode is true, PutEvaluations doesn't require a valid value * for the ResultToken parameter, but the value cannot be null. *

* @return Returns a reference to this object so that method calls can be chained together. */ public PutEvaluationsRequest withTestMode(Boolean testMode) { setTestMode(testMode); return this; } /** *

* Use this parameter to specify a test run for PutEvaluations. You can verify whether your Lambda * function will deliver evaluation results to Config. No updates occur to your existing evaluations, and evaluation * results are not sent to Config. *

* *

* When TestMode is true, PutEvaluations doesn't require a valid value for * the ResultToken parameter, but the value cannot be null. *

*
* * @return Use this parameter to specify a test run for PutEvaluations. You can verify whether your * Lambda function will deliver evaluation results to Config. No updates occur to your existing evaluations, * and evaluation results are not sent to Config.

*

* When TestMode is true, PutEvaluations doesn't require a valid * value for the ResultToken parameter, but the value cannot be null. *

*/ public Boolean isTestMode() { return this.testMode; } /** * 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 (getEvaluations() != null) sb.append("Evaluations: ").append(getEvaluations()).append(","); if (getResultToken() != null) sb.append("ResultToken: ").append(getResultToken()).append(","); if (getTestMode() != null) sb.append("TestMode: ").append(getTestMode()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof PutEvaluationsRequest == false) return false; PutEvaluationsRequest other = (PutEvaluationsRequest) obj; if (other.getEvaluations() == null ^ this.getEvaluations() == null) return false; if (other.getEvaluations() != null && other.getEvaluations().equals(this.getEvaluations()) == false) return false; if (other.getResultToken() == null ^ this.getResultToken() == null) return false; if (other.getResultToken() != null && other.getResultToken().equals(this.getResultToken()) == false) return false; if (other.getTestMode() == null ^ this.getTestMode() == null) return false; if (other.getTestMode() != null && other.getTestMode().equals(this.getTestMode()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getEvaluations() == null) ? 0 : getEvaluations().hashCode()); hashCode = prime * hashCode + ((getResultToken() == null) ? 0 : getResultToken().hashCode()); hashCode = prime * hashCode + ((getTestMode() == null) ? 0 : getTestMode().hashCode()); return hashCode; } @Override public PutEvaluationsRequest clone() { return (PutEvaluationsRequest) super.clone(); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy