@Generated(value="software.amazon.awssdk:codegen") public final class AddLayerVersionPermissionRequest extends LambdaRequest implements ToCopyableBuilder<AddLayerVersionPermissionRequest.Builder,AddLayerVersionPermissionRequest>
Modifier and Type | Class and Description |
---|---|
static interface |
AddLayerVersionPermissionRequest.Builder |
Modifier and Type | Method and Description |
---|---|
String |
action()
The API action that grants access to the layer.
|
static AddLayerVersionPermissionRequest.Builder |
builder() |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
String |
layerName()
The name or Amazon Resource Name (ARN) of the layer.
|
String |
organizationId()
With the principal set to
* , grant permission to all accounts in the specified organization. |
String |
principal()
An account ID, or
* to grant layer usage permission to all accounts in an organization, or all
Amazon Web Services accounts (if organizationId is not specified). |
String |
revisionId()
Only update the policy if the revision ID matches the ID specified.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends AddLayerVersionPermissionRequest.Builder> |
serializableBuilderClass() |
String |
statementId()
An identifier that distinguishes the policy from others on the same layer version.
|
AddLayerVersionPermissionRequest.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
Long |
versionNumber()
The version number.
|
overrideConfiguration
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
copy
public final String layerName()
The name or Amazon Resource Name (ARN) of the layer.
public final Long versionNumber()
The version number.
public final String statementId()
An identifier that distinguishes the policy from others on the same layer version.
public final String action()
The API action that grants access to the layer. For example, lambda:GetLayerVersion
.
lambda:GetLayerVersion
.public final String principal()
An account ID, or *
to grant layer usage permission to all accounts in an organization, or all
Amazon Web Services accounts (if organizationId
is not specified). For the last case, make sure that
you really do want all Amazon Web Services accounts to have usage permission to this layer.
*
to grant layer usage permission to all accounts in an organization, or
all Amazon Web Services accounts (if organizationId
is not specified). For the last case,
make sure that you really do want all Amazon Web Services accounts to have usage permission to this
layer.public final String organizationId()
With the principal set to *
, grant permission to all accounts in the specified organization.
*
, grant permission to all accounts in the specified organization.public final String revisionId()
Only update the policy if the revision ID matches the ID specified. Use this option to avoid modifying a policy that has changed since you last read it.
public AddLayerVersionPermissionRequest.Builder toBuilder()
toBuilder
in interface ToCopyableBuilder<AddLayerVersionPermissionRequest.Builder,AddLayerVersionPermissionRequest>
toBuilder
in class LambdaRequest
public static AddLayerVersionPermissionRequest.Builder builder()
public static Class<? extends AddLayerVersionPermissionRequest.Builder> serializableBuilderClass()
public final int hashCode()
hashCode
in class AwsRequest
public final boolean equals(Object obj)
equals
in class AwsRequest
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields
in interface SdkPojo
public final String toString()
public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
getValueForField
in class SdkRequest
Copyright © 2023. All rights reserved.