@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AddLayerVersionPermissionRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP
Constructor and Description |
---|
AddLayerVersionPermissionRequest() |
Modifier and Type | Method and Description |
---|---|
AddLayerVersionPermissionRequest |
clone() |
boolean |
equals(Object obj) |
String |
getAction()
The API action that grants access to the layer.
|
String |
getLayerName()
The name or Amazon Resource Name (ARN) of the layer.
|
String |
getOrganizationId()
With the principal set to
* , grant permission to all accounts in the specified organization. |
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). |
String |
getRevisionId()
Only update the policy if the revision ID matches the ID specified.
|
String |
getStatementId()
An identifier that distinguishes the policy from others on the same layer version.
|
Long |
getVersionNumber()
The version number.
|
int |
hashCode() |
void |
setAction(String action)
The API action that grants access to the layer.
|
void |
setLayerName(String layerName)
The name or Amazon Resource Name (ARN) of the layer.
|
void |
setOrganizationId(String organizationId)
With the principal set to
* , grant permission to all accounts in the specified organization. |
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). |
void |
setRevisionId(String revisionId)
Only update the policy if the revision ID matches the ID specified.
|
void |
setStatementId(String statementId)
An identifier that distinguishes the policy from others on the same layer version.
|
void |
setVersionNumber(Long versionNumber)
The version number.
|
String |
toString()
Returns a string representation of this object.
|
AddLayerVersionPermissionRequest |
withAction(String action)
The API action that grants access to the layer.
|
AddLayerVersionPermissionRequest |
withLayerName(String layerName)
The name or Amazon Resource Name (ARN) of the layer.
|
AddLayerVersionPermissionRequest |
withOrganizationId(String organizationId)
With the principal set to
* , grant permission to all accounts in the specified organization. |
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). |
AddLayerVersionPermissionRequest |
withRevisionId(String revisionId)
Only update the policy if the revision ID matches the ID specified.
|
AddLayerVersionPermissionRequest |
withStatementId(String statementId)
An identifier that distinguishes the policy from others on the same layer version.
|
AddLayerVersionPermissionRequest |
withVersionNumber(Long versionNumber)
The version number.
|
addHandlerContext, copyBaseTo, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestCredentialsProvider, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
public void setLayerName(String layerName)
The name or Amazon Resource Name (ARN) of the layer.
layerName
- The name or Amazon Resource Name (ARN) of the layer.public String getLayerName()
The name or Amazon Resource Name (ARN) of the layer.
public AddLayerVersionPermissionRequest withLayerName(String layerName)
The name or Amazon Resource Name (ARN) of the layer.
layerName
- The name or Amazon Resource Name (ARN) of the layer.public void setVersionNumber(Long versionNumber)
The version number.
versionNumber
- The version number.public Long getVersionNumber()
The version number.
public AddLayerVersionPermissionRequest withVersionNumber(Long versionNumber)
The version number.
versionNumber
- The version number.public void setStatementId(String statementId)
An identifier that distinguishes the policy from others on the same layer version.
statementId
- An identifier that distinguishes the policy from others on the same layer version.public String getStatementId()
An identifier that distinguishes the policy from others on the same layer version.
public AddLayerVersionPermissionRequest withStatementId(String statementId)
An identifier that distinguishes the policy from others on the same layer version.
statementId
- An identifier that distinguishes the policy from others on the same layer version.public void setAction(String action)
The API action that grants access to the layer. For example, lambda:GetLayerVersion
.
action
- The API action that grants access to the layer. For example, lambda:GetLayerVersion
.public String getAction()
The API action that grants access to the layer. For example, lambda:GetLayerVersion
.
lambda:GetLayerVersion
.public AddLayerVersionPermissionRequest withAction(String action)
The API action that grants access to the layer. For example, lambda:GetLayerVersion
.
action
- The API action that grants access to the layer. For example, lambda:GetLayerVersion
.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.
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.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.
*
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.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.
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.public void setOrganizationId(String organizationId)
With the principal set to *
, grant permission to all accounts in the specified organization.
organizationId
- With the principal set to *
, grant permission to all accounts in the specified organization.public String getOrganizationId()
With the principal set to *
, grant permission to all accounts in the specified organization.
*
, grant permission to all accounts in the specified organization.public AddLayerVersionPermissionRequest withOrganizationId(String organizationId)
With the principal set to *
, grant permission to all accounts in the specified organization.
organizationId
- With the principal set to *
, grant permission to all accounts in the specified organization.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.
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.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.
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.
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.public String toString()
toString
in class Object
Object.toString()
public AddLayerVersionPermissionRequest clone()
clone
in class AmazonWebServiceRequest
Copyright © 2023. All rights reserved.