@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. For more information about this rule, see Using Constributor Insights to analyze high-cardinality data in the Amazon CloudWatch User Guide.
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.
|
Boolean |
getManagedRule()
An optional built-in rule that Amazon Web Services manages.
|
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() |
Boolean |
isManagedRule()
An optional built-in rule that Amazon Web Services manages.
|
void |
setDefinition(String definition)
The definition of the rule, as a JSON object.
|
void |
setManagedRule(Boolean managedRule)
An optional built-in rule that Amazon Web Services manages.
|
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 |
withManagedRule(Boolean managedRule)
An optional built-in rule that Amazon Web Services manages.
|
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 managed
rules, this is {"Name": "ServiceLogRule", "Version": 1}
schema
- For rules that you create, this is always {"Name": "CloudWatchLogRule", "Version": 1}
. For
managed rules, this is {"Name": "ServiceLogRule", "Version": 1}
public String getSchema()
For rules that you create, this is always {"Name": "CloudWatchLogRule", "Version": 1}
. For managed
rules, this is {"Name": "ServiceLogRule", "Version": 1}
{"Name": "CloudWatchLogRule", "Version": 1}
. For
managed 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 managed
rules, this is {"Name": "ServiceLogRule", "Version": 1}
schema
- For rules that you create, this is always {"Name": "CloudWatchLogRule", "Version": 1}
. For
managed 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 void setManagedRule(Boolean managedRule)
An optional built-in rule that Amazon Web Services manages.
managedRule
- An optional built-in rule that Amazon Web Services manages.public Boolean getManagedRule()
An optional built-in rule that Amazon Web Services manages.
public InsightRule withManagedRule(Boolean managedRule)
An optional built-in rule that Amazon Web Services manages.
managedRule
- An optional built-in rule that Amazon Web Services manages.public Boolean isManagedRule()
An optional built-in rule that Amazon Web Services manages.
public String toString()
toString
in class Object
Object.toString()
public InsightRule clone()
Copyright © 2024. All rights reserved.