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