# VariationObjectProperty

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` .

- Source: Generated at build time
- Type last changed: v2.93.0 · 23 Aug 2023

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_evidently as evidently } from 'aws-cdk-lib';
const variationObjectProperty: evidently.CfnFeature.VariationObjectProperty = {
  variationName: 'variationName',

  // the properties below are optional
  booleanValue: false,
  doubleValue: 123,
  longValue: 123,
  stringValue: 'stringValue',
};
```

Python:

```python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_evidently as evidently

variation_object_property = evidently.CfnFeature.VariationObjectProperty(
    variation_name="variationName",

    # the properties below are optional
    boolean_value=False,
    double_value=123,
    long_value=123,
    string_value="stringValue"
)
```

Java:

```java
// 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();
```

C# / .NET:

```csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Evidently;

var variationObjectProperty = new VariationObjectProperty {
    VariationName = "variationName",

    // the properties below are optional
    BooleanValue = false,
    DoubleValue = 123,
    LongValue = 123,
    StringValue = "stringValue"
};
```

Golang:

```go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

variationObjectProperty := &VariationObjectProperty{
	VariationName: jsii.String("variationName"),

	// the properties below are optional
	BooleanValue: jsii.Boolean(false),
	DoubleValue: jsii.Number(123),
	LongValue: jsii.Number(123),
	StringValue: jsii.String("stringValue"),
}
```

## Properties

- `booleanValue`: boolean | [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) — The value assigned to this variation, if the variation type is boolean.

- `doubleValue`: number — The value assigned to this variation, if the variation type is a double.

- `longValue`: number — The value assigned to this variation, if the variation type is a long.

- `stringValue`: string — The value assigned to this variation, if the variation type is a string.

- `variationName`: string (required) — A name for the variation.

  It can include up to 127 characters.
