@Generated(value="software.amazon.awssdk:codegen") public final class SetResourceAccessForBucketRequest extends LightsailRequest implements ToCopyableBuilder<SetResourceAccessForBucketRequest.Builder,SetResourceAccessForBucketRequest>
| Modifier and Type | Class and Description |
|---|---|
static interface |
SetResourceAccessForBucketRequest.Builder |
| Modifier and Type | Method and Description |
|---|---|
ResourceBucketAccess |
access()
The access setting.
|
String |
accessAsString()
The access setting.
|
String |
bucketName()
The name of the bucket for which to set access to another Lightsail resource.
|
static SetResourceAccessForBucketRequest.Builder |
builder() |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
String |
resourceName()
The name of the Lightsail instance for which to set bucket access.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends SetResourceAccessForBucketRequest.Builder> |
serializableBuilderClass() |
SetResourceAccessForBucketRequest.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
overrideConfigurationclone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic 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.
public final String bucketName()
The name of the bucket for which to set access to another Lightsail resource.
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().
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.
ResourceBucketAccesspublic 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().
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.
ResourceBucketAccesspublic SetResourceAccessForBucketRequest.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<SetResourceAccessForBucketRequest.Builder,SetResourceAccessForBucketRequest>toBuilder in class LightsailRequestpublic static SetResourceAccessForBucketRequest.Builder builder()
public static Class<? extends SetResourceAccessForBucketRequest.Builder> serializableBuilderClass()
public final int hashCode()
hashCode in class AwsRequestpublic final boolean equals(Object obj)
equals in class AwsRequestpublic final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
getValueForField in class SdkRequestCopyright © 2022. All rights reserved.