Class: AWSCDK::QBusiness::CfnDataAccessor::DocumentAttributeValueProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::QBusiness::CfnDataAccessor::DocumentAttributeValueProperty
- Defined in:
- q_business/cfn_data_accessor.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.
1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 |
# File 'q_business/cfn_data_accessor.rb', line 1004 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.
1021 1022 1023 |
# File 'q_business/cfn_data_accessor.rb', line 1021 def date_value @date_value end |
#long_value ⇒ Numeric? (readonly)
A long integer value.
1026 1027 1028 |
# File 'q_business/cfn_data_accessor.rb', line 1026 def long_value @long_value end |
#string_list_value ⇒ Array<String>? (readonly)
A list of strings.
1031 1032 1033 |
# File 'q_business/cfn_data_accessor.rb', line 1031 def string_list_value @string_list_value end |
#string_value ⇒ String? (readonly)
A string.
1036 1037 1038 |
# File 'q_business/cfn_data_accessor.rb', line 1036 def string_value @string_value end |
Class Method Details
.jsii_properties ⇒ Object
1038 1039 1040 1041 1042 1043 1044 1045 |
# File 'q_business/cfn_data_accessor.rb', line 1038 def self.jsii_properties { :date_value => "dateValue", :long_value => "longValue", :string_list_value => "stringListValue", :string_value => "stringValue", } end |
Instance Method Details
#to_jsii ⇒ Object
1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 |
# File 'q_business/cfn_data_accessor.rb', line 1047 def to_jsii result = {} result.merge!({ "dateValue" => @date_value, "longValue" => @long_value, "stringListValue" => @string_list_value, "stringValue" => @string_value, }) result.compact end |