Interface CfnFeature.VariationObjectProperty

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
CfnFeature.VariationObjectProperty.Jsii$Proxy
Enclosing class:
CfnFeature

@Stability(Stable) public static interface CfnFeature.VariationObjectProperty extends software.amazon.jsii.JsiiSerializable
This structure contains the name and variation value of one variation of a feature.

It can contain only one of the following parameters: BooleanValue , DoubleValue , LongValue or StringValue .

Example:

 // The code below shows an example of how to instantiate this type.
 // The values are placeholders you should change.
 import software.amazon.awscdk.services.evidently.*;
 VariationObjectProperty variationObjectProperty = VariationObjectProperty.builder()
         .variationName("variationName")
         // the properties below are optional
         .booleanValue(false)
         .doubleValue(123)
         .longValue(123)
         .stringValue("stringValue")
         .build();
 
  • Method Details

    • getVariationName

      @Stability(Stable) @NotNull String getVariationName()
      A name for the variation.

      It can include up to 127 characters.

    • getBooleanValue

      @Stability(Stable) @Nullable default Object getBooleanValue()
      The value assigned to this variation, if the variation type is boolean.
    • getDoubleValue

      @Stability(Stable) @Nullable default Number getDoubleValue()
      The value assigned to this variation, if the variation type is a double.
    • getLongValue

      @Stability(Stable) @Nullable default Number getLongValue()
      The value assigned to this variation, if the variation type is a long.
    • getStringValue

      @Stability(Stable) @Nullable default String getStringValue()
      The value assigned to this variation, if the variation type is a string.
    • builder

      @Stability(Stable) static CfnFeature.VariationObjectProperty.Builder builder()
      Returns:
      a CfnFeature.VariationObjectProperty.Builder of CfnFeature.VariationObjectProperty