Class: AWSCDK::CustomerProfiles::CfnSegmentDefinition::RangeOverrideProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
customer_profiles/cfn_segment_definition.rb

Overview

Overrides the original range on a calculated attribute definition.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(start:, unit:, _end: nil) ⇒ RangeOverrideProperty

Returns a new instance of RangeOverrideProperty.

Parameters:

  • start (Numeric)

    The start time of when to include objects.

  • unit (String)

    The unit for start and end.

  • _end (Numeric, nil) (defaults to: nil)

    The end time of when to include objects.



1363
1364
1365
1366
1367
1368
1369
1370
# File 'customer_profiles/cfn_segment_definition.rb', line 1363

def initialize(start:, unit:, _end: nil)
  @start = start
  Jsii::Type.check_type(@start, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "start")
  @unit = unit
  Jsii::Type.check_type(@unit, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "unit")
  @_end = _end
  Jsii::Type.check_type(@_end, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "end") unless @_end.nil?
end

Instance Attribute Details

#_endNumeric? (readonly)

The end time of when to include objects.



1386
1387
1388
# File 'customer_profiles/cfn_segment_definition.rb', line 1386

def _end
  @_end
end

#startNumeric (readonly)

The start time of when to include objects.



1376
1377
1378
# File 'customer_profiles/cfn_segment_definition.rb', line 1376

def start
  @start
end

#unitString (readonly)

The unit for start and end.



1381
1382
1383
# File 'customer_profiles/cfn_segment_definition.rb', line 1381

def unit
  @unit
end

Class Method Details

.jsii_propertiesObject



1388
1389
1390
1391
1392
1393
1394
# File 'customer_profiles/cfn_segment_definition.rb', line 1388

def self.jsii_properties
  {
    :start => "start",
    :unit => "unit",
    :_end => "end",
  }
end

Instance Method Details

#to_jsiiObject



1396
1397
1398
1399
1400
1401
1402
1403
1404
# File 'customer_profiles/cfn_segment_definition.rb', line 1396

def to_jsii
  result = {}
  result.merge!({
    "start" => @start,
    "unit" => @unit,
    "end" => @_end,
  })
  result.compact
end