JavaScript is disabled on your browser.
Skip navigation links

AWS SDK for Java 1.x API Reference - 1.12.795

We announced the upcoming end-of-support for AWS SDK for Java (v1). We recommend that you migrate to AWS SDK for Java v2. For dates, additional details, and information on how to migrate, please refer to the linked announcement.
com.amazonaws.services.lambda.model

Class AddLayerVersionPermissionRequest

    • Constructor Detail

      • AddLayerVersionPermissionRequest

        public AddLayerVersionPermissionRequest()
    • Method Detail

      • setLayerName

        public void setLayerName(String layerName)

        The name or Amazon Resource Name (ARN) of the layer.

        Parameters:
        layerName - The name or Amazon Resource Name (ARN) of the layer.
      • getLayerName

        public String getLayerName()

        The name or Amazon Resource Name (ARN) of the layer.

        Returns:
        The name or Amazon Resource Name (ARN) of the layer.
      • withLayerName

        public AddLayerVersionPermissionRequest withLayerName(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.
      • setVersionNumber

        public void setVersionNumber(Long versionNumber)

        The version number.

        Parameters:
        versionNumber - The version number.
      • getVersionNumber

        public Long getVersionNumber()

        The version number.

        Returns:
        The version number.
      • withVersionNumber

        public AddLayerVersionPermissionRequest withVersionNumber(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.
      • setStatementId

        public void setStatementId(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.
      • getStatementId

        public String getStatementId()

        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.
      • withStatementId

        public AddLayerVersionPermissionRequest withStatementId(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.
      • setAction

        public void setAction(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.
      • getAction

        public String getAction()

        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.
      • withAction

        public AddLayerVersionPermissionRequest withAction(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.
      • setPrincipal

        public void setPrincipal(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.

        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.
      • getPrincipal

        public String getPrincipal()

        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:
        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.
      • withPrincipal

        public AddLayerVersionPermissionRequest withPrincipal(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.

        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.
      • setOrganizationId

        public void setOrganizationId(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.
      • getOrganizationId

        public String getOrganizationId()

        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.
      • withOrganizationId

        public AddLayerVersionPermissionRequest withOrganizationId(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.
      • setRevisionId

        public void setRevisionId(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.
      • getRevisionId

        public String getRevisionId()

        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.
      • withRevisionId

        public AddLayerVersionPermissionRequest withRevisionId(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.
      • toString

        public 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.
        Overrides:
        toString in class Object
        Returns:
        A string representation of this object.
        See Also:
        Object.toString()
Skip navigation links

AltStyle によって変換されたページ (->オリジナル) /