Record Class PutResourcePolicyOptions
java.lang.Object
java.lang.Record
codes.grow.packages.awssecretsmanager.PutResourcePolicyOptions
- Record Components:
blockPublicPolicy- Whether policies that grant public access are rejected (AWS default true).
Options of
putResourcePolicy.
Every component is optional: null means "not set" (the AWS default applies).
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionPutResourcePolicyOptions(Boolean blockPublicPolicy) Creates an instance of aPutResourcePolicyOptionsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theblockPublicPolicyrecord component.builder()Starts a builder.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.static PutResourcePolicyOptionsnone()Returns options with every field unset.Returns a builder pre-filled with these options.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
PutResourcePolicyOptions
Creates an instance of aPutResourcePolicyOptionsrecord class.- Parameters:
blockPublicPolicy- the value for theblockPublicPolicyrecord component
-
-
Method Details
-
none
Returns options with every field unset.- Returns:
- empty options
-
builder
Starts a builder.- Returns:
- a new builder
-
toBuilder
Returns a builder pre-filled with these options.- Returns:
- a new builder
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
blockPublicPolicy
Returns the value of theblockPublicPolicyrecord component.- Returns:
- the value of the
blockPublicPolicyrecord component
-