Class MxRecordValue.Builder
java.lang.Object
software.amazon.awscdk.services.route53.MxRecordValue.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<MxRecordValue>
- Enclosing interface:
MxRecordValue
@Stability(Stable)
public static final class MxRecordValue.Builder
extends Object
implements software.amazon.jsii.Builder<MxRecordValue>
A builder for
MxRecordValue-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofMxRecordValue.getHostName()Sets the value ofMxRecordValue.getPriority()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
hostName
Sets the value ofMxRecordValue.getHostName()- Parameters:
hostName- The mail server host name. This parameter is required.- Returns:
this
-
priority
Sets the value ofMxRecordValue.getPriority()- Parameters:
priority- The priority. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<MxRecordValue>- Returns:
- a new instance of
MxRecordValue - Throws:
NullPointerException- if any required attribute was not provided
-