public class CreateServiceRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP
Constructor and Description |
---|
CreateServiceRequest() |
Modifier and Type | Method and Description |
---|---|
CreateServiceRequest |
clone() |
boolean |
equals(Object obj) |
String |
getClientToken()
Unique, case-sensitive identifier you provide to ensure the idempotency
of the request.
|
String |
getCluster()
The short name or full Amazon Resource Name (ARN) of the cluster on which
to run your service.
|
DeploymentConfiguration |
getDeploymentConfiguration()
Optional deployment parameters that control how many tasks run during the
deployment and the ordering of stopping and starting tasks.
|
Integer |
getDesiredCount()
The number of instantiations of the specified task definition to place
and keep running on your cluster.
|
List<LoadBalancer> |
getLoadBalancers()
A list of load balancer objects, containing the load balancer name, the
container name (as it appears in a container definition), and the
container port to access from the load balancer.
|
String |
getRole()
The name or full Amazon Resource Name (ARN) of the IAM role that allows
your Amazon ECS container agent to make calls to your load balancer on
your behalf.
|
String |
getServiceName()
The name of your service.
|
String |
getTaskDefinition()
The
family and revision (
family:revision ) or full Amazon Resource Name (ARN) of the
task definition to run in your service. |
int |
hashCode() |
void |
setClientToken(String clientToken)
Unique, case-sensitive identifier you provide to ensure the idempotency
of the request.
|
void |
setCluster(String cluster)
The short name or full Amazon Resource Name (ARN) of the cluster on which
to run your service.
|
void |
setDeploymentConfiguration(DeploymentConfiguration deploymentConfiguration)
Optional deployment parameters that control how many tasks run during the
deployment and the ordering of stopping and starting tasks.
|
void |
setDesiredCount(Integer desiredCount)
The number of instantiations of the specified task definition to place
and keep running on your cluster.
|
void |
setLoadBalancers(Collection<LoadBalancer> loadBalancers)
A list of load balancer objects, containing the load balancer name, the
container name (as it appears in a container definition), and the
container port to access from the load balancer.
|
void |
setRole(String role)
The name or full Amazon Resource Name (ARN) of the IAM role that allows
your Amazon ECS container agent to make calls to your load balancer on
your behalf.
|
void |
setServiceName(String serviceName)
The name of your service.
|
void |
setTaskDefinition(String taskDefinition)
The
family and revision (
family:revision ) or full Amazon Resource Name (ARN) of the
task definition to run in your service. |
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
CreateServiceRequest |
withClientToken(String clientToken)
Unique, case-sensitive identifier you provide to ensure the idempotency
of the request.
|
CreateServiceRequest |
withCluster(String cluster)
The short name or full Amazon Resource Name (ARN) of the cluster on which
to run your service.
|
CreateServiceRequest |
withDeploymentConfiguration(DeploymentConfiguration deploymentConfiguration)
Optional deployment parameters that control how many tasks run during the
deployment and the ordering of stopping and starting tasks.
|
CreateServiceRequest |
withDesiredCount(Integer desiredCount)
The number of instantiations of the specified task definition to place
and keep running on your cluster.
|
CreateServiceRequest |
withLoadBalancers(Collection<LoadBalancer> loadBalancers)
A list of load balancer objects, containing the load balancer name, the
container name (as it appears in a container definition), and the
container port to access from the load balancer.
|
CreateServiceRequest |
withLoadBalancers(LoadBalancer... loadBalancers)
A list of load balancer objects, containing the load balancer name, the
container name (as it appears in a container definition), and the
container port to access from the load balancer.
|
CreateServiceRequest |
withRole(String role)
The name or full Amazon Resource Name (ARN) of the IAM role that allows
your Amazon ECS container agent to make calls to your load balancer on
your behalf.
|
CreateServiceRequest |
withServiceName(String serviceName)
The name of your service.
|
CreateServiceRequest |
withTaskDefinition(String taskDefinition)
The
family and revision (
family:revision ) or full Amazon Resource Name (ARN) of the
task definition to run in your service. |
copyBaseTo, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
public void setCluster(String cluster)
The short name or full Amazon Resource Name (ARN) of the cluster on which to run your service. If you do not specify a cluster, the default cluster is assumed.
cluster
- The short name or full Amazon Resource Name (ARN) of the cluster
on which to run your service. If you do not specify a cluster, the
default cluster is assumed.public String getCluster()
The short name or full Amazon Resource Name (ARN) of the cluster on which to run your service. If you do not specify a cluster, the default cluster is assumed.
public CreateServiceRequest withCluster(String cluster)
The short name or full Amazon Resource Name (ARN) of the cluster on which to run your service. If you do not specify a cluster, the default cluster is assumed.
cluster
- The short name or full Amazon Resource Name (ARN) of the cluster
on which to run your service. If you do not specify a cluster, the
default cluster is assumed.public void setServiceName(String serviceName)
The name of your service. Up to 255 letters (uppercase and lowercase), numbers, hyphens, and underscores are allowed. Service names must be unique within a cluster, but you can have similarly named services in multiple clusters within a region or across multiple regions.
serviceName
- The name of your service. Up to 255 letters (uppercase and
lowercase), numbers, hyphens, and underscores are allowed. Service
names must be unique within a cluster, but you can have similarly
named services in multiple clusters within a region or across
multiple regions.public String getServiceName()
The name of your service. Up to 255 letters (uppercase and lowercase), numbers, hyphens, and underscores are allowed. Service names must be unique within a cluster, but you can have similarly named services in multiple clusters within a region or across multiple regions.
public CreateServiceRequest withServiceName(String serviceName)
The name of your service. Up to 255 letters (uppercase and lowercase), numbers, hyphens, and underscores are allowed. Service names must be unique within a cluster, but you can have similarly named services in multiple clusters within a region or across multiple regions.
serviceName
- The name of your service. Up to 255 letters (uppercase and
lowercase), numbers, hyphens, and underscores are allowed. Service
names must be unique within a cluster, but you can have similarly
named services in multiple clusters within a region or across
multiple regions.public void setTaskDefinition(String taskDefinition)
The family
and revision
(
family:revision
) or full Amazon Resource Name (ARN) of the
task definition to run in your service. If a revision
is not
specified, the latest ACTIVE
revision is used.
taskDefinition
- The family
and revision
(
family:revision
) or full Amazon Resource Name (ARN)
of the task definition to run in your service. If a
revision
is not specified, the latest
ACTIVE
revision is used.public String getTaskDefinition()
The family
and revision
(
family:revision
) or full Amazon Resource Name (ARN) of the
task definition to run in your service. If a revision
is not
specified, the latest ACTIVE
revision is used.
family
and revision
(
family:revision
) or full Amazon Resource Name (ARN)
of the task definition to run in your service. If a
revision
is not specified, the latest
ACTIVE
revision is used.public CreateServiceRequest withTaskDefinition(String taskDefinition)
The family
and revision
(
family:revision
) or full Amazon Resource Name (ARN) of the
task definition to run in your service. If a revision
is not
specified, the latest ACTIVE
revision is used.
taskDefinition
- The family
and revision
(
family:revision
) or full Amazon Resource Name (ARN)
of the task definition to run in your service. If a
revision
is not specified, the latest
ACTIVE
revision is used.public List<LoadBalancer> getLoadBalancers()
A list of load balancer objects, containing the load balancer name, the container name (as it appears in a container definition), and the container port to access from the load balancer.
public void setLoadBalancers(Collection<LoadBalancer> loadBalancers)
A list of load balancer objects, containing the load balancer name, the container name (as it appears in a container definition), and the container port to access from the load balancer.
loadBalancers
- A list of load balancer objects, containing the load balancer
name, the container name (as it appears in a container
definition), and the container port to access from the load
balancer.public CreateServiceRequest withLoadBalancers(LoadBalancer... loadBalancers)
A list of load balancer objects, containing the load balancer name, the container name (as it appears in a container definition), and the container port to access from the load balancer.
NOTE: This method appends the values to the existing list (if
any). Use setLoadBalancers(java.util.Collection)
or
withLoadBalancers(java.util.Collection)
if you want to override
the existing values.
loadBalancers
- A list of load balancer objects, containing the load balancer
name, the container name (as it appears in a container
definition), and the container port to access from the load
balancer.public CreateServiceRequest withLoadBalancers(Collection<LoadBalancer> loadBalancers)
A list of load balancer objects, containing the load balancer name, the container name (as it appears in a container definition), and the container port to access from the load balancer.
loadBalancers
- A list of load balancer objects, containing the load balancer
name, the container name (as it appears in a container
definition), and the container port to access from the load
balancer.public void setDesiredCount(Integer desiredCount)
The number of instantiations of the specified task definition to place and keep running on your cluster.
desiredCount
- The number of instantiations of the specified task definition to
place and keep running on your cluster.public Integer getDesiredCount()
The number of instantiations of the specified task definition to place and keep running on your cluster.
public CreateServiceRequest withDesiredCount(Integer desiredCount)
The number of instantiations of the specified task definition to place and keep running on your cluster.
desiredCount
- The number of instantiations of the specified task definition to
place and keep running on your cluster.public void setClientToken(String clientToken)
Unique, case-sensitive identifier you provide to ensure the idempotency of the request. Up to 32 ASCII characters are allowed.
clientToken
- Unique, case-sensitive identifier you provide to ensure the
idempotency of the request. Up to 32 ASCII characters are allowed.public String getClientToken()
Unique, case-sensitive identifier you provide to ensure the idempotency of the request. Up to 32 ASCII characters are allowed.
public CreateServiceRequest withClientToken(String clientToken)
Unique, case-sensitive identifier you provide to ensure the idempotency of the request. Up to 32 ASCII characters are allowed.
clientToken
- Unique, case-sensitive identifier you provide to ensure the
idempotency of the request. Up to 32 ASCII characters are allowed.public void setRole(String role)
The name or full Amazon Resource Name (ARN) of the IAM role that allows your Amazon ECS container agent to make calls to your load balancer on your behalf. This parameter is only required if you are using a load balancer with your service.
role
- The name or full Amazon Resource Name (ARN) of the IAM role that
allows your Amazon ECS container agent to make calls to your load
balancer on your behalf. This parameter is only required if you
are using a load balancer with your service.public String getRole()
The name or full Amazon Resource Name (ARN) of the IAM role that allows your Amazon ECS container agent to make calls to your load balancer on your behalf. This parameter is only required if you are using a load balancer with your service.
public CreateServiceRequest withRole(String role)
The name or full Amazon Resource Name (ARN) of the IAM role that allows your Amazon ECS container agent to make calls to your load balancer on your behalf. This parameter is only required if you are using a load balancer with your service.
role
- The name or full Amazon Resource Name (ARN) of the IAM role that
allows your Amazon ECS container agent to make calls to your load
balancer on your behalf. This parameter is only required if you
are using a load balancer with your service.public void setDeploymentConfiguration(DeploymentConfiguration deploymentConfiguration)
Optional deployment parameters that control how many tasks run during the deployment and the ordering of stopping and starting tasks.
deploymentConfiguration
- Optional deployment parameters that control how many tasks run
during the deployment and the ordering of stopping and starting
tasks.public DeploymentConfiguration getDeploymentConfiguration()
Optional deployment parameters that control how many tasks run during the deployment and the ordering of stopping and starting tasks.
public CreateServiceRequest withDeploymentConfiguration(DeploymentConfiguration deploymentConfiguration)
Optional deployment parameters that control how many tasks run during the deployment and the ordering of stopping and starting tasks.
deploymentConfiguration
- Optional deployment parameters that control how many tasks run
during the deployment and the ordering of stopping and starting
tasks.public String toString()
toString
in class Object
Object.toString()
public CreateServiceRequest clone()
clone
in class AmazonWebServiceRequest
Copyright © 2016. All rights reserved.