Class: AWSCDK::SNS::BetweenCondition
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::SNS::BetweenCondition
- Defined in:
- sns/between_condition.rb
Overview
Between condition for a numeric attribute.
Instance Attribute Summary collapse
-
#start ⇒ Numeric
readonly
The start value.
-
#stop ⇒ Numeric
readonly
The stop value.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(start:, stop:) ⇒ BetweenCondition
constructor
A new instance of BetweenCondition.
- #to_jsii ⇒ Object
Constructor Details
#initialize(start:, stop:) ⇒ BetweenCondition
Returns a new instance of BetweenCondition.
9 10 11 12 13 14 |
# File 'sns/between_condition.rb', line 9 def initialize(start:, stop:) @start = start Jsii::Type.check_type(@start, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "start") @stop = stop Jsii::Type.check_type(@stop, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "stop") end |
Instance Attribute Details
#start ⇒ Numeric (readonly)
The start value.
19 20 21 |
# File 'sns/between_condition.rb', line 19 def start @start end |
#stop ⇒ Numeric (readonly)
The stop value.
23 24 25 |
# File 'sns/between_condition.rb', line 23 def stop @stop end |
Class Method Details
.jsii_properties ⇒ Object
25 26 27 28 29 30 |
# File 'sns/between_condition.rb', line 25 def self.jsii_properties { :start => "start", :stop => "stop", } end |
Instance Method Details
#to_jsii ⇒ Object
32 33 34 35 36 37 38 39 |
# File 'sns/between_condition.rb', line 32 def to_jsii result = {} result.merge!({ "start" => @start, "stop" => @stop, }) result.compact end |