@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class RuleMetadata extends Object implements Serializable, Cloneable, StructuredPojo
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.
| Constructor and Description |
|---|
RuleMetadata() |
| Modifier and Type | Method and Description |
|---|---|
RuleMetadata |
clone() |
boolean |
equals(Object obj) |
String |
getLongDescription()
A long description of the rule.
|
String |
getRuleId()
The ID of the rule.
|
String |
getRuleName()
The name of the rule.
|
List<String> |
getRuleTags()
Tags that are associated with the rule.
|
String |
getShortDescription()
A short description of the rule.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller. |
void |
setLongDescription(String longDescription)
A long description of the rule.
|
void |
setRuleId(String ruleId)
The ID of the rule.
|
void |
setRuleName(String ruleName)
The name of the rule.
|
void |
setRuleTags(Collection<String> ruleTags)
Tags that are associated with the rule.
|
void |
setShortDescription(String shortDescription)
A short description of the rule.
|
String |
toString()
Returns a string representation of this object.
|
RuleMetadata |
withLongDescription(String longDescription)
A long description of the rule.
|
RuleMetadata |
withRuleId(String ruleId)
The ID of the rule.
|
RuleMetadata |
withRuleName(String ruleName)
The name of the rule.
|
RuleMetadata |
withRuleTags(Collection<String> ruleTags)
Tags that are associated with the rule.
|
RuleMetadata |
withRuleTags(String... ruleTags)
Tags that are associated with the rule.
|
RuleMetadata |
withShortDescription(String shortDescription)
A short description of the rule.
|
public void setRuleId(String ruleId)
The ID of the rule.
ruleId - The ID of the rule.public String getRuleId()
The ID of the rule.
public RuleMetadata withRuleId(String ruleId)
The ID of the rule.
ruleId - The ID of the rule.public void setRuleName(String ruleName)
The name of the rule.
ruleName - The name of the rule.public String getRuleName()
The name of the rule.
public RuleMetadata withRuleName(String ruleName)
The name of the rule.
ruleName - The name of the rule.public void setShortDescription(String shortDescription)
A short description of the rule.
shortDescription - A short description of the rule.public String getShortDescription()
A short description of the rule.
public RuleMetadata withShortDescription(String shortDescription)
A short description of the rule.
shortDescription - A short description of the rule.public void setLongDescription(String longDescription)
A long description of the rule.
longDescription - A long description of the rule.public String getLongDescription()
A long description of the rule.
public RuleMetadata withLongDescription(String longDescription)
A long description of the rule.
longDescription - A long description of the rule.public List<String> getRuleTags()
Tags that are associated with the rule.
public void setRuleTags(Collection<String> ruleTags)
Tags that are associated with the rule.
ruleTags - Tags that are associated with the rule.public RuleMetadata withRuleTags(String... ruleTags)
Tags that are associated with the rule.
NOTE: This method appends the values to the existing list (if any). Use
setRuleTags(java.util.Collection) or withRuleTags(java.util.Collection) if you want to override
the existing values.
ruleTags - Tags that are associated with the rule.public RuleMetadata withRuleTags(Collection<String> ruleTags)
Tags that are associated with the rule.
ruleTags - Tags that are associated with the rule.public String toString()
toString in class ObjectObject.toString()public RuleMetadata clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.