@Generated(value="software.amazon.awssdk:codegen") public final class AddLayerVersionPermissionRequest extends LambdaRequest implements ToCopyableBuilder<AddLayerVersionPermissionRequest.Builder,AddLayerVersionPermissionRequest>
Modifier and Type | Class and Description |
---|---|
static interface |
AddLayerVersionPermissionRequest.Builder |
Modifier and Type | Method and Description |
---|---|
String |
action()
The API action that grants access to the layer.
|
static AddLayerVersionPermissionRequest.Builder |
builder() |
boolean |
equals(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz)
Used to retrieve the value of a field from any class that extends
SdkRequest . |
int |
hashCode() |
String |
layerName()
The name of the layer.
|
String |
organizationId()
With the principal set to
* , grant permission to all accounts in the specified organization. |
String |
principal()
An account ID, or
* to grant permission to all AWS accounts. |
String |
revisionId()
Only update the policy if the revision ID matches the ID specified.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends AddLayerVersionPermissionRequest.Builder> |
serializableBuilderClass() |
String |
statementId()
An identifier that distinguishes the policy from others on the same layer version.
|
AddLayerVersionPermissionRequest.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
Long |
versionNumber()
The version number.
|
overrideConfiguration
copy
public String layerName()
The name of the layer.
public Long versionNumber()
The version number.
public String statementId()
An identifier that distinguishes the policy from others on the same layer version.
public String action()
The API action that grants access to the layer. For example, lambda:GetLayerVersion
.
lambda:GetLayerVersion
.public String principal()
An account ID, or *
to grant permission to all AWS accounts.
*
to grant permission to all AWS accounts.public String organizationId()
With the principal set to *
, grant permission to all accounts in the specified organization.
*
, grant permission to all accounts in the specified organization.public 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.
public AddLayerVersionPermissionRequest.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<AddLayerVersionPermissionRequest.Builder,AddLayerVersionPermissionRequest>
toBuilder
in class LambdaRequest
public static AddLayerVersionPermissionRequest.Builder builder()
public static Class<? extends AddLayerVersionPermissionRequest.Builder> serializableBuilderClass()
public <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
SdkRequest
SdkRequest
. The field name
specified should match the member name from the corresponding service-2.json model specified in the
codegen-resources folder for a given service. The class specifies what class to cast the returned value to.
If the returned value is also a modeled class, the SdkRequest.getValueForField(String, Class)
method will
again be available.getValueForField
in class SdkRequest
fieldName
- The name of the member to be retrieved.clazz
- The class to cast the returned object to.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.