Interface SetResourceAccessForBucketRequest.Builder

    • Method Detail

      • resourceName

        SetResourceAccessForBucketRequest.Builder resourceName​(String resourceName)

        The name of the Lightsail instance for which to set bucket access. The instance must be in a running or stopped state.

        Parameters:
        resourceName - The name of the Lightsail instance for which to set bucket access. The instance must be in a running or stopped state.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • bucketName

        SetResourceAccessForBucketRequest.Builder bucketName​(String bucketName)

        The name of the bucket for which to set access to another Lightsail resource.

        Parameters:
        bucketName - The name of the bucket for which to set access to another Lightsail resource.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • access

        SetResourceAccessForBucketRequest.Builder access​(String access)

        The access setting.

        The following access settings are available:

        • allow - Allows access to the bucket and its objects.

        • deny - Denies access to the bucket and its objects. Use this setting to remove access for a resource previously set to allow.

        Parameters:
        access - The access setting.

        The following access settings are available:

        • allow - Allows access to the bucket and its objects.

        • deny - Denies access to the bucket and its objects. Use this setting to remove access for a resource previously set to allow.

        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        ResourceBucketAccess, ResourceBucketAccess
      • access

        SetResourceAccessForBucketRequest.Builder access​(ResourceBucketAccess access)

        The access setting.

        The following access settings are available:

        • allow - Allows access to the bucket and its objects.

        • deny - Denies access to the bucket and its objects. Use this setting to remove access for a resource previously set to allow.

        Parameters:
        access - The access setting.

        The following access settings are available:

        • allow - Allows access to the bucket and its objects.

        • deny - Denies access to the bucket and its objects. Use this setting to remove access for a resource previously set to allow.

        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        ResourceBucketAccess, ResourceBucketAccess