Class ListInstancesRequest

    • Constructor Detail

      • ListInstancesRequest

        public ListInstancesRequest()
    • Method Detail

      • setClusterId

        public void setClusterId​(String clusterId)

        The identifier of the cluster for which to list the instances.

        Parameters:
        clusterId - The identifier of the cluster for which to list the instances.
      • getClusterId

        public String getClusterId()

        The identifier of the cluster for which to list the instances.

        Returns:
        The identifier of the cluster for which to list the instances.
      • withClusterId

        public ListInstancesRequest withClusterId​(String clusterId)

        The identifier of the cluster for which to list the instances.

        Parameters:
        clusterId - The identifier of the cluster for which to list the instances.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setInstanceGroupId

        public void setInstanceGroupId​(String instanceGroupId)

        The identifier of the instance group for which to list the instances.

        Parameters:
        instanceGroupId - The identifier of the instance group for which to list the instances.
      • getInstanceGroupId

        public String getInstanceGroupId()

        The identifier of the instance group for which to list the instances.

        Returns:
        The identifier of the instance group for which to list the instances.
      • withInstanceGroupId

        public ListInstancesRequest withInstanceGroupId​(String instanceGroupId)

        The identifier of the instance group for which to list the instances.

        Parameters:
        instanceGroupId - The identifier of the instance group for which to list the instances.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • getInstanceGroupTypes

        public List<String> getInstanceGroupTypes()

        The type of instance group for which to list the instances.

        Returns:
        The type of instance group for which to list the instances.
        See Also:
        InstanceGroupType
      • setInstanceGroupTypes

        public void setInstanceGroupTypes​(Collection<String> instanceGroupTypes)

        The type of instance group for which to list the instances.

        Parameters:
        instanceGroupTypes - The type of instance group for which to list the instances.
        See Also:
        InstanceGroupType
      • withInstanceGroupTypes

        public ListInstancesRequest withInstanceGroupTypes​(Collection<String> instanceGroupTypes)

        The type of instance group for which to list the instances.

        Parameters:
        instanceGroupTypes - The type of instance group for which to list the instances.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        InstanceGroupType
      • withInstanceGroupTypes

        public ListInstancesRequest withInstanceGroupTypes​(InstanceGroupType... instanceGroupTypes)

        The type of instance group for which to list the instances.

        Parameters:
        instanceGroupTypes - The type of instance group for which to list the instances.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        InstanceGroupType
      • getInstanceStates

        public List<String> getInstanceStates()

        A list of instance states that will filter the instances returned with this request.

        Returns:
        A list of instance states that will filter the instances returned with this request.
        See Also:
        InstanceState
      • setInstanceStates

        public void setInstanceStates​(Collection<String> instanceStates)

        A list of instance states that will filter the instances returned with this request.

        Parameters:
        instanceStates - A list of instance states that will filter the instances returned with this request.
        See Also:
        InstanceState
      • withInstanceStates

        public ListInstancesRequest withInstanceStates​(String... instanceStates)

        A list of instance states that will filter the instances returned with this request.

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

        Parameters:
        instanceStates - A list of instance states that will filter the instances returned with this request.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        InstanceState
      • withInstanceStates

        public ListInstancesRequest withInstanceStates​(Collection<String> instanceStates)

        A list of instance states that will filter the instances returned with this request.

        Parameters:
        instanceStates - A list of instance states that will filter the instances returned with this request.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        InstanceState
      • withInstanceStates

        public ListInstancesRequest withInstanceStates​(InstanceState... instanceStates)

        A list of instance states that will filter the instances returned with this request.

        Parameters:
        instanceStates - A list of instance states that will filter the instances returned with this request.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        InstanceState
      • setMarker

        public void setMarker​(String marker)

        The pagination token that indicates the next set of results to retrieve.

        Parameters:
        marker - The pagination token that indicates the next set of results to retrieve.
      • getMarker

        public String getMarker()

        The pagination token that indicates the next set of results to retrieve.

        Returns:
        The pagination token that indicates the next set of results to retrieve.
      • withMarker

        public ListInstancesRequest withMarker​(String marker)

        The pagination token that indicates the next set of results to retrieve.

        Parameters:
        marker - The pagination token that indicates the next set of results to retrieve.
        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