Interface DnsConfigChange.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<DnsConfigChange.Builder,
,DnsConfigChange> SdkBuilder<DnsConfigChange.Builder,
,DnsConfigChange> SdkPojo
- Enclosing class:
DnsConfigChange
public static interface DnsConfigChange.Builder
extends SdkPojo, CopyableBuilder<DnsConfigChange.Builder,DnsConfigChange>
-
Method Summary
Modifier and TypeMethodDescriptiondnsRecords
(Collection<DnsRecord> dnsRecords) An array that contains oneDnsRecord
object for each Route 53 record that you want Cloud Map to create when you register an instance.dnsRecords
(Consumer<DnsRecord.Builder>... dnsRecords) An array that contains oneDnsRecord
object for each Route 53 record that you want Cloud Map to create when you register an instance.dnsRecords
(DnsRecord... dnsRecords) An array that contains oneDnsRecord
object for each Route 53 record that you want Cloud Map to create when you register an instance.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
dnsRecords
An array that contains one
DnsRecord
object for each Route 53 record that you want Cloud Map to create when you register an instance.- Parameters:
dnsRecords
- An array that contains oneDnsRecord
object for each Route 53 record that you want Cloud Map to create when you register an instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
dnsRecords
An array that contains one
DnsRecord
object for each Route 53 record that you want Cloud Map to create when you register an instance.- Parameters:
dnsRecords
- An array that contains oneDnsRecord
object for each Route 53 record that you want Cloud Map to create when you register an instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
dnsRecords
An array that contains one
This is a convenience method that creates an instance of theDnsRecord
object for each Route 53 record that you want Cloud Map to create when you register an instance.DnsRecord.Builder
avoiding the need to create one manually viaDnsRecord.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed todnsRecords(List<DnsRecord>)
.- Parameters:
dnsRecords
- a consumer that will call methods onDnsRecord.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-