@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) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
boolean |
hasActionNames()
Returns true if the ActionNames property was specified by the sender (it may be empty), or false if the sender
did not specify the value (it will be empty).
|
boolean |
hasAwsAccountIds()
Returns true if the AWSAccountIds property was specified by the sender (it may be empty), or false if the sender
did not specify the value (it will be empty).
|
int |
hashCode() |
String |
label()
A unique identifier for the new policy statement.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends AddPermissionRequest.Builder> |
serializableBuilderClass() |
AddPermissionRequest.Builder |
toBuilder() |
String |
topicArn()
The ARN of the topic whose access control policy you wish to modify.
|
String |
toString()
Returns a string representation of this object.
|
overrideConfiguration
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
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 boolean hasAwsAccountIds()
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.
You can use hasAwsAccountIds()
to see if a value was sent in this field.
public boolean hasActionNames()
public List<String> actionNames()
The action you want to allow for the specified principal(s).
Valid values: Any Amazon SNS action name, for example Publish
.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasActionNames()
to see if a value was sent in this field.
Valid values: Any Amazon SNS action name, for example Publish
.
public AddPermissionRequest.Builder toBuilder()
toBuilder
in interface ToCopyableBuilder<AddPermissionRequest.Builder,AddPermissionRequest>
toBuilder
in class SnsRequest
public static AddPermissionRequest.Builder builder()
public static Class<? extends AddPermissionRequest.Builder> serializableBuilderClass()
public int hashCode()
hashCode
in class AwsRequest
public boolean equals(Object obj)
equals
in class AwsRequest
public boolean equalsBySdkFields(Object obj)
equalsBySdkFields
in interface SdkPojo
public String toString()
public <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
getValueForField
in class SdkRequest
Copyright © 2020. All rights reserved.