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 Details

    • 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

      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

      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

      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.

      Parameters:
      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.
      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

      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)
      Description copied from interface: AwsRequest.Builder
      Add an optional request override configuration.
      Specified by:
      overrideConfiguration in interface AwsRequest.Builder
      Parameters:
      overrideConfiguration - The override configuration.
      Returns:
      This object for method chaining.
    • overrideConfiguration

      Description copied from interface: AwsRequest.Builder
      Add an optional request override configuration.
      Specified by:
      overrideConfiguration in interface AwsRequest.Builder
      Parameters:
      builderConsumer - A Consumer to which an empty AwsRequestOverrideConfiguration.Builder will be given.
      Returns:
      This object for method chaining.