Class SetResourceAccessForBucketRequest
- java.lang.Object
-
- software.amazon.awssdk.core.SdkRequest
-
- software.amazon.awssdk.awscore.AwsRequest
-
- software.amazon.awssdk.services.lightsail.model.LightsailRequest
-
- software.amazon.awssdk.services.lightsail.model.SetResourceAccessForBucketRequest
-
- All Implemented Interfaces:
SdkPojo,ToCopyableBuilder<SetResourceAccessForBucketRequest.Builder,SetResourceAccessForBucketRequest>
@Generated("software.amazon.awssdk:codegen") public final class SetResourceAccessForBucketRequest extends LightsailRequest implements ToCopyableBuilder<SetResourceAccessForBucketRequest.Builder,SetResourceAccessForBucketRequest>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceSetResourceAccessForBucketRequest.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ResourceBucketAccessaccess()The access setting.StringaccessAsString()The access setting.StringbucketName()The name of the bucket for which to set access to another Lightsail resource.static SetResourceAccessForBucketRequest.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()StringresourceName()The name of the Lightsail instance for which to set bucket access.List<SdkField<?>>sdkFields()static Class<? extends SetResourceAccessForBucketRequest.Builder>serializableBuilderClass()SetResourceAccessForBucketRequest.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
Methods inherited from class software.amazon.awssdk.awscore.AwsRequest
overrideConfiguration
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
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 toallow.
If the service returns an enum value that is not available in the current SDK version,
accesswill returnResourceBucketAccess.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromaccessAsString().- 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 toallow.
-
- 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 toallow.
If the service returns an enum value that is not available in the current SDK version,
accesswill returnResourceBucketAccess.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromaccessAsString().- 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 toallow.
-
- See Also:
ResourceBucketAccess
-
-
toBuilder
public SetResourceAccessForBucketRequest.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<SetResourceAccessForBucketRequest.Builder,SetResourceAccessForBucketRequest>- Specified by:
toBuilderin classLightsailRequest
-
builder
public static SetResourceAccessForBucketRequest.Builder builder()
-
serializableBuilderClass
public static Class<? extends SetResourceAccessForBucketRequest.Builder> serializableBuilderClass()
-
hashCode
public final int hashCode()
- Overrides:
hashCodein classAwsRequest
-
equals
public final boolean equals(Object obj)
- Overrides:
equalsin classAwsRequest
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
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.
-
getValueForField
public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
- Overrides:
getValueForFieldin classSdkRequest
-
-