Class ServiceRegistry
- java.lang.Object
-
- software.amazon.awssdk.services.ecs.model.ServiceRegistry
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<ServiceRegistry.Builder,ServiceRegistry>
@Generated("software.amazon.awssdk:codegen") public final class ServiceRegistry extends Object implements SdkPojo, Serializable, ToCopyableBuilder<ServiceRegistry.Builder,ServiceRegistry>
The details for the service registry.
Each service may be associated with one service registry. Multiple service registries for each service are not supported.
When you add, update, or remove the service registries configuration, Amazon ECS starts a new deployment. New tasks are registered and deregistered to the updated service registry configuration.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceServiceRegistry.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ServiceRegistry.Builderbuilder()StringcontainerName()The container name value to be used for your service discovery service.IntegercontainerPort()The port value to be used for your service discovery service.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()Integerport()The port value used if your service discovery service specified an SRV record.StringregistryArn()The Amazon Resource Name (ARN) of the service registry.List<SdkField<?>>sdkFields()static Class<? extends ServiceRegistry.Builder>serializableBuilderClass()ServiceRegistry.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
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
-
registryArn
public final String registryArn()
The Amazon Resource Name (ARN) of the service registry. The currently supported service registry is Cloud Map. For more information, see CreateService.
- Returns:
- The Amazon Resource Name (ARN) of the service registry. The currently supported service registry is Cloud Map. For more information, see CreateService.
-
port
public final Integer port()
The port value used if your service discovery service specified an SRV record. This field might be used if both the
awsvpcnetwork mode and SRV records are used.- Returns:
- The port value used if your service discovery service specified an SRV record. This field might be used
if both the
awsvpcnetwork mode and SRV records are used.
-
containerName
public final String containerName()
The container name value to be used for your service discovery service. It's already specified in the task definition. If the task definition that your service task specifies uses the
bridgeorhostnetwork mode, you must specify acontainerNameandcontainerPortcombination from the task definition. If the task definition that your service task specifies uses theawsvpcnetwork mode and a type SRV DNS record is used, you must specify either acontainerNameandcontainerPortcombination or aportvalue. However, you can't specify both.- Returns:
- The container name value to be used for your service discovery service. It's already specified in the
task definition. If the task definition that your service task specifies uses the
bridgeorhostnetwork mode, you must specify acontainerNameandcontainerPortcombination from the task definition. If the task definition that your service task specifies uses theawsvpcnetwork mode and a type SRV DNS record is used, you must specify either acontainerNameandcontainerPortcombination or aportvalue. However, you can't specify both.
-
containerPort
public final Integer containerPort()
The port value to be used for your service discovery service. It's already specified in the task definition. If the task definition your service task specifies uses the
bridgeorhostnetwork mode, you must specify acontainerNameandcontainerPortcombination from the task definition. If the task definition your service task specifies uses theawsvpcnetwork mode and a type SRV DNS record is used, you must specify either acontainerNameandcontainerPortcombination or aportvalue. However, you can't specify both.- Returns:
- The port value to be used for your service discovery service. It's already specified in the task
definition. If the task definition your service task specifies uses the
bridgeorhostnetwork mode, you must specify acontainerNameandcontainerPortcombination from the task definition. If the task definition your service task specifies uses theawsvpcnetwork mode and a type SRV DNS record is used, you must specify either acontainerNameandcontainerPortcombination or aportvalue. However, you can't specify both.
-
toBuilder
public ServiceRegistry.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<ServiceRegistry.Builder,ServiceRegistry>
-
builder
public static ServiceRegistry.Builder builder()
-
serializableBuilderClass
public static Class<? extends ServiceRegistry.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.
-
-