@Generated(value="software.amazon.awssdk:codegen") public final class InsightRule extends Object implements SdkPojo, Serializable, ToCopyableBuilder<InsightRule.Builder,InsightRule>
This structure contains the definition for a Contributor Insights rule.
| Modifier and Type | Class and Description |
|---|---|
static interface |
InsightRule.Builder |
| Modifier and Type | Method and Description |
|---|---|
static InsightRule.Builder |
builder() |
String |
definition()
The definition of the rule, as a JSON object.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
String |
name()
The name of the rule.
|
String |
schema()
For rules that you create, this is always
{"Name": "CloudWatchLogRule", "Version": 1}. |
List<SdkField<?>> |
sdkFields() |
static Class<? extends InsightRule.Builder> |
serializableBuilderClass() |
String |
state()
Indicates whether the rule is enabled or disabled.
|
InsightRule.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic String name()
The name of the rule.
public String state()
Indicates whether the rule is enabled or disabled.
public String schema()
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 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.
public InsightRule.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<InsightRule.Builder,InsightRule>public static InsightRule.Builder builder()
public static Class<? extends InsightRule.Builder> serializableBuilderClass()
public boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic String toString()
Copyright © 2020. All rights reserved.