Class ServiceDiscovery
- java.lang.Object
-
- software.amazon.awssdk.services.appmesh.model.ServiceDiscovery
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<ServiceDiscovery.Builder,ServiceDiscovery>
@Generated("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.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceServiceDiscovery.Builderstatic classServiceDiscovery.Type
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description AwsCloudMapServiceDiscoveryawsCloudMap()Specifies any Cloud Map information for the virtual node.static ServiceDiscovery.Builderbuilder()DnsServiceDiscoverydns()Specifies the DNS information for the virtual node.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)static ServiceDiscoveryfromAwsCloudMap(Consumer<AwsCloudMapServiceDiscovery.Builder> awsCloudMap)Create an instance of this class withawsCloudMap()initialized to the given value.static ServiceDiscoveryfromAwsCloudMap(AwsCloudMapServiceDiscovery awsCloudMap)Create an instance of this class withawsCloudMap()initialized to the given value.static ServiceDiscoveryfromDns(Consumer<DnsServiceDiscovery.Builder> dns)Create an instance of this class withdns()initialized to the given value.static ServiceDiscoveryfromDns(DnsServiceDiscovery dns)Create an instance of this class withdns()initialized to the given value.<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()List<SdkField<?>>sdkFields()static Class<? extends ServiceDiscovery.Builder>serializableBuilderClass()ServiceDiscovery.BuildertoBuilder()StringtoString()Returns a string representation of this object.ServiceDiscovery.Typetype()Retrieve an enum value representing which member of this object is populated.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
awsCloudMap
public final AwsCloudMapServiceDiscovery awsCloudMap()
Specifies any Cloud Map information for the virtual node.
- Returns:
- Specifies any Cloud Map information for the virtual node.
-
dns
public final DnsServiceDiscovery dns()
Specifies the DNS information for the virtual node.
- Returns:
- Specifies the DNS information for the virtual node.
-
toBuilder
public ServiceDiscovery.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<ServiceDiscovery.Builder,ServiceDiscovery>
-
builder
public static ServiceDiscovery.Builder builder()
-
serializableBuilderClass
public static Class<? extends ServiceDiscovery.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
fromAwsCloudMap
public static ServiceDiscovery fromAwsCloudMap(AwsCloudMapServiceDiscovery awsCloudMap)
Create an instance of this class withawsCloudMap()initialized to the given value.Specifies any Cloud Map information for the virtual node.
- Parameters:
awsCloudMap- Specifies any Cloud Map information for the virtual node.
-
fromAwsCloudMap
public static ServiceDiscovery fromAwsCloudMap(Consumer<AwsCloudMapServiceDiscovery.Builder> awsCloudMap)
Create an instance of this class withawsCloudMap()initialized to the given value.Specifies any Cloud Map information for the virtual node.
- Parameters:
awsCloudMap- Specifies any Cloud Map information for the virtual node.
-
fromDns
public static ServiceDiscovery fromDns(DnsServiceDiscovery dns)
Create an instance of this class withdns()initialized to the given value.Specifies the DNS information for the virtual node.
- Parameters:
dns- Specifies the DNS information for the virtual node.
-
fromDns
public static ServiceDiscovery fromDns(Consumer<DnsServiceDiscovery.Builder> dns)
Create an instance of this class withdns()initialized to the given value.Specifies the DNS information for the virtual node.
- Parameters:
dns- Specifies the DNS information for the virtual node.
-
type
public ServiceDiscovery.Type type()
Retrieve an enum value representing which member of this object is populated. When this class is returned in a service response, this will beServiceDiscovery.Type.UNKNOWN_TO_SDK_VERSIONif 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 beServiceDiscovery.Type.UNKNOWN_TO_SDK_VERSIONif zero members are set, andnullif more than one member is set.
-
-