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

shiver.me.timbers.aws.inspector.AssessmentTemplate Maven / Gradle / Ivy

Go to download

This library is a complete mapping of the AWS CloudFormation Resource Specification into Java objects. The objects have been generated directly from the specification so should be a direct one to one mapping.

The newest version!

package shiver.me.timbers.aws.inspector;

import java.util.ArrayList;
import java.util.List;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyDescription;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;
import shiver.me.timbers.aws.Property;
import shiver.me.timbers.aws.Tag;


/**
 * AssessmentTemplate
 * 

* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-inspector-assessmenttemplate.html * */ @JsonInclude(JsonInclude.Include.NON_EMPTY) @JsonPropertyOrder({ "AssessmentTargetArn", "DurationInSeconds", "AssessmentTemplateName", "RulesPackageArns", "UserAttributesForFindings" }) public class AssessmentTemplate { /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-inspector-assessmenttemplate.html#cfn-inspector-assessmenttemplate-assessmenttargetarn * */ @JsonProperty("AssessmentTargetArn") @JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-inspector-assessmenttemplate.html#cfn-inspector-assessmenttemplate-assessmenttargetarn") private CharSequence assessmentTargetArn; /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-inspector-assessmenttemplate.html#cfn-inspector-assessmenttemplate-durationinseconds * */ @JsonProperty("DurationInSeconds") @JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-inspector-assessmenttemplate.html#cfn-inspector-assessmenttemplate-durationinseconds") private Number durationInSeconds; /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-inspector-assessmenttemplate.html#cfn-inspector-assessmenttemplate-assessmenttemplatename * */ @JsonProperty("AssessmentTemplateName") @JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-inspector-assessmenttemplate.html#cfn-inspector-assessmenttemplate-assessmenttemplatename") private CharSequence assessmentTemplateName; /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-inspector-assessmenttemplate.html#cfn-inspector-assessmenttemplate-rulespackagearns * */ @JsonProperty("RulesPackageArns") @JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-inspector-assessmenttemplate.html#cfn-inspector-assessmenttemplate-rulespackagearns") private List rulesPackageArns = new ArrayList(); /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-inspector-assessmenttemplate.html#cfn-inspector-assessmenttemplate-userattributesforfindings * */ @JsonProperty("UserAttributesForFindings") @JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-inspector-assessmenttemplate.html#cfn-inspector-assessmenttemplate-userattributesforfindings") private List> userAttributesForFindings = new ArrayList>(); /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-inspector-assessmenttemplate.html#cfn-inspector-assessmenttemplate-assessmenttargetarn * */ @JsonIgnore public CharSequence getAssessmentTargetArn() { return assessmentTargetArn; } /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-inspector-assessmenttemplate.html#cfn-inspector-assessmenttemplate-assessmenttargetarn * */ @JsonIgnore public void setAssessmentTargetArn(CharSequence assessmentTargetArn) { this.assessmentTargetArn = assessmentTargetArn; } public AssessmentTemplate withAssessmentTargetArn(CharSequence assessmentTargetArn) { this.assessmentTargetArn = assessmentTargetArn; return this; } /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-inspector-assessmenttemplate.html#cfn-inspector-assessmenttemplate-durationinseconds * */ @JsonIgnore public Number getDurationInSeconds() { return durationInSeconds; } /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-inspector-assessmenttemplate.html#cfn-inspector-assessmenttemplate-durationinseconds * */ @JsonIgnore public void setDurationInSeconds(Number durationInSeconds) { this.durationInSeconds = durationInSeconds; } public AssessmentTemplate withDurationInSeconds(Number durationInSeconds) { this.durationInSeconds = durationInSeconds; return this; } /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-inspector-assessmenttemplate.html#cfn-inspector-assessmenttemplate-assessmenttemplatename * */ @JsonIgnore public CharSequence getAssessmentTemplateName() { return assessmentTemplateName; } /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-inspector-assessmenttemplate.html#cfn-inspector-assessmenttemplate-assessmenttemplatename * */ @JsonIgnore public void setAssessmentTemplateName(CharSequence assessmentTemplateName) { this.assessmentTemplateName = assessmentTemplateName; } public AssessmentTemplate withAssessmentTemplateName(CharSequence assessmentTemplateName) { this.assessmentTemplateName = assessmentTemplateName; return this; } /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-inspector-assessmenttemplate.html#cfn-inspector-assessmenttemplate-rulespackagearns * */ @JsonIgnore public List getRulesPackageArns() { return rulesPackageArns; } /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-inspector-assessmenttemplate.html#cfn-inspector-assessmenttemplate-rulespackagearns * */ @JsonIgnore public void setRulesPackageArns(List rulesPackageArns) { this.rulesPackageArns = rulesPackageArns; } public AssessmentTemplate withRulesPackageArns(List rulesPackageArns) { this.rulesPackageArns = rulesPackageArns; return this; } /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-inspector-assessmenttemplate.html#cfn-inspector-assessmenttemplate-userattributesforfindings * */ @JsonIgnore public List> getUserAttributesForFindings() { return userAttributesForFindings; } /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-inspector-assessmenttemplate.html#cfn-inspector-assessmenttemplate-userattributesforfindings * */ @JsonIgnore public void setUserAttributesForFindings(List> userAttributesForFindings) { this.userAttributesForFindings = userAttributesForFindings; } public AssessmentTemplate withUserAttributesForFindings(List> userAttributesForFindings) { this.userAttributesForFindings = userAttributesForFindings; return this; } @Override public String toString() { return new ToStringBuilder(this).append("assessmentTargetArn", assessmentTargetArn).append("durationInSeconds", durationInSeconds).append("assessmentTemplateName", assessmentTemplateName).append("rulesPackageArns", rulesPackageArns).append("userAttributesForFindings", userAttributesForFindings).toString(); } @Override public int hashCode() { return new HashCodeBuilder().append(assessmentTargetArn).append(durationInSeconds).append(assessmentTemplateName).append(rulesPackageArns).append(userAttributesForFindings).toHashCode(); } @Override public boolean equals(Object other) { if (other == this) { return true; } if ((other instanceof AssessmentTemplate) == false) { return false; } AssessmentTemplate rhs = ((AssessmentTemplate) other); return new EqualsBuilder().append(assessmentTargetArn, rhs.assessmentTargetArn).append(durationInSeconds, rhs.durationInSeconds).append(assessmentTemplateName, rhs.assessmentTemplateName).append(rulesPackageArns, rhs.rulesPackageArns).append(userAttributesForFindings, rhs.userAttributesForFindings).isEquals(); } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy