Class: AWSCDK::Pinpoint::CfnInAppTemplate::BodyConfigProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Pinpoint::CfnInAppTemplate::BodyConfigProperty
- Defined in:
- pinpoint/cfn_in_app_template.rb
Overview
Specifies the configuration of the main body text of the in-app message.
Instance Attribute Summary collapse
-
#alignment ⇒ String?
readonly
The text alignment of the main body text of the message.
-
#body ⇒ String?
readonly
The main body text of the message.
-
#text_color ⇒ String?
readonly
The color of the body text, expressed as a hex color code (such as #000000 for black).
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(alignment: nil, body: nil, text_color: nil) ⇒ BodyConfigProperty
constructor
A new instance of BodyConfigProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(alignment: nil, body: nil, text_color: nil) ⇒ BodyConfigProperty
Returns a new instance of BodyConfigProperty.
613 614 615 616 617 618 619 620 |
# File 'pinpoint/cfn_in_app_template.rb', line 613 def initialize(alignment: nil, body: nil, text_color: nil) @alignment = alignment Jsii::Type.check_type(@alignment, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "alignment") unless @alignment.nil? @body = body Jsii::Type.check_type(@body, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "body") unless @body.nil? @text_color = text_color Jsii::Type.check_type(@text_color, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "textColor") unless @text_color.nil? end |
Instance Attribute Details
#alignment ⇒ String? (readonly)
The text alignment of the main body text of the message.
Acceptable values: LEFT , CENTER , RIGHT .
628 629 630 |
# File 'pinpoint/cfn_in_app_template.rb', line 628 def alignment @alignment end |
#body ⇒ String? (readonly)
The main body text of the message.
633 634 635 |
# File 'pinpoint/cfn_in_app_template.rb', line 633 def body @body end |
#text_color ⇒ String? (readonly)
The color of the body text, expressed as a hex color code (such as #000000 for black).
638 639 640 |
# File 'pinpoint/cfn_in_app_template.rb', line 638 def text_color @text_color end |
Class Method Details
.jsii_properties ⇒ Object
640 641 642 643 644 645 646 |
# File 'pinpoint/cfn_in_app_template.rb', line 640 def self.jsii_properties { :alignment => "alignment", :body => "body", :text_color => "textColor", } end |
Instance Method Details
#to_jsii ⇒ Object
648 649 650 651 652 653 654 655 656 |
# File 'pinpoint/cfn_in_app_template.rb', line 648 def to_jsii result = {} result.merge!({ "alignment" => @alignment, "body" => @body, "textColor" => @text_color, }) result.compact end |