@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class SetResourceAccessForBucketRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP
Constructor and Description |
---|
SetResourceAccessForBucketRequest() |
Modifier and Type | Method and Description |
---|---|
SetResourceAccessForBucketRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
String |
getAccess()
The access setting.
|
String |
getBucketName()
The name of the bucket for which to set access to another Lightsail resource.
|
String |
getResourceName()
The name of the Lightsail instance for which to set bucket access.
|
int |
hashCode() |
void |
setAccess(String access)
The access setting.
|
void |
setBucketName(String bucketName)
The name of the bucket for which to set access to another Lightsail resource.
|
void |
setResourceName(String resourceName)
The name of the Lightsail instance for which to set bucket access.
|
String |
toString()
Returns a string representation of this object.
|
SetResourceAccessForBucketRequest |
withAccess(ResourceBucketAccess access)
The access setting.
|
SetResourceAccessForBucketRequest |
withAccess(String access)
The access setting.
|
SetResourceAccessForBucketRequest |
withBucketName(String bucketName)
The name of the bucket for which to set access to another Lightsail resource.
|
SetResourceAccessForBucketRequest |
withResourceName(String resourceName)
The name of the Lightsail instance for which to set bucket access.
|
addHandlerContext, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestCredentialsProvider, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
public void setResourceName(String resourceName)
The name of the Lightsail instance for which to set bucket access. The instance must be in a running or stopped state.
resourceName
- The name of the Lightsail instance for which to set bucket access. The instance must be in a running or
stopped state.public String getResourceName()
The name of the Lightsail instance for which to set bucket access. The instance must be in a running or stopped state.
public SetResourceAccessForBucketRequest withResourceName(String resourceName)
The name of the Lightsail instance for which to set bucket access. The instance must be in a running or stopped state.
resourceName
- The name of the Lightsail instance for which to set bucket access. The instance must be in a running or
stopped state.public void setBucketName(String bucketName)
The name of the bucket for which to set access to another Lightsail resource.
bucketName
- The name of the bucket for which to set access to another Lightsail resource.public String getBucketName()
The name of the bucket for which to set access to another Lightsail resource.
public SetResourceAccessForBucketRequest withBucketName(String bucketName)
The name of the bucket for which to set access to another Lightsail resource.
bucketName
- The name of the bucket for which to set access to another Lightsail resource.public void setAccess(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
.
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
.
ResourceBucketAccess
public String getAccess()
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
.
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
.
ResourceBucketAccess
public SetResourceAccessForBucketRequest withAccess(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
.
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
.
ResourceBucketAccess
public SetResourceAccessForBucketRequest withAccess(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
.
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
.
ResourceBucketAccess
public String toString()
toString
in class Object
Object.toString()
public SetResourceAccessForBucketRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()