@Generated(value="software.amazon.awssdk:codegen") public final class InsightRuleContributor extends Object implements SdkPojo, Serializable, ToCopyableBuilder<InsightRuleContributor.Builder,InsightRuleContributor>
One of the unique contributors found by a Contributor Insights rule. If the rule contains multiple keys, then a unique contributor is a unique combination of values from all the keys in the rule.
If the rule contains a single key, then each unique contributor is each unique value for this key.
For more information, see GetInsightRuleReport.
Modifier and Type | Class and Description |
---|---|
static interface |
InsightRuleContributor.Builder |
Modifier and Type | Method and Description |
---|---|
Double |
approximateAggregateValue()
An approximation of the aggregate value that comes from this contributor.
|
static InsightRuleContributor.Builder |
builder() |
List<InsightRuleContributorDatapoint> |
datapoints()
An array of the data points where this contributor is present.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
boolean |
hasDatapoints()
For responses, this returns true if the service returned a value for the Datapoints property.
|
int |
hashCode() |
boolean |
hasKeys()
For responses, this returns true if the service returned a value for the Keys property.
|
List<String> |
keys()
One of the log entry field keywords that is used to define contributors for this rule.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends InsightRuleContributor.Builder> |
serializableBuilderClass() |
InsightRuleContributor.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
copy
public final boolean hasKeys()
isEmpty()
method on the property). This is useful
because the SDK will never return a null collection or map, but you may need to differentiate between the service
returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true
if a value for the property was specified in the request builder, and false if a value was not specified.public final List<String> keys()
One of the log entry field keywords that is used to define contributors for this rule.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasKeys()
method.
public final Double approximateAggregateValue()
An approximation of the aggregate value that comes from this contributor.
public final boolean hasDatapoints()
isEmpty()
method on the property). This is
useful because the SDK will never return a null collection or map, but you may need to differentiate between the
service returning nothing (or null) and the service returning an empty collection or map. For requests, this
returns true if a value for the property was specified in the request builder, and false if a value was not
specified.public final List<InsightRuleContributorDatapoint> datapoints()
An array of the data points where this contributor is present. Only the data points when this contributor appeared are included in the array.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasDatapoints()
method.
public InsightRuleContributor.Builder toBuilder()
toBuilder
in interface ToCopyableBuilder<InsightRuleContributor.Builder,InsightRuleContributor>
public static InsightRuleContributor.Builder builder()
public static Class<? extends InsightRuleContributor.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields
in interface SdkPojo
public final String toString()
Copyright © 2023. All rights reserved.