Class: AWSCDK::QBusiness::CfnDataSource::DocumentAttributeValueProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::QBusiness::CfnDataSource::DocumentAttributeValueProperty
- Defined in:
- q_business/cfn_data_source.rb
Overview
The value of a document attribute.
You can only provide one value for a document attribute.
Instance Attribute Summary collapse
-
#date_value ⇒ String?
readonly
A date expressed as an ISO 8601 string.
-
#long_value ⇒ Numeric?
readonly
A long integer value.
-
#string_list_value ⇒ Array<String>?
readonly
A list of strings.
-
#string_value ⇒ String?
readonly
A string.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(date_value: nil, long_value: nil, string_list_value: nil, string_value: nil) ⇒ DocumentAttributeValueProperty
constructor
A new instance of DocumentAttributeValueProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(date_value: nil, long_value: nil, string_list_value: nil, string_value: nil) ⇒ DocumentAttributeValueProperty
Returns a new instance of DocumentAttributeValueProperty.
911 912 913 914 915 916 917 918 919 920 |
# File 'q_business/cfn_data_source.rb', line 911 def initialize(date_value: nil, long_value: nil, string_list_value: nil, string_value: nil) @date_value = date_value Jsii::Type.check_type(@date_value, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "dateValue") unless @date_value.nil? @long_value = long_value Jsii::Type.check_type(@long_value, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "longValue") unless @long_value.nil? @string_list_value = string_list_value Jsii::Type.check_type(@string_list_value, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "stringListValue") unless @string_list_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
#date_value ⇒ String? (readonly)
A date expressed as an ISO 8601 string.
It's important for the time zone to be included in the ISO 8601 date-time format. For example, 2012-03-25T12:30:10+01:00 is the ISO 8601 date-time format for March 25th 2012 at 12:30PM (plus 10 seconds) in Central European Time.
928 929 930 |
# File 'q_business/cfn_data_source.rb', line 928 def date_value @date_value end |
#long_value ⇒ Numeric? (readonly)
A long integer value.
933 934 935 |
# File 'q_business/cfn_data_source.rb', line 933 def long_value @long_value end |
#string_list_value ⇒ Array<String>? (readonly)
A list of strings.
938 939 940 |
# File 'q_business/cfn_data_source.rb', line 938 def string_list_value @string_list_value end |
#string_value ⇒ String? (readonly)
A string.
943 944 945 |
# File 'q_business/cfn_data_source.rb', line 943 def string_value @string_value end |
Class Method Details
.jsii_properties ⇒ Object
945 946 947 948 949 950 951 952 |
# File 'q_business/cfn_data_source.rb', line 945 def self.jsii_properties { :date_value => "dateValue", :long_value => "longValue", :string_list_value => "stringListValue", :string_value => "stringValue", } end |
Instance Method Details
#to_jsii ⇒ Object
954 955 956 957 958 959 960 961 962 963 |
# File 'q_business/cfn_data_source.rb', line 954 def to_jsii result = {} result.merge!({ "dateValue" => @date_value, "longValue" => @long_value, "stringListValue" => @string_list_value, "stringValue" => @string_value, }) result.compact end |