Class: AWSCDK::Route53::MxRecordValue

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
route53/mx_record_value.rb

Overview

Properties for a MX record value.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(host_name:, priority:) ⇒ MxRecordValue

Returns a new instance of MxRecordValue.

Parameters:

  • host_name (String)

    The mail server host name.

  • priority (Numeric)

    The priority.



9
10
11
12
13
14
# File 'route53/mx_record_value.rb', line 9

def initialize(host_name:, priority:)
  @host_name = host_name
  Jsii::Type.check_type(@host_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "hostName")
  @priority = priority
  Jsii::Type.check_type(@priority, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "priority")
end

Instance Attribute Details

#host_nameString (readonly)

The mail server host name.

Returns:

  • (String)


19
20
21
# File 'route53/mx_record_value.rb', line 19

def host_name
  @host_name
end

#priorityNumeric (readonly)

The priority.

Returns:

  • (Numeric)


23
24
25
# File 'route53/mx_record_value.rb', line 23

def priority
  @priority
end

Class Method Details

.jsii_propertiesObject



25
26
27
28
29
30
# File 'route53/mx_record_value.rb', line 25

def self.jsii_properties
  {
    :host_name => "hostName",
    :priority => "priority",
  }
end

Instance Method Details

#to_jsiiObject



32
33
34
35
36
37
38
39
# File 'route53/mx_record_value.rb', line 32

def to_jsii
  result = {}
  result.merge!({
    "hostName" => @host_name,
    "priority" => @priority,
  })
  result.compact
end