Class: AWSCDK::IoT::CfnTopicRule::AssetPropertyVariantProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
io_t/cfn_topic_rule.rb

Overview

Contains an asset property value (of a single type).

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(boolean_value: nil, double_value: nil, integer_value: nil, string_value: nil) ⇒ AssetPropertyVariantProperty

Returns a new instance of AssetPropertyVariantProperty.

Parameters:

  • boolean_value (String, nil) (defaults to: nil)

    Optional.

  • double_value (String, nil) (defaults to: nil)

    Optional.

  • integer_value (String, nil) (defaults to: nil)

    Optional.

  • string_value (String, nil) (defaults to: nil)

    Optional.



924
925
926
927
928
929
930
931
932
933
# File 'io_t/cfn_topic_rule.rb', line 924

def initialize(boolean_value: nil, double_value: nil, integer_value: nil, string_value: nil)
  @boolean_value = boolean_value
  Jsii::Type.check_type(@boolean_value, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "booleanValue") unless @boolean_value.nil?
  @double_value = double_value
  Jsii::Type.check_type(@double_value, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "doubleValue") unless @double_value.nil?
  @integer_value = integer_value
  Jsii::Type.check_type(@integer_value, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "integerValue") unless @integer_value.nil?
  @string_value = string_value
  Jsii::Type.check_type(@string_value, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "stringValue") unless @string_value.nil?
end

Instance Attribute Details

#boolean_valueString? (readonly)

Optional.

A string that contains the boolean value ( true or false ) of the value entry. Accepts substitution templates.



941
942
943
# File 'io_t/cfn_topic_rule.rb', line 941

def boolean_value
  @boolean_value
end

#double_valueString? (readonly)

Optional.

A string that contains the double value of the value entry. Accepts substitution templates.



948
949
950
# File 'io_t/cfn_topic_rule.rb', line 948

def double_value
  @double_value
end

#integer_valueString? (readonly)

Optional.

A string that contains the integer value of the value entry. Accepts substitution templates.



955
956
957
# File 'io_t/cfn_topic_rule.rb', line 955

def integer_value
  @integer_value
end

#string_valueString? (readonly)

Optional.

The string value of the value entry. Accepts substitution templates.



962
963
964
# File 'io_t/cfn_topic_rule.rb', line 962

def string_value
  @string_value
end

Class Method Details

.jsii_propertiesObject



964
965
966
967
968
969
970
971
# File 'io_t/cfn_topic_rule.rb', line 964

def self.jsii_properties
  {
    :boolean_value => "booleanValue",
    :double_value => "doubleValue",
    :integer_value => "integerValue",
    :string_value => "stringValue",
  }
end

Instance Method Details

#to_jsiiObject



973
974
975
976
977
978
979
980
981
982
# File 'io_t/cfn_topic_rule.rb', line 973

def to_jsii
  result = {}
  result.merge!({
    "booleanValue" => @boolean_value,
    "doubleValue" => @double_value,
    "integerValue" => @integer_value,
    "stringValue" => @string_value,
  })
  result.compact
end