Interface TargetInstances.Builder

    • Method Detail

      • tagFilters

        TargetInstances.Builder tagFilters​(Collection<EC2TagFilter> tagFilters)

        The tag filter key, type, and value used to identify Amazon EC2 instances in a replacement environment for a blue/green deployment. Cannot be used in the same call as ec2TagSet.

        Parameters:
        tagFilters - The tag filter key, type, and value used to identify Amazon EC2 instances in a replacement environment for a blue/green deployment. Cannot be used in the same call as ec2TagSet.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • tagFilters

        TargetInstances.Builder tagFilters​(EC2TagFilter... tagFilters)

        The tag filter key, type, and value used to identify Amazon EC2 instances in a replacement environment for a blue/green deployment. Cannot be used in the same call as ec2TagSet.

        Parameters:
        tagFilters - The tag filter key, type, and value used to identify Amazon EC2 instances in a replacement environment for a blue/green deployment. Cannot be used in the same call as ec2TagSet.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • tagFilters

        TargetInstances.Builder tagFilters​(Consumer<EC2TagFilter.Builder>... tagFilters)

        The tag filter key, type, and value used to identify Amazon EC2 instances in a replacement environment for a blue/green deployment. Cannot be used in the same call as ec2TagSet.

        This is a convenience method that creates an instance of the EC2TagFilter.Builder avoiding the need to create one manually via EC2TagFilter.builder().

        When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to #tagFilters(List).

        Parameters:
        tagFilters - a consumer that will call methods on EC2TagFilter.Builder
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        #tagFilters(java.util.Collection)
      • autoScalingGroups

        TargetInstances.Builder autoScalingGroups​(Collection<String> autoScalingGroups)

        The names of one or more Auto Scaling groups to identify a replacement environment for a blue/green deployment.

        Parameters:
        autoScalingGroups - The names of one or more Auto Scaling groups to identify a replacement environment for a blue/green deployment.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • autoScalingGroups

        TargetInstances.Builder autoScalingGroups​(String... autoScalingGroups)

        The names of one or more Auto Scaling groups to identify a replacement environment for a blue/green deployment.

        Parameters:
        autoScalingGroups - The names of one or more Auto Scaling groups to identify a replacement environment for a blue/green deployment.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • ec2TagSet

        TargetInstances.Builder ec2TagSet​(EC2TagSet ec2TagSet)

        Information about the groups of Amazon EC2 instance tags that an instance must be identified by in order for it to be included in the replacement environment for a blue/green deployment. Cannot be used in the same call as tagFilters.

        Parameters:
        ec2TagSet - Information about the groups of Amazon EC2 instance tags that an instance must be identified by in order for it to be included in the replacement environment for a blue/green deployment. Cannot be used in the same call as tagFilters.
        Returns:
        Returns a reference to this object so that method calls can be chained together.