@Generated(value="software.amazon.awssdk:codegen") public final class AddPermissionRequest extends SnsRequest implements ToCopyableBuilder<AddPermissionRequest.Builder,AddPermissionRequest>
Modifier and Type | Class and Description |
---|---|
static interface |
AddPermissionRequest.Builder |
Modifier and Type | Method and Description |
---|---|
List<String> |
actionNames()
The action you want to allow for the specified principal(s).
|
List<String> |
awsAccountIds()
The AWS account IDs of the users (principals) who will be given access to the specified actions.
|
static AddPermissionRequest.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 |
label()
A unique identifier for the new policy statement.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends AddPermissionRequest.Builder> |
serializableBuilderClass() |
AddPermissionRequest.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
topicArn()
The ARN of the topic whose access control policy you wish to modify.
|
String |
toString() |
overrideConfiguration
copy
public String topicArn()
The ARN of the topic whose access control policy you wish to modify.
public String label()
A unique identifier for the new policy statement.
public List<String> awsAccountIds()
The AWS account IDs of the users (principals) who will be given access to the specified actions. The users must have AWS accounts, but do not need to be signed up for this service.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
public List<String> actionNames()
The action you want to allow for the specified principal(s).
Valid values: any Amazon SNS action name.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
Valid values: any Amazon SNS action name.
public AddPermissionRequest.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<AddPermissionRequest.Builder,AddPermissionRequest>
toBuilder
in class SnsRequest
public static AddPermissionRequest.Builder builder()
public static Class<? extends AddPermissionRequest.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.