@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class InsightRule extends Object implements Serializable, Cloneable
This structure contains the definition for a Contributor Insights rule.
Constructor and Description |
---|
InsightRule() |
Modifier and Type | Method and Description |
---|---|
InsightRule |
clone() |
boolean |
equals(Object obj) |
String |
getDefinition()
The definition of the rule, as a JSON object.
|
String |
getName()
The name of the rule.
|
String |
getSchema()
For rules that you create, this is always
{"Name": "CloudWatchLogRule", "Version": 1} . |
String |
getState()
Indicates whether the rule is enabled or disabled.
|
int |
hashCode() |
void |
setDefinition(String definition)
The definition of the rule, as a JSON object.
|
void |
setName(String name)
The name of the rule.
|
void |
setSchema(String schema)
For rules that you create, this is always
{"Name": "CloudWatchLogRule", "Version": 1} . |
void |
setState(String state)
Indicates whether the rule is enabled or disabled.
|
String |
toString()
Returns a string representation of this object.
|
InsightRule |
withDefinition(String definition)
The definition of the rule, as a JSON object.
|
InsightRule |
withName(String name)
The name of the rule.
|
InsightRule |
withSchema(String schema)
For rules that you create, this is always
{"Name": "CloudWatchLogRule", "Version": 1} . |
InsightRule |
withState(String state)
Indicates whether the rule is enabled or disabled.
|
public void setName(String name)
The name of the rule.
name
- The name of the rule.public String getName()
The name of the rule.
public InsightRule withName(String name)
The name of the rule.
name
- The name of the rule.public void setState(String state)
Indicates whether the rule is enabled or disabled.
state
- Indicates whether the rule is enabled or disabled.public String getState()
Indicates whether the rule is enabled or disabled.
public InsightRule withState(String state)
Indicates whether the rule is enabled or disabled.
state
- Indicates whether the rule is enabled or disabled.public void setSchema(String schema)
For rules that you create, this is always {"Name": "CloudWatchLogRule", "Version": 1}
. For built-in
rules, this is {"Name": "ServiceLogRule", "Version": 1}
schema
- For rules that you create, this is always {"Name": "CloudWatchLogRule", "Version": 1}
. For
built-in rules, this is {"Name": "ServiceLogRule", "Version": 1}
public String getSchema()
For rules that you create, this is always {"Name": "CloudWatchLogRule", "Version": 1}
. For built-in
rules, this is {"Name": "ServiceLogRule", "Version": 1}
{"Name": "CloudWatchLogRule", "Version": 1}
. For
built-in rules, this is {"Name": "ServiceLogRule", "Version": 1}
public InsightRule withSchema(String schema)
For rules that you create, this is always {"Name": "CloudWatchLogRule", "Version": 1}
. For built-in
rules, this is {"Name": "ServiceLogRule", "Version": 1}
schema
- For rules that you create, this is always {"Name": "CloudWatchLogRule", "Version": 1}
. For
built-in rules, this is {"Name": "ServiceLogRule", "Version": 1}
public void setDefinition(String definition)
The definition of the rule, as a JSON object. The definition contains the keywords used to define contributors, the value to aggregate on if this rule returns a sum instead of a count, and the filters. For details on the valid syntax, see Contributor Insights Rule Syntax.
definition
- The definition of the rule, as a JSON object. The definition contains the keywords used to define
contributors, the value to aggregate on if this rule returns a sum instead of a count, and the filters.
For details on the valid syntax, see Contributor Insights Rule Syntax.public String getDefinition()
The definition of the rule, as a JSON object. The definition contains the keywords used to define contributors, the value to aggregate on if this rule returns a sum instead of a count, and the filters. For details on the valid syntax, see Contributor Insights Rule Syntax.
public InsightRule withDefinition(String definition)
The definition of the rule, as a JSON object. The definition contains the keywords used to define contributors, the value to aggregate on if this rule returns a sum instead of a count, and the filters. For details on the valid syntax, see Contributor Insights Rule Syntax.
definition
- The definition of the rule, as a JSON object. The definition contains the keywords used to define
contributors, the value to aggregate on if this rule returns a sum instead of a count, and the filters.
For details on the valid syntax, see Contributor Insights Rule Syntax.public String toString()
toString
in class Object
Object.toString()
public InsightRule clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.