Class MetricAttribute
- java.lang.Object
-
- software.amazon.awssdk.services.personalize.model.MetricAttribute
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<MetricAttribute.Builder,MetricAttribute>
@Generated("software.amazon.awssdk:codegen") public final class MetricAttribute extends Object implements SdkPojo, Serializable, ToCopyableBuilder<MetricAttribute.Builder,MetricAttribute>
Contains information on a metric that a metric attribution reports on. For more information, see Measuring impact of recommendations.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceMetricAttribute.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static MetricAttribute.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)StringeventType()The metric's event type.Stringexpression()The attribute's expression.<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()StringmetricName()The metric's name.List<SdkField<?>>sdkFields()static Class<? extends MetricAttribute.Builder>serializableBuilderClass()MetricAttribute.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
eventType
public final String eventType()
The metric's event type.
- Returns:
- The metric's event type.
-
metricName
public final String metricName()
The metric's name. The name helps you identify the metric in Amazon CloudWatch or Amazon S3.
- Returns:
- The metric's name. The name helps you identify the metric in Amazon CloudWatch or Amazon S3.
-
expression
public final String expression()
The attribute's expression. Available functions are
SUM()orSAMPLECOUNT(). For SUM() functions, provide the dataset type (either Interactions or Items) and column to sum as a parameter. For example SUM(Items.PRICE).- Returns:
- The attribute's expression. Available functions are
SUM()orSAMPLECOUNT(). For SUM() functions, provide the dataset type (either Interactions or Items) and column to sum as a parameter. For example SUM(Items.PRICE).
-
toBuilder
public MetricAttribute.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<MetricAttribute.Builder,MetricAttribute>
-
builder
public static MetricAttribute.Builder builder()
-
serializableBuilderClass
public static Class<? extends MetricAttribute.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
-