Class AccessRules
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<AccessRules.Builder,AccessRules>
Describes the anonymous access permissions for an Amazon Lightsail bucket and its objects.
For more information about bucket access permissions, see Understanding bucket permissions in Amazon Lightsail in the
Amazon Lightsail Developer Guide.
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionfinal BooleanA Boolean value that indicates whether the access control list (ACL) permissions that are applied to individual objects override thegetObjectoption that is currently specified.static AccessRules.Builderbuilder()final booleanfinal booleanequalsBySdkFields(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.final AccessTypeSpecifies the anonymous access to all objects in a bucket.final StringSpecifies the anonymous access to all objects in a bucket.final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) final inthashCode()static Class<? extends AccessRules.Builder> Take this object and create a builder that contains all of the current property values of this object.final StringtoString()Returns a string representation of this object.Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
getObject
Specifies the anonymous access to all objects in a bucket.
The following options can be specified:
-
public- Sets all objects in the bucket to public (read-only), making them readable by anyone in the world.If the
getObjectvalue is set topublic, then all objects in the bucket default to public regardless of theallowPublicOverridesvalue. -
private- Sets all objects in the bucket to private, making them readable only by you or anyone you give access to.If the
getObjectvalue is set toprivate, and theallowPublicOverridesvalue is set totrue, then all objects in the bucket default to private unless they are configured with apublic-readACL. Individual objects with apublic-readACL are readable by anyone in the world.
If the service returns an enum value that is not available in the current SDK version,
getObjectwill returnAccessType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromgetObjectAsString().- Returns:
- Specifies the anonymous access to all objects in a bucket.
The following options can be specified:
-
public- Sets all objects in the bucket to public (read-only), making them readable by anyone in the world.If the
getObjectvalue is set topublic, then all objects in the bucket default to public regardless of theallowPublicOverridesvalue. -
private- Sets all objects in the bucket to private, making them readable only by you or anyone you give access to.If the
getObjectvalue is set toprivate, and theallowPublicOverridesvalue is set totrue, then all objects in the bucket default to private unless they are configured with apublic-readACL. Individual objects with apublic-readACL are readable by anyone in the world.
-
- See Also:
-
-
getObjectAsString
Specifies the anonymous access to all objects in a bucket.
The following options can be specified:
-
public- Sets all objects in the bucket to public (read-only), making them readable by anyone in the world.If the
getObjectvalue is set topublic, then all objects in the bucket default to public regardless of theallowPublicOverridesvalue. -
private- Sets all objects in the bucket to private, making them readable only by you or anyone you give access to.If the
getObjectvalue is set toprivate, and theallowPublicOverridesvalue is set totrue, then all objects in the bucket default to private unless they are configured with apublic-readACL. Individual objects with apublic-readACL are readable by anyone in the world.
If the service returns an enum value that is not available in the current SDK version,
getObjectwill returnAccessType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromgetObjectAsString().- Returns:
- Specifies the anonymous access to all objects in a bucket.
The following options can be specified:
-
public- Sets all objects in the bucket to public (read-only), making them readable by anyone in the world.If the
getObjectvalue is set topublic, then all objects in the bucket default to public regardless of theallowPublicOverridesvalue. -
private- Sets all objects in the bucket to private, making them readable only by you or anyone you give access to.If the
getObjectvalue is set toprivate, and theallowPublicOverridesvalue is set totrue, then all objects in the bucket default to private unless they are configured with apublic-readACL. Individual objects with apublic-readACL are readable by anyone in the world.
-
- See Also:
-
-
allowPublicOverrides
A Boolean value that indicates whether the access control list (ACL) permissions that are applied to individual objects override the
getObjectoption that is currently specified.When this is true, you can use the PutObjectAcl Amazon S3 API action to set individual objects to public (read-only) using the
public-readACL, or to private using theprivateACL.- Returns:
- A Boolean value that indicates whether the access control list (ACL) permissions that are applied to
individual objects override the
getObjectoption that is currently specified.When this is true, you can use the PutObjectAcl Amazon S3 API action to set individual objects to public (read-only) using the
public-readACL, or to private using theprivateACL.
-
toBuilder
Description copied from interface:ToCopyableBuilderTake this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilderin interfaceToCopyableBuilder<AccessRules.Builder,AccessRules> - Returns:
- a builder for type T
-
builder
-
serializableBuilderClass
-
hashCode
-
equals
-
equalsBySdkFields
Description copied from interface:SdkPojoIndicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in anSdkPojoclass, and is generated based on a service model.If an
SdkPojoclass does not have any inherited fields,equalsBySdkFieldsandequalsare essentially the same.- Specified by:
equalsBySdkFieldsin interfaceSdkPojo- Parameters:
obj- the object to be compared with- Returns:
- true if the other object equals to this object by sdk fields, false otherwise.
-
toString
-
getValueForField
-
sdkFields
-