Class AddLayerVersionPermissionRequest
- java.lang.Object
-
- software.amazon.awssdk.core.SdkRequest
-
- software.amazon.awssdk.awscore.AwsRequest
-
- software.amazon.awssdk.services.lambda.model.LambdaRequest
-
- software.amazon.awssdk.services.lambda.model.AddLayerVersionPermissionRequest
-
- All Implemented Interfaces:
SdkPojo
,ToCopyableBuilder<AddLayerVersionPermissionRequest.Builder,AddLayerVersionPermissionRequest>
@Generated("software.amazon.awssdk:codegen") public final class AddLayerVersionPermissionRequest extends LambdaRequest implements ToCopyableBuilder<AddLayerVersionPermissionRequest.Builder,AddLayerVersionPermissionRequest>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
AddLayerVersionPermissionRequest.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method 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 (iforganizationId
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.-
Methods inherited from class software.amazon.awssdk.awscore.AwsRequest
overrideConfiguration
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
layerName
public final String layerName()
The name or Amazon Resource Name (ARN) of the layer.
- Returns:
- The name or Amazon Resource Name (ARN) of the layer.
-
versionNumber
public final Long versionNumber()
The version number.
- Returns:
- The version number.
-
statementId
public final String statementId()
An identifier that distinguishes the policy from others on the same layer version.
- Returns:
- An identifier that distinguishes the policy from others on the same layer version.
-
action
public final String action()
The API action that grants access to the layer. For example,
lambda:GetLayerVersion
.- Returns:
- The API action that grants access to the layer. For example,
lambda:GetLayerVersion
.
-
principal
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 (iforganizationId
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.- Returns:
- An account ID, or
*
to grant layer usage permission to all accounts in an organization, or all Amazon Web Services accounts (iforganizationId
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.
-
organizationId
public final String organizationId()
With the principal set to
*
, grant permission to all accounts in the specified organization.- Returns:
- With the principal set to
*
, grant permission to all accounts in the specified organization.
-
revisionId
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.
- Returns:
- 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.
-
toBuilder
public AddLayerVersionPermissionRequest.Builder toBuilder()
- Specified by:
toBuilder
in interfaceToCopyableBuilder<AddLayerVersionPermissionRequest.Builder,AddLayerVersionPermissionRequest>
- Specified by:
toBuilder
in classLambdaRequest
-
builder
public static AddLayerVersionPermissionRequest.Builder builder()
-
serializableBuilderClass
public static Class<? extends AddLayerVersionPermissionRequest.Builder> serializableBuilderClass()
-
hashCode
public final int hashCode()
- Overrides:
hashCode
in classAwsRequest
-
equals
public final boolean equals(Object obj)
- Overrides:
equals
in classAwsRequest
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFields
in interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
getValueForField
public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
- Overrides:
getValueForField
in classSdkRequest
-
-