Class GetInstancesPlainArgs.Builder

  • Enclosing class:
    GetInstancesPlainArgs

    public static final class GetInstancesPlainArgs.Builder
    extends java.lang.Object
    • Method Detail

      • filters

        public GetInstancesPlainArgs.Builder filters​(@Nullable
                                                     java.util.List<GetInstancesFilter> filters)
        Parameters:
        filters - One or more filters to apply to the search. If multiple `filter` blocks are provided, they all must be true. For a full reference of filter names, see [describe-instances in the AWS CLI reference](http://docs.aws.amazon.com/cli/latest/reference/ec2/describe-instances.html). See `filter` Block below.
        Returns:
        builder
      • filters

        public GetInstancesPlainArgs.Builder filters​(GetInstancesFilter... filters)
        Parameters:
        filters - One or more filters to apply to the search. If multiple `filter` blocks are provided, they all must be true. For a full reference of filter names, see [describe-instances in the AWS CLI reference](http://docs.aws.amazon.com/cli/latest/reference/ec2/describe-instances.html). See `filter` Block below.
        Returns:
        builder
      • instanceStateNames

        public GetInstancesPlainArgs.Builder instanceStateNames​(@Nullable
                                                                java.util.List<java.lang.String> instanceStateNames)
        Parameters:
        instanceStateNames - List of instance states that should be applicable to the desired instances. The permitted values are: `pending, running, shutting-down, stopped, stopping, terminated`. The default value is `running`.
        Returns:
        builder
      • instanceStateNames

        public GetInstancesPlainArgs.Builder instanceStateNames​(java.lang.String... instanceStateNames)
        Parameters:
        instanceStateNames - List of instance states that should be applicable to the desired instances. The permitted values are: `pending, running, shutting-down, stopped, stopping, terminated`. The default value is `running`.
        Returns:
        builder
      • instanceTags

        public GetInstancesPlainArgs.Builder instanceTags​(@Nullable
                                                          java.util.Map<java.lang.String,​java.lang.String> instanceTags)
        Parameters:
        instanceTags - Map of tags, each pair of which must exactly match a pair on desired instances.
        Returns:
        builder
      • region

        public GetInstancesPlainArgs.Builder region​(@Nullable
                                                    java.lang.String region)
        Parameters:
        region - Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
        Returns:
        builder