Class: Aws::CloudWatchEvidently::Types::VariableValue

Inherits:
Struct
  • Object
show all
Includes:
Structure, Structure::Union
Defined in:
lib/aws-sdk-cloudwatchevidently/types.rb

Overview

Note:

VariableValue is a union - when making an API calls you must set exactly one of the members.

Note:

VariableValue is a union - when returned from an API call exactly one value will be set and the returned type will be a subclass of VariableValue corresponding to the set member.

The value assigned to a feature variation. This structure must contain exactly one field. It can be ‘boolValue`, `doubleValue`, `longValue`, or `stringValue`.

Direct Known Subclasses

BoolValue, DoubleValue, LongValue, StringValue, Unknown

Defined Under Namespace

Classes: BoolValue, DoubleValue, LongValue, StringValue, Unknown

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#bool_valueBoolean

If this feature uses the Boolean variation type, this field contains the Boolean value of this variation.

Returns:

  • (Boolean)


3591
3592
3593
3594
3595
3596
3597
3598
3599
3600
3601
3602
3603
3604
3605
3606
# File 'lib/aws-sdk-cloudwatchevidently/types.rb', line 3591

class VariableValue < Struct.new(
  :bool_value,
  :double_value,
  :long_value,
  :string_value,
  :unknown)
  SENSITIVE = []
  include Aws::Structure
  include Aws::Structure::Union

  class BoolValue < VariableValue; end
  class DoubleValue < VariableValue; end
  class LongValue < VariableValue; end
  class StringValue < VariableValue; end
  class Unknown < VariableValue; end
end

#double_valueFloat

If this feature uses the double integer variation type, this field contains the double integer value of this variation.

Returns:

  • (Float)


3591
3592
3593
3594
3595
3596
3597
3598
3599
3600
3601
3602
3603
3604
3605
3606
# File 'lib/aws-sdk-cloudwatchevidently/types.rb', line 3591

class VariableValue < Struct.new(
  :bool_value,
  :double_value,
  :long_value,
  :string_value,
  :unknown)
  SENSITIVE = []
  include Aws::Structure
  include Aws::Structure::Union

  class BoolValue < VariableValue; end
  class DoubleValue < VariableValue; end
  class LongValue < VariableValue; end
  class StringValue < VariableValue; end
  class Unknown < VariableValue; end
end

#long_valueInteger

If this feature uses the long variation type, this field contains the long value of this variation.

Returns:

  • (Integer)


3591
3592
3593
3594
3595
3596
3597
3598
3599
3600
3601
3602
3603
3604
3605
3606
# File 'lib/aws-sdk-cloudwatchevidently/types.rb', line 3591

class VariableValue < Struct.new(
  :bool_value,
  :double_value,
  :long_value,
  :string_value,
  :unknown)
  SENSITIVE = []
  include Aws::Structure
  include Aws::Structure::Union

  class BoolValue < VariableValue; end
  class DoubleValue < VariableValue; end
  class LongValue < VariableValue; end
  class StringValue < VariableValue; end
  class Unknown < VariableValue; end
end

#string_valueString

If this feature uses the string variation type, this field contains the string value of this variation.

Returns:

  • (String)


3591
3592
3593
3594
3595
3596
3597
3598
3599
3600
3601
3602
3603
3604
3605
3606
# File 'lib/aws-sdk-cloudwatchevidently/types.rb', line 3591

class VariableValue < Struct.new(
  :bool_value,
  :double_value,
  :long_value,
  :string_value,
  :unknown)
  SENSITIVE = []
  include Aws::Structure
  include Aws::Structure::Union

  class BoolValue < VariableValue; end
  class DoubleValue < VariableValue; end
  class LongValue < VariableValue; end
  class StringValue < VariableValue; end
  class Unknown < VariableValue; end
end

#unknownObject

Returns the value of attribute unknown

Returns:

  • (Object)

    the current value of unknown



3591
3592
3593
# File 'lib/aws-sdk-cloudwatchevidently/types.rb', line 3591

def unknown
  @unknown
end