Interface AddLayerVersionPermissionRequest.Builder
-
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<AddLayerVersionPermissionRequest.Builder,AddLayerVersionPermissionRequest>,LambdaRequest.Builder,SdkBuilder<AddLayerVersionPermissionRequest.Builder,AddLayerVersionPermissionRequest>,SdkPojo,SdkRequest.Builder
- Enclosing class:
- AddLayerVersionPermissionRequest
@Mutable @NotThreadSafe public static interface AddLayerVersionPermissionRequest.Builder extends LambdaRequest.Builder, SdkPojo, CopyableBuilder<AddLayerVersionPermissionRequest.Builder,AddLayerVersionPermissionRequest>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description AddLayerVersionPermissionRequest.Builderaction(String action)The API action that grants access to the layer.AddLayerVersionPermissionRequest.BuilderlayerName(String layerName)The name or Amazon Resource Name (ARN) of the layer.AddLayerVersionPermissionRequest.BuilderorganizationId(String organizationId)With the principal set to*, grant permission to all accounts in the specified organization.AddLayerVersionPermissionRequest.BuilderoverrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)AddLayerVersionPermissionRequest.BuilderoverrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)AddLayerVersionPermissionRequest.Builderprincipal(String principal)An account ID, or*to grant layer usage permission to all accounts in an organization, or all Amazon Web Services accounts (iforganizationIdis not specified).AddLayerVersionPermissionRequest.BuilderrevisionId(String revisionId)Only update the policy if the revision ID matches the ID specified.AddLayerVersionPermissionRequest.BuilderstatementId(String statementId)An identifier that distinguishes the policy from others on the same layer version.AddLayerVersionPermissionRequest.BuilderversionNumber(Long versionNumber)The version number.-
Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.services.lambda.model.LambdaRequest.Builder
build
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
-
-
-
Method Detail
-
layerName
AddLayerVersionPermissionRequest.Builder layerName(String layerName)
The name or Amazon Resource Name (ARN) of the layer.
- Parameters:
layerName- The name or Amazon Resource Name (ARN) of the layer.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
versionNumber
AddLayerVersionPermissionRequest.Builder versionNumber(Long versionNumber)
The version number.
- Parameters:
versionNumber- The version number.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
statementId
AddLayerVersionPermissionRequest.Builder statementId(String statementId)
An identifier that distinguishes the policy from others on the same layer version.
- Parameters:
statementId- An identifier that distinguishes the policy from others on the same layer version.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
action
AddLayerVersionPermissionRequest.Builder action(String action)
The API action that grants access to the layer. For example,
lambda:GetLayerVersion.- Parameters:
action- The API action that grants access to the layer. For example,lambda:GetLayerVersion.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
principal
AddLayerVersionPermissionRequest.Builder principal(String principal)
An account ID, or
*to grant layer usage permission to all accounts in an organization, or all Amazon Web Services accounts (iforganizationIdis 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.- Parameters:
principal- An account ID, or*to grant layer usage permission to all accounts in an organization, or all Amazon Web Services accounts (iforganizationIdis 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:
- Returns a reference to this object so that method calls can be chained together.
-
organizationId
AddLayerVersionPermissionRequest.Builder organizationId(String organizationId)
With the principal set to
*, grant permission to all accounts in the specified organization.- Parameters:
organizationId- With the principal set to*, grant permission to all accounts in the specified organization.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
revisionId
AddLayerVersionPermissionRequest.Builder revisionId(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.
- Parameters:
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:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
AddLayerVersionPermissionRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
overrideConfiguration
AddLayerVersionPermissionRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
-