Class: AWSCDK::IoT::CfnTopicRule::AssetPropertyVariantProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::IoT::CfnTopicRule::AssetPropertyVariantProperty
- Defined in:
- io_t/cfn_topic_rule.rb
Overview
Contains an asset property value (of a single type).
Instance Attribute Summary collapse
-
#boolean_value ⇒ String?
readonly
Optional.
-
#double_value ⇒ String?
readonly
Optional.
-
#integer_value ⇒ String?
readonly
Optional.
-
#string_value ⇒ String?
readonly
Optional.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(boolean_value: nil, double_value: nil, integer_value: nil, string_value: nil) ⇒ AssetPropertyVariantProperty
constructor
A new instance of AssetPropertyVariantProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(boolean_value: nil, double_value: nil, integer_value: nil, string_value: nil) ⇒ AssetPropertyVariantProperty
Returns a new instance of AssetPropertyVariantProperty.
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_value ⇒ String? (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_value ⇒ String? (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_value ⇒ String? (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_value ⇒ String? (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_properties ⇒ Object
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_jsii ⇒ Object
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 |