Interface AddLayerVersionPermissionRequest.Builder
-
- All Superinterfaces:
AwsRequest.Builder
,Buildable
,CopyableBuilder<AddLayerVersionPermissionRequest.Builder,AddLayerVersionPermissionRequest>
,LambdaRequest.Builder
,SdkBuilder<AddLayerVersionPermissionRequest.Builder,AddLayerVersionPermissionRequest>
,SdkPojo
,SdkRequest.Builder
- Enclosing class:
- AddLayerVersionPermissionRequest
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.Builder
action(String action)
The API action that grants access to the layer.AddLayerVersionPermissionRequest.Builder
layerName(String layerName)
The name or Amazon Resource Name (ARN) of the layer.AddLayerVersionPermissionRequest.Builder
organizationId(String organizationId)
With the principal set to*
, grant permission to all accounts in the specified organization.AddLayerVersionPermissionRequest.Builder
overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
AddLayerVersionPermissionRequest.Builder
overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
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 (iforganizationId
is not specified).AddLayerVersionPermissionRequest.Builder
revisionId(String revisionId)
Only update the policy if the revision ID matches the ID specified.AddLayerVersionPermissionRequest.Builder
statementId(String statementId)
An identifier that distinguishes the policy from others on the same layer version.AddLayerVersionPermissionRequest.Builder
versionNumber(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, 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 (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.- Parameters:
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:
- 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:
overrideConfiguration
in interfaceAwsRequest.Builder
-
overrideConfiguration
AddLayerVersionPermissionRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
-
-