Class: AWSCDK::Connect::CfnHoursOfOperation::HoursOfOperationsIdentifierProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
connect/cfn_hours_of_operation.rb

Overview

Identifier for hours of operation.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(id:, name: nil) ⇒ HoursOfOperationsIdentifierProperty

Returns a new instance of HoursOfOperationsIdentifierProperty.

Parameters:

  • id (String)

    The identifier for the hours of operation.

  • name (String, nil) (defaults to: nil)

    The name of the hours of operation.



874
875
876
877
878
879
# File 'connect/cfn_hours_of_operation.rb', line 874

def initialize(id:, name: nil)
  @id = id
  Jsii::Type.check_type(@id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "id")
  @name = name
  Jsii::Type.check_type(@name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "name") unless @name.nil?
end

Instance Attribute Details

#idString (readonly)

The identifier for the hours of operation.



885
886
887
# File 'connect/cfn_hours_of_operation.rb', line 885

def id
  @id
end

#nameString? (readonly)

The name of the hours of operation.



890
891
892
# File 'connect/cfn_hours_of_operation.rb', line 890

def name
  @name
end

Class Method Details

.jsii_propertiesObject



892
893
894
895
896
897
# File 'connect/cfn_hours_of_operation.rb', line 892

def self.jsii_properties
  {
    :id => "id",
    :name => "name",
  }
end

Instance Method Details

#to_jsiiObject



899
900
901
902
903
904
905
906
# File 'connect/cfn_hours_of_operation.rb', line 899

def to_jsii
  result = {}
  result.merge!({
    "id" => @id,
    "name" => @name,
  })
  result.compact
end