@Validated
public class BucketProperties
extends java.lang.Object
Constructor and Description |
---|
BucketProperties() |
Modifier and Type | Method and Description |
---|---|
java.util.Optional<java.lang.String> |
getRegion()
Get the
Regions this bucket is in. |
java.util.Optional<java.lang.String> |
getRoleARN()
Get the ARN of the role to assume from this instance when working with the given bucket.
|
void |
setRegion(java.lang.String region)
Set the AWS region from a string name representation e.g.
|
void |
setRoleARN(java.lang.String roleARN)
Set the ARN of the role to assume from this instance when working with the given bucket.
|
public java.util.Optional<java.lang.String> getRegion()
Regions
this bucket is in.Regions.getName()
wrapped in an Optional
. If the optional is empty it indicates that
the default or current region should be usedpublic void setRegion(@Nullable java.lang.String region)
region
- The name of the region to useRegions.fromName(String)
public java.util.Optional<java.lang.String> getRoleARN()
Optional
. If the Optional
is empty no role should be assumed when
working with this bucketpublic void setRoleARN(@Nullable java.lang.String roleARN)
roleARN
- The valid role ARN or null if no role assumption is needed.java.lang.IllegalArgumentException
- If the roleARN
is not null and the value isn't a valid role ARN format