@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AwsCloudMapServiceDiscovery extends Object implements Serializable, Cloneable, StructuredPojo
An object that represents the AWS Cloud Map service discovery information for your virtual node.
Constructor and Description |
---|
AwsCloudMapServiceDiscovery() |
Modifier and Type | Method and Description |
---|---|
AwsCloudMapServiceDiscovery |
clone() |
boolean |
equals(Object obj) |
List<AwsCloudMapInstanceAttribute> |
getAttributes()
A string map that contains attributes with values that you can use to filter instances by any custom attribute
that you specified when you registered the instance.
|
String |
getNamespaceName()
The name of the AWS Cloud Map namespace to use.
|
String |
getServiceName()
The name of the AWS Cloud Map service to use.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setAttributes(Collection<AwsCloudMapInstanceAttribute> attributes)
A string map that contains attributes with values that you can use to filter instances by any custom attribute
that you specified when you registered the instance.
|
void |
setNamespaceName(String namespaceName)
The name of the AWS Cloud Map namespace to use.
|
void |
setServiceName(String serviceName)
The name of the AWS Cloud Map service to use.
|
String |
toString()
Returns a string representation of this object.
|
AwsCloudMapServiceDiscovery |
withAttributes(AwsCloudMapInstanceAttribute... attributes)
A string map that contains attributes with values that you can use to filter instances by any custom attribute
that you specified when you registered the instance.
|
AwsCloudMapServiceDiscovery |
withAttributes(Collection<AwsCloudMapInstanceAttribute> attributes)
A string map that contains attributes with values that you can use to filter instances by any custom attribute
that you specified when you registered the instance.
|
AwsCloudMapServiceDiscovery |
withNamespaceName(String namespaceName)
The name of the AWS Cloud Map namespace to use.
|
AwsCloudMapServiceDiscovery |
withServiceName(String serviceName)
The name of the AWS Cloud Map service to use.
|
public List<AwsCloudMapInstanceAttribute> getAttributes()
A string map that contains attributes with values that you can use to filter instances by any custom attribute that you specified when you registered the instance. Only instances that match all of the specified key/value pairs will be returned.
public void setAttributes(Collection<AwsCloudMapInstanceAttribute> attributes)
A string map that contains attributes with values that you can use to filter instances by any custom attribute that you specified when you registered the instance. Only instances that match all of the specified key/value pairs will be returned.
attributes
- A string map that contains attributes with values that you can use to filter instances by any custom
attribute that you specified when you registered the instance. Only instances that match all of the
specified key/value pairs will be returned.public AwsCloudMapServiceDiscovery withAttributes(AwsCloudMapInstanceAttribute... attributes)
A string map that contains attributes with values that you can use to filter instances by any custom attribute that you specified when you registered the instance. Only instances that match all of the specified key/value pairs will be returned.
NOTE: This method appends the values to the existing list (if any). Use
setAttributes(java.util.Collection)
or withAttributes(java.util.Collection)
if you want to
override the existing values.
attributes
- A string map that contains attributes with values that you can use to filter instances by any custom
attribute that you specified when you registered the instance. Only instances that match all of the
specified key/value pairs will be returned.public AwsCloudMapServiceDiscovery withAttributes(Collection<AwsCloudMapInstanceAttribute> attributes)
A string map that contains attributes with values that you can use to filter instances by any custom attribute that you specified when you registered the instance. Only instances that match all of the specified key/value pairs will be returned.
attributes
- A string map that contains attributes with values that you can use to filter instances by any custom
attribute that you specified when you registered the instance. Only instances that match all of the
specified key/value pairs will be returned.public void setNamespaceName(String namespaceName)
The name of the AWS Cloud Map namespace to use.
namespaceName
- The name of the AWS Cloud Map namespace to use.public String getNamespaceName()
The name of the AWS Cloud Map namespace to use.
public AwsCloudMapServiceDiscovery withNamespaceName(String namespaceName)
The name of the AWS Cloud Map namespace to use.
namespaceName
- The name of the AWS Cloud Map namespace to use.public void setServiceName(String serviceName)
The name of the AWS Cloud Map service to use.
serviceName
- The name of the AWS Cloud Map service to use.public String getServiceName()
The name of the AWS Cloud Map service to use.
public AwsCloudMapServiceDiscovery withServiceName(String serviceName)
The name of the AWS Cloud Map service to use.
serviceName
- The name of the AWS Cloud Map service to use.public String toString()
toString
in class Object
Object.toString()
public AwsCloudMapServiceDiscovery clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.