Class: AWSCDK::IoTTwinMaker::CfnComponentType::DataValueProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::IoTTwinMaker::CfnComponentType::DataValueProperty
- Defined in:
- io_t_twin_maker/cfn_component_type.rb
Overview
An object that specifies a value for a property.
Instance Attribute Summary collapse
-
#boolean_value ⇒ Boolean, ...
readonly
A boolean value.
-
#double_value ⇒ Numeric?
readonly
A double value.
-
#expression ⇒ String?
readonly
An expression that produces the value.
-
#integer_value ⇒ Numeric?
readonly
An integer value.
-
#list_value ⇒ AWSCDK::IResolvable, ...
readonly
A list of multiple values.
-
#long_value ⇒ Numeric?
readonly
A long value.
-
#map_value ⇒ AWSCDK::IResolvable, ...
readonly
An object that maps strings to multiple
DataValueobjects. -
#relationship_value ⇒ Object?
readonly
A value that relates a component to another component.
-
#string_value ⇒ String?
readonly
A string value.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(boolean_value: nil, double_value: nil, expression: nil, integer_value: nil, list_value: nil, long_value: nil, map_value: nil, relationship_value: nil, string_value: nil) ⇒ DataValueProperty
constructor
A new instance of DataValueProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(boolean_value: nil, double_value: nil, expression: nil, integer_value: nil, list_value: nil, long_value: nil, map_value: nil, relationship_value: nil, string_value: nil) ⇒ DataValueProperty
Returns a new instance of DataValueProperty.
854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 |
# File 'io_t_twin_maker/cfn_component_type.rb', line 854 def initialize(boolean_value: nil, double_value: nil, expression: nil, integer_value: nil, list_value: nil, long_value: nil, map_value: nil, relationship_value: nil, string_value: nil) @boolean_value = boolean_value Jsii::Type.check_type(@boolean_value, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3sicHJpbWl0aXZlIjoiYm9vbGVhbiJ9LHsiZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifV19fQ==")), "booleanValue") unless @boolean_value.nil? @double_value = double_value Jsii::Type.check_type(@double_value, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "doubleValue") unless @double_value.nil? @expression = expression Jsii::Type.check_type(@expression, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "expression") unless @expression.nil? @integer_value = integer_value Jsii::Type.check_type(@integer_value, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "integerValue") unless @integer_value.nil? @list_value = list_value Jsii::Type.check_type(@list_value, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfaW90dHdpbm1ha2VyLkNmbkNvbXBvbmVudFR5cGUuRGF0YVZhbHVlUHJvcGVydHkifV19fSwia2luZCI6ImFycmF5In19XX19")), "listValue") unless @list_value.nil? @long_value = long_value Jsii::Type.check_type(@long_value, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "longValue") unless @long_value.nil? @map_value = map_value Jsii::Type.check_type(@map_value, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfaW90dHdpbm1ha2VyLkNmbkNvbXBvbmVudFR5cGUuRGF0YVZhbHVlUHJvcGVydHkifV19fSwia2luZCI6Im1hcCJ9fV19fQ==")), "mapValue") unless @map_value.nil? @relationship_value = relationship_value Jsii::Type.check_type(@relationship_value, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJhbnkifQ==")), "relationshipValue") unless @relationship_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 ⇒ Boolean, ... (readonly)
A boolean value.
879 880 881 |
# File 'io_t_twin_maker/cfn_component_type.rb', line 879 def boolean_value @boolean_value end |
#double_value ⇒ Numeric? (readonly)
A double value.
884 885 886 |
# File 'io_t_twin_maker/cfn_component_type.rb', line 884 def double_value @double_value end |
#expression ⇒ String? (readonly)
An expression that produces the value.
889 890 891 |
# File 'io_t_twin_maker/cfn_component_type.rb', line 889 def expression @expression end |
#integer_value ⇒ Numeric? (readonly)
An integer value.
894 895 896 |
# File 'io_t_twin_maker/cfn_component_type.rb', line 894 def integer_value @integer_value end |
#list_value ⇒ AWSCDK::IResolvable, ... (readonly)
A list of multiple values.
899 900 901 |
# File 'io_t_twin_maker/cfn_component_type.rb', line 899 def list_value @list_value end |
#long_value ⇒ Numeric? (readonly)
A long value.
904 905 906 |
# File 'io_t_twin_maker/cfn_component_type.rb', line 904 def long_value @long_value end |
#map_value ⇒ AWSCDK::IResolvable, ... (readonly)
An object that maps strings to multiple DataValue objects.
909 910 911 |
# File 'io_t_twin_maker/cfn_component_type.rb', line 909 def map_value @map_value end |
#relationship_value ⇒ Object? (readonly)
A value that relates a component to another component.
914 915 916 |
# File 'io_t_twin_maker/cfn_component_type.rb', line 914 def relationship_value @relationship_value end |
#string_value ⇒ String? (readonly)
A string value.
919 920 921 |
# File 'io_t_twin_maker/cfn_component_type.rb', line 919 def string_value @string_value end |
Class Method Details
.jsii_properties ⇒ Object
921 922 923 924 925 926 927 928 929 930 931 932 933 |
# File 'io_t_twin_maker/cfn_component_type.rb', line 921 def self.jsii_properties { :boolean_value => "booleanValue", :double_value => "doubleValue", :expression => "expression", :integer_value => "integerValue", :list_value => "listValue", :long_value => "longValue", :map_value => "mapValue", :relationship_value => "relationshipValue", :string_value => "stringValue", } end |
Instance Method Details
#to_jsii ⇒ Object
935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 |
# File 'io_t_twin_maker/cfn_component_type.rb', line 935 def to_jsii result = {} result.merge!({ "booleanValue" => @boolean_value, "doubleValue" => @double_value, "expression" => @expression, "integerValue" => @integer_value, "listValue" => @list_value, "longValue" => @long_value, "mapValue" => @map_value, "relationshipValue" => @relationship_value, "stringValue" => @string_value, }) result.compact end |