Class SetResourceAccessForBucketRequest

    • Method Detail

      • resourceName

        public final String resourceName()

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

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

        public final String bucketName()

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

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

        public final 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.

        If the service returns an enum value that is not available in the current SDK version, access will return ResourceBucketAccess.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from accessAsString().

        Returns:
        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.

        See Also:
        ResourceBucketAccess
      • accessAsString

        public final String accessAsString()

        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.

        If the service returns an enum value that is not available in the current SDK version, access will return ResourceBucketAccess.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from accessAsString().

        Returns:
        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.

        See Also:
        ResourceBucketAccess
      • toString

        public final String toString()
        Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
        Overrides:
        toString in class Object