Class: AWSCDK::SNS::BetweenCondition

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
sns/between_condition.rb

Overview

Between condition for a numeric attribute.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(start:, stop:) ⇒ BetweenCondition

Returns a new instance of BetweenCondition.

Parameters:

  • start (Numeric)

    The start value.

  • stop (Numeric)

    The stop value.



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

#startNumeric (readonly)

The start value.

Returns:

  • (Numeric)


19
20
21
# File 'sns/between_condition.rb', line 19

def start
  @start
end

#stopNumeric (readonly)

The stop value.

Returns:

  • (Numeric)


23
24
25
# File 'sns/between_condition.rb', line 23

def stop
  @stop
end

Class Method Details

.jsii_propertiesObject



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_jsiiObject



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