/* * Copyright 2018-2023 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.codegurureviewer.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* Metadata about a rule. Rule metadata includes an ID, a name, a list of tags, and a short and long description. * CodeGuru Reviewer uses rules to analyze code. A rule's recommendation is included in analysis results if code is * detected that violates the rule. *
* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class RuleMetadata implements Serializable, Cloneable, StructuredPojo { /** ** The ID of the rule. *
*/ private String ruleId; /** ** The name of the rule. *
*/ private String ruleName; /** ** A short description of the rule. *
*/ private String shortDescription; /** ** A long description of the rule. *
*/ private String longDescription; /** ** Tags that are associated with the rule. *
*/ private java.util.List* The ID of the rule. *
* * @param ruleId * The ID of the rule. */ public void setRuleId(String ruleId) { this.ruleId = ruleId; } /** ** The ID of the rule. *
* * @return The ID of the rule. */ public String getRuleId() { return this.ruleId; } /** ** The ID of the rule. *
* * @param ruleId * The ID of the rule. * @return Returns a reference to this object so that method calls can be chained together. */ public RuleMetadata withRuleId(String ruleId) { setRuleId(ruleId); return this; } /** ** The name of the rule. *
* * @param ruleName * The name of the rule. */ public void setRuleName(String ruleName) { this.ruleName = ruleName; } /** ** The name of the rule. *
* * @return The name of the rule. */ public String getRuleName() { return this.ruleName; } /** ** The name of the rule. *
* * @param ruleName * The name of the rule. * @return Returns a reference to this object so that method calls can be chained together. */ public RuleMetadata withRuleName(String ruleName) { setRuleName(ruleName); return this; } /** ** A short description of the rule. *
* * @param shortDescription * A short description of the rule. */ public void setShortDescription(String shortDescription) { this.shortDescription = shortDescription; } /** ** A short description of the rule. *
* * @return A short description of the rule. */ public String getShortDescription() { return this.shortDescription; } /** ** A short description of the rule. *
* * @param shortDescription * A short description of the rule. * @return Returns a reference to this object so that method calls can be chained together. */ public RuleMetadata withShortDescription(String shortDescription) { setShortDescription(shortDescription); return this; } /** ** A long description of the rule. *
* * @param longDescription * A long description of the rule. */ public void setLongDescription(String longDescription) { this.longDescription = longDescription; } /** ** A long description of the rule. *
* * @return A long description of the rule. */ public String getLongDescription() { return this.longDescription; } /** ** A long description of the rule. *
* * @param longDescription * A long description of the rule. * @return Returns a reference to this object so that method calls can be chained together. */ public RuleMetadata withLongDescription(String longDescription) { setLongDescription(longDescription); return this; } /** ** Tags that are associated with the rule. *
* * @return Tags that are associated with the rule. */ public java.util.List* Tags that are associated with the rule. *
* * @param ruleTags * Tags that are associated with the rule. */ public void setRuleTags(java.util.Collection* Tags that are associated with the rule. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setRuleTags(java.util.Collection)} or {@link #withRuleTags(java.util.Collection)} if you want to override * the existing values. *
* * @param ruleTags * Tags that are associated with the rule. * @return Returns a reference to this object so that method calls can be chained together. */ public RuleMetadata withRuleTags(String... ruleTags) { if (this.ruleTags == null) { setRuleTags(new java.util.ArrayList* Tags that are associated with the rule. *
* * @param ruleTags * Tags that are associated with the rule. * @return Returns a reference to this object so that method calls can be chained together. */ public RuleMetadata withRuleTags(java.util.Collection