Class GetInstancePlainArgs.Builder

  • Enclosing class:
    GetInstancePlainArgs

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

      • filters

        public GetInstancePlainArgs.Builder filters​(@Nullable
                                                    java.util.List<GetInstanceFilter> filters)
        Parameters:
        filters - One or more name/value pairs to use as filters. There are several valid keys, for a full reference, check out [describe-instances in the AWS CLI reference][1].
        Returns:
        builder
      • filters

        public GetInstancePlainArgs.Builder filters​(GetInstanceFilter... filters)
        Parameters:
        filters - One or more name/value pairs to use as filters. There are several valid keys, for a full reference, check out [describe-instances in the AWS CLI reference][1].
        Returns:
        builder
      • getPasswordData

        public GetInstancePlainArgs.Builder getPasswordData​(@Nullable
                                                            java.lang.Boolean getPasswordData)
        Parameters:
        getPasswordData - If true, wait for password data to become available and retrieve it. Useful for getting the administrator password for instances running Microsoft Windows. The password data is exported to the `password_data` attribute. See [GetPasswordData](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_GetPasswordData.html) for more information.
        Returns:
        builder
      • getUserData

        public GetInstancePlainArgs.Builder getUserData​(@Nullable
                                                        java.lang.Boolean getUserData)
        Parameters:
        getUserData - Retrieve Base64 encoded User Data contents into the `user_data_base64` attribute. A SHA-1 hash of the User Data contents will always be present in the `user_data` attribute. Defaults to `false`. > **NOTE:** At least one of `filter`, `instance_tags`, or `instance_id` must be specified. > **NOTE:** If anything other than a single match is returned by the search, this call will fail. Ensure that your search is specific enough to return a single Instance ID only.
        Returns:
        builder
      • instanceId

        public GetInstancePlainArgs.Builder instanceId​(@Nullable
                                                       java.lang.String instanceId)
        Parameters:
        instanceId - Specify the exact Instance ID with which to populate the data source.
        Returns:
        builder
      • instanceTags

        public GetInstancePlainArgs.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 the desired Instance.
        Returns:
        builder
      • tags

        public GetInstancePlainArgs.Builder tags​(@Nullable
                                                 java.util.Map<java.lang.String,​java.lang.String> tags)
        Parameters:
        tags - Map of tags assigned to the Instance.
        Returns:
        builder