@Generated(value="software.amazon.awssdk:codegen") public final class ServiceDiscovery extends Object implements SdkPojo, Serializable, ToCopyableBuilder<ServiceDiscovery.Builder,ServiceDiscovery>
An object that represents the service discovery information for a virtual node.
| Modifier and Type | Class and Description |
|---|---|
static interface |
ServiceDiscovery.Builder |
static class |
ServiceDiscovery.Type |
| Modifier and Type | Method and Description |
|---|---|
AwsCloudMapServiceDiscovery |
awsCloudMap()
Specifies any Cloud Map information for the virtual node.
|
static ServiceDiscovery.Builder |
builder() |
DnsServiceDiscovery |
dns()
Specifies the DNS information for the virtual node.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
static ServiceDiscovery |
fromAwsCloudMap(AwsCloudMapServiceDiscovery awsCloudMap)
Create an instance of this class with
awsCloudMap() initialized to the given value. |
static ServiceDiscovery |
fromAwsCloudMap(Consumer<AwsCloudMapServiceDiscovery.Builder> awsCloudMap)
Create an instance of this class with
awsCloudMap() initialized to the given value. |
static ServiceDiscovery |
fromDns(Consumer<DnsServiceDiscovery.Builder> dns)
Create an instance of this class with
dns() initialized to the given value. |
static ServiceDiscovery |
fromDns(DnsServiceDiscovery dns)
Create an instance of this class with
dns() initialized to the given value. |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
List<SdkField<?>> |
sdkFields() |
static Class<? extends ServiceDiscovery.Builder> |
serializableBuilderClass() |
ServiceDiscovery.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
ServiceDiscovery.Type |
type()
Retrieve an enum value representing which member of this object is populated.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final AwsCloudMapServiceDiscovery awsCloudMap()
Specifies any Cloud Map information for the virtual node.
public final DnsServiceDiscovery dns()
Specifies the DNS information for the virtual node.
public ServiceDiscovery.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<ServiceDiscovery.Builder,ServiceDiscovery>public static ServiceDiscovery.Builder builder()
public static Class<? extends ServiceDiscovery.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
public static ServiceDiscovery fromAwsCloudMap(AwsCloudMapServiceDiscovery awsCloudMap)
awsCloudMap() initialized to the given value.
Specifies any Cloud Map information for the virtual node.
awsCloudMap - Specifies any Cloud Map information for the virtual node.public static ServiceDiscovery fromAwsCloudMap(Consumer<AwsCloudMapServiceDiscovery.Builder> awsCloudMap)
awsCloudMap() initialized to the given value.
Specifies any Cloud Map information for the virtual node.
awsCloudMap - Specifies any Cloud Map information for the virtual node.public static ServiceDiscovery fromDns(DnsServiceDiscovery dns)
dns() initialized to the given value.
Specifies the DNS information for the virtual node.
dns - Specifies the DNS information for the virtual node.public static ServiceDiscovery fromDns(Consumer<DnsServiceDiscovery.Builder> dns)
dns() initialized to the given value.
Specifies the DNS information for the virtual node.
dns - Specifies the DNS information for the virtual node.public ServiceDiscovery.Type type()
ServiceDiscovery.Type.UNKNOWN_TO_SDK_VERSION if the
service returned a member that is only known to a newer SDK version.
When this class is created directly in your code, this will be ServiceDiscovery.Type.UNKNOWN_TO_SDK_VERSION if zero
members are set, and null if more than one member is set.Copyright © 2023. All rights reserved.