Class ContainerInstance

    • Constructor Detail

      • ContainerInstance

        public ContainerInstance()
    • Method Detail

      • setContainerInstanceArn

        public void setContainerInstanceArn​(String containerInstanceArn)

        The Amazon Resource Name (ARN) of the container instance. The ARN contains the arn:aws:ecs namespace, followed by the region of the container instance, the AWS account ID of the container instance owner, the container-instance namespace, and then the container instance ID. For example, arn:aws:ecs:region:aws_account_id:container-instance/container_instance_ID .

        Parameters:
        containerInstanceArn - The Amazon Resource Name (ARN) of the container instance. The ARN contains the arn:aws:ecs namespace, followed by the region of the container instance, the AWS account ID of the container instance owner, the container-instance namespace, and then the container instance ID. For example, arn:aws:ecs:region:aws_account_id:container-instance/container_instance_ID .
      • getContainerInstanceArn

        public String getContainerInstanceArn()

        The Amazon Resource Name (ARN) of the container instance. The ARN contains the arn:aws:ecs namespace, followed by the region of the container instance, the AWS account ID of the container instance owner, the container-instance namespace, and then the container instance ID. For example, arn:aws:ecs:region:aws_account_id:container-instance/container_instance_ID .

        Returns:
        The Amazon Resource Name (ARN) of the container instance. The ARN contains the arn:aws:ecs namespace, followed by the region of the container instance, the AWS account ID of the container instance owner, the container-instance namespace, and then the container instance ID. For example, arn:aws:ecs:region:aws_account_id:container-instance/container_instance_ID .
      • withContainerInstanceArn

        public ContainerInstance withContainerInstanceArn​(String containerInstanceArn)

        The Amazon Resource Name (ARN) of the container instance. The ARN contains the arn:aws:ecs namespace, followed by the region of the container instance, the AWS account ID of the container instance owner, the container-instance namespace, and then the container instance ID. For example, arn:aws:ecs:region:aws_account_id:container-instance/container_instance_ID .

        Parameters:
        containerInstanceArn - The Amazon Resource Name (ARN) of the container instance. The ARN contains the arn:aws:ecs namespace, followed by the region of the container instance, the AWS account ID of the container instance owner, the container-instance namespace, and then the container instance ID. For example, arn:aws:ecs:region:aws_account_id:container-instance/container_instance_ID .
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setEc2InstanceId

        public void setEc2InstanceId​(String ec2InstanceId)

        The EC2 instance ID of the container instance.

        Parameters:
        ec2InstanceId - The EC2 instance ID of the container instance.
      • getEc2InstanceId

        public String getEc2InstanceId()

        The EC2 instance ID of the container instance.

        Returns:
        The EC2 instance ID of the container instance.
      • withEc2InstanceId

        public ContainerInstance withEc2InstanceId​(String ec2InstanceId)

        The EC2 instance ID of the container instance.

        Parameters:
        ec2InstanceId - The EC2 instance ID of the container instance.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setVersionInfo

        public void setVersionInfo​(VersionInfo versionInfo)

        The version information for the Amazon ECS container agent and Docker daemon running on the container instance.

        Parameters:
        versionInfo - The version information for the Amazon ECS container agent and Docker daemon running on the container instance.
      • getVersionInfo

        public VersionInfo getVersionInfo()

        The version information for the Amazon ECS container agent and Docker daemon running on the container instance.

        Returns:
        The version information for the Amazon ECS container agent and Docker daemon running on the container instance.
      • withVersionInfo

        public ContainerInstance withVersionInfo​(VersionInfo versionInfo)

        The version information for the Amazon ECS container agent and Docker daemon running on the container instance.

        Parameters:
        versionInfo - The version information for the Amazon ECS container agent and Docker daemon running on the container instance.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • getRemainingResources

        public List<Resource> getRemainingResources()

        The remaining resources of the container instance that are available for new tasks.

        Returns:
        The remaining resources of the container instance that are available for new tasks.
      • setRemainingResources

        public void setRemainingResources​(Collection<Resource> remainingResources)

        The remaining resources of the container instance that are available for new tasks.

        Parameters:
        remainingResources - The remaining resources of the container instance that are available for new tasks.
      • withRemainingResources

        public ContainerInstance withRemainingResources​(Resource... remainingResources)

        The remaining resources of the container instance that are available for new tasks.

        NOTE: This method appends the values to the existing list (if any). Use setRemainingResources(java.util.Collection) or withRemainingResources(java.util.Collection) if you want to override the existing values.

        Parameters:
        remainingResources - The remaining resources of the container instance that are available for new tasks.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • withRemainingResources

        public ContainerInstance withRemainingResources​(Collection<Resource> remainingResources)

        The remaining resources of the container instance that are available for new tasks.

        Parameters:
        remainingResources - The remaining resources of the container instance that are available for new tasks.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • getRegisteredResources

        public List<Resource> getRegisteredResources()

        The registered resources on the container instance that are in use by current tasks.

        Returns:
        The registered resources on the container instance that are in use by current tasks.
      • setRegisteredResources

        public void setRegisteredResources​(Collection<Resource> registeredResources)

        The registered resources on the container instance that are in use by current tasks.

        Parameters:
        registeredResources - The registered resources on the container instance that are in use by current tasks.
      • withRegisteredResources

        public ContainerInstance withRegisteredResources​(Resource... registeredResources)

        The registered resources on the container instance that are in use by current tasks.

        NOTE: This method appends the values to the existing list (if any). Use setRegisteredResources(java.util.Collection) or withRegisteredResources(java.util.Collection) if you want to override the existing values.

        Parameters:
        registeredResources - The registered resources on the container instance that are in use by current tasks.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • withRegisteredResources

        public ContainerInstance withRegisteredResources​(Collection<Resource> registeredResources)

        The registered resources on the container instance that are in use by current tasks.

        Parameters:
        registeredResources - The registered resources on the container instance that are in use by current tasks.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setStatus

        public void setStatus​(String status)

        The status of the container instance. The valid values are ACTIVE or INACTIVE. ACTIVE indicates that the container instance can accept tasks.

        Parameters:
        status - The status of the container instance. The valid values are ACTIVE or INACTIVE. ACTIVE indicates that the container instance can accept tasks.
      • getStatus

        public String getStatus()

        The status of the container instance. The valid values are ACTIVE or INACTIVE. ACTIVE indicates that the container instance can accept tasks.

        Returns:
        The status of the container instance. The valid values are ACTIVE or INACTIVE. ACTIVE indicates that the container instance can accept tasks.
      • withStatus

        public ContainerInstance withStatus​(String status)

        The status of the container instance. The valid values are ACTIVE or INACTIVE. ACTIVE indicates that the container instance can accept tasks.

        Parameters:
        status - The status of the container instance. The valid values are ACTIVE or INACTIVE. ACTIVE indicates that the container instance can accept tasks.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setAgentConnected

        public void setAgentConnected​(Boolean agentConnected)

        This parameter returns true if the agent is actually connected to Amazon ECS. Registered instances with an agent that may be unhealthy or stopped return false, and instances without a connected agent cannot accept placement requests.

        Parameters:
        agentConnected - This parameter returns true if the agent is actually connected to Amazon ECS. Registered instances with an agent that may be unhealthy or stopped return false, and instances without a connected agent cannot accept placement requests.
      • getAgentConnected

        public Boolean getAgentConnected()

        This parameter returns true if the agent is actually connected to Amazon ECS. Registered instances with an agent that may be unhealthy or stopped return false, and instances without a connected agent cannot accept placement requests.

        Returns:
        This parameter returns true if the agent is actually connected to Amazon ECS. Registered instances with an agent that may be unhealthy or stopped return false, and instances without a connected agent cannot accept placement requests.
      • withAgentConnected

        public ContainerInstance withAgentConnected​(Boolean agentConnected)

        This parameter returns true if the agent is actually connected to Amazon ECS. Registered instances with an agent that may be unhealthy or stopped return false, and instances without a connected agent cannot accept placement requests.

        Parameters:
        agentConnected - This parameter returns true if the agent is actually connected to Amazon ECS. Registered instances with an agent that may be unhealthy or stopped return false, and instances without a connected agent cannot accept placement requests.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • isAgentConnected

        public Boolean isAgentConnected()

        This parameter returns true if the agent is actually connected to Amazon ECS. Registered instances with an agent that may be unhealthy or stopped return false, and instances without a connected agent cannot accept placement requests.

        Returns:
        This parameter returns true if the agent is actually connected to Amazon ECS. Registered instances with an agent that may be unhealthy or stopped return false, and instances without a connected agent cannot accept placement requests.
      • setRunningTasksCount

        public void setRunningTasksCount​(Integer runningTasksCount)

        The number of tasks on the container instance that are in the RUNNING status.

        Parameters:
        runningTasksCount - The number of tasks on the container instance that are in the RUNNING status.
      • getRunningTasksCount

        public Integer getRunningTasksCount()

        The number of tasks on the container instance that are in the RUNNING status.

        Returns:
        The number of tasks on the container instance that are in the RUNNING status.
      • withRunningTasksCount

        public ContainerInstance withRunningTasksCount​(Integer runningTasksCount)

        The number of tasks on the container instance that are in the RUNNING status.

        Parameters:
        runningTasksCount - The number of tasks on the container instance that are in the RUNNING status.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setPendingTasksCount

        public void setPendingTasksCount​(Integer pendingTasksCount)

        The number of tasks on the container instance that are in the PENDING status.

        Parameters:
        pendingTasksCount - The number of tasks on the container instance that are in the PENDING status.
      • getPendingTasksCount

        public Integer getPendingTasksCount()

        The number of tasks on the container instance that are in the PENDING status.

        Returns:
        The number of tasks on the container instance that are in the PENDING status.
      • withPendingTasksCount

        public ContainerInstance withPendingTasksCount​(Integer pendingTasksCount)

        The number of tasks on the container instance that are in the PENDING status.

        Parameters:
        pendingTasksCount - The number of tasks on the container instance that are in the PENDING status.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setAgentUpdateStatus

        public void setAgentUpdateStatus​(String agentUpdateStatus)

        The status of the most recent agent update. If an update has never been requested, this value is NULL.

        Parameters:
        agentUpdateStatus - The status of the most recent agent update. If an update has never been requested, this value is NULL.
        See Also:
        AgentUpdateStatus
      • getAgentUpdateStatus

        public String getAgentUpdateStatus()

        The status of the most recent agent update. If an update has never been requested, this value is NULL.

        Returns:
        The status of the most recent agent update. If an update has never been requested, this value is NULL.
        See Also:
        AgentUpdateStatus
      • withAgentUpdateStatus

        public ContainerInstance withAgentUpdateStatus​(String agentUpdateStatus)

        The status of the most recent agent update. If an update has never been requested, this value is NULL.

        Parameters:
        agentUpdateStatus - The status of the most recent agent update. If an update has never been requested, this value is NULL.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        AgentUpdateStatus
      • setAgentUpdateStatus

        public void setAgentUpdateStatus​(AgentUpdateStatus agentUpdateStatus)

        The status of the most recent agent update. If an update has never been requested, this value is NULL.

        Parameters:
        agentUpdateStatus - The status of the most recent agent update. If an update has never been requested, this value is NULL.
        See Also:
        AgentUpdateStatus
      • withAgentUpdateStatus

        public ContainerInstance withAgentUpdateStatus​(AgentUpdateStatus agentUpdateStatus)

        The status of the most recent agent update. If an update has never been requested, this value is NULL.

        Parameters:
        agentUpdateStatus - The status of the most recent agent update. If an update has never been requested, this value is NULL.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        AgentUpdateStatus
      • getAttributes

        public List<Attribute> getAttributes()

        The attributes set for the container instance by the Amazon ECS container agent at instance registration.

        Returns:
        The attributes set for the container instance by the Amazon ECS container agent at instance registration.
      • setAttributes

        public void setAttributes​(Collection<Attribute> attributes)

        The attributes set for the container instance by the Amazon ECS container agent at instance registration.

        Parameters:
        attributes - The attributes set for the container instance by the Amazon ECS container agent at instance registration.
      • withAttributes

        public ContainerInstance withAttributes​(Attribute... attributes)

        The attributes set for the container instance by the Amazon ECS container agent at instance registration.

        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.

        Parameters:
        attributes - The attributes set for the container instance by the Amazon ECS container agent at instance registration.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • withAttributes

        public ContainerInstance withAttributes​(Collection<Attribute> attributes)

        The attributes set for the container instance by the Amazon ECS container agent at instance registration.

        Parameters:
        attributes - The attributes set for the container instance by the Amazon ECS container agent at instance registration.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • toString

        public String toString()
        Returns a string representation of this object; useful for testing and debugging.
        Overrides:
        toString in class Object
        Returns:
        A string representation of this object.
        See Also:
        Object.toString()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object