@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AwsEcsServiceServiceRegistriesDetails extends Object implements Serializable, Cloneable, StructuredPojo
Information about a service discovery registry to assign to the service.
Constructor and Description |
---|
AwsEcsServiceServiceRegistriesDetails() |
Modifier and Type | Method and Description |
---|---|
AwsEcsServiceServiceRegistriesDetails |
clone() |
boolean |
equals(Object obj) |
String |
getContainerName()
The container name value to use for the service discovery service.
|
Integer |
getContainerPort()
The port value to use for the service discovery service.
|
Integer |
getPort()
The port value to use for a service discovery service that specifies an SRV record.
|
String |
getRegistryArn()
The ARN of the service registry.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setContainerName(String containerName)
The container name value to use for the service discovery service.
|
void |
setContainerPort(Integer containerPort)
The port value to use for the service discovery service.
|
void |
setPort(Integer port)
The port value to use for a service discovery service that specifies an SRV record.
|
void |
setRegistryArn(String registryArn)
The ARN of the service registry.
|
String |
toString()
Returns a string representation of this object.
|
AwsEcsServiceServiceRegistriesDetails |
withContainerName(String containerName)
The container name value to use for the service discovery service.
|
AwsEcsServiceServiceRegistriesDetails |
withContainerPort(Integer containerPort)
The port value to use for the service discovery service.
|
AwsEcsServiceServiceRegistriesDetails |
withPort(Integer port)
The port value to use for a service discovery service that specifies an SRV record.
|
AwsEcsServiceServiceRegistriesDetails |
withRegistryArn(String registryArn)
The ARN of the service registry.
|
public AwsEcsServiceServiceRegistriesDetails()
public void setContainerName(String containerName)
The container name value to use for the service discovery service.
If the task definition uses the bridge
or host
network mode, you must specify
ContainerName
and ContainerPort
.
If the task definition uses the awsvpc
network mode and a type SRV DNS record, you must specify
either ContainerName
and ContainerPort
, or Port
, but not both.
containerName
- The container name value to use for the service discovery service.
If the task definition uses the bridge
or host
network mode, you must specify
ContainerName
and ContainerPort
.
If the task definition uses the awsvpc
network mode and a type SRV DNS record, you must
specify either ContainerName
and ContainerPort
, or Port
, but not
both.
public String getContainerName()
The container name value to use for the service discovery service.
If the task definition uses the bridge
or host
network mode, you must specify
ContainerName
and ContainerPort
.
If the task definition uses the awsvpc
network mode and a type SRV DNS record, you must specify
either ContainerName
and ContainerPort
, or Port
, but not both.
If the task definition uses the bridge
or host
network mode, you must specify
ContainerName
and ContainerPort
.
If the task definition uses the awsvpc
network mode and a type SRV DNS record, you must
specify either ContainerName
and ContainerPort
, or Port
, but not
both.
public AwsEcsServiceServiceRegistriesDetails withContainerName(String containerName)
The container name value to use for the service discovery service.
If the task definition uses the bridge
or host
network mode, you must specify
ContainerName
and ContainerPort
.
If the task definition uses the awsvpc
network mode and a type SRV DNS record, you must specify
either ContainerName
and ContainerPort
, or Port
, but not both.
containerName
- The container name value to use for the service discovery service.
If the task definition uses the bridge
or host
network mode, you must specify
ContainerName
and ContainerPort
.
If the task definition uses the awsvpc
network mode and a type SRV DNS record, you must
specify either ContainerName
and ContainerPort
, or Port
, but not
both.
public void setContainerPort(Integer containerPort)
The port value to use for the service discovery service.
If the task definition uses the bridge
or host
network mode, you must specify
ContainerName
and ContainerPort
.
If the task definition uses the awsvpc
network mode and a type SRV DNS record, you must specify
either ContainerName
and ContainerPort
, or Port
, but not both.
containerPort
- The port value to use for the service discovery service.
If the task definition uses the bridge
or host
network mode, you must specify
ContainerName
and ContainerPort
.
If the task definition uses the awsvpc
network mode and a type SRV DNS record, you must
specify either ContainerName
and ContainerPort
, or Port
, but not
both.
public Integer getContainerPort()
The port value to use for the service discovery service.
If the task definition uses the bridge
or host
network mode, you must specify
ContainerName
and ContainerPort
.
If the task definition uses the awsvpc
network mode and a type SRV DNS record, you must specify
either ContainerName
and ContainerPort
, or Port
, but not both.
If the task definition uses the bridge
or host
network mode, you must specify
ContainerName
and ContainerPort
.
If the task definition uses the awsvpc
network mode and a type SRV DNS record, you must
specify either ContainerName
and ContainerPort
, or Port
, but not
both.
public AwsEcsServiceServiceRegistriesDetails withContainerPort(Integer containerPort)
The port value to use for the service discovery service.
If the task definition uses the bridge
or host
network mode, you must specify
ContainerName
and ContainerPort
.
If the task definition uses the awsvpc
network mode and a type SRV DNS record, you must specify
either ContainerName
and ContainerPort
, or Port
, but not both.
containerPort
- The port value to use for the service discovery service.
If the task definition uses the bridge
or host
network mode, you must specify
ContainerName
and ContainerPort
.
If the task definition uses the awsvpc
network mode and a type SRV DNS record, you must
specify either ContainerName
and ContainerPort
, or Port
, but not
both.
public void setPort(Integer port)
The port value to use for a service discovery service that specifies an SRV record. This field can be used if
both the awsvpc
awsvpc network mode and SRV records are used.
port
- The port value to use for a service discovery service that specifies an SRV record. This field can be used
if both the awsvpc
awsvpc network mode and SRV records are used.public Integer getPort()
The port value to use for a service discovery service that specifies an SRV record. This field can be used if
both the awsvpc
awsvpc network mode and SRV records are used.
awsvpc
awsvpc network mode and SRV records are used.public AwsEcsServiceServiceRegistriesDetails withPort(Integer port)
The port value to use for a service discovery service that specifies an SRV record. This field can be used if
both the awsvpc
awsvpc network mode and SRV records are used.
port
- The port value to use for a service discovery service that specifies an SRV record. This field can be used
if both the awsvpc
awsvpc network mode and SRV records are used.public void setRegistryArn(String registryArn)
The ARN of the service registry.
registryArn
- The ARN of the service registry.public String getRegistryArn()
The ARN of the service registry.
public AwsEcsServiceServiceRegistriesDetails withRegistryArn(String registryArn)
The ARN of the service registry.
registryArn
- The ARN of the service registry.public String toString()
toString
in class Object
Object.toString()
public AwsEcsServiceServiceRegistriesDetails clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.