/** * <p> * The action you want to allow for the specified principal(s). * </p> * <p> * Valid values: any Amazon SNS action name. * </p> * * @param actionNames * The action you want to allow for the specified principal(s).</p> * <p> * Valid values: any Amazon SNS action name. * @return Returns a reference to this object so that method calls can be chained together. */ public AddPermissionRequest withActionNames(java.util.Collection<String> actionNames) { setActionNames(actionNames); return this; }
/** * <p> * The action you want to allow for the specified principal(s). * </p> * <p> * Valid values: any Amazon SNS action name. * </p> * <p> * <b>NOTE:</b> This method appends the values to the existing list (if any). Use * {@link #setActionNames(java.util.Collection)} or {@link #withActionNames(java.util.Collection)} if you want to * override the existing values. * </p> * * @param actionNames * The action you want to allow for the specified principal(s).</p> * <p> * Valid values: any Amazon SNS action name. * @return Returns a reference to this object so that method calls can be chained together. */ public AddPermissionRequest withActionNames(String... actionNames) { if (this.actionNames == null) { setActionNames(new com.amazonaws.internal.SdkInternalList<String>(actionNames.length)); } for (String ele : actionNames) { this.actionNames.add(ele); } return this; }
/** * Constructs a new AddPermissionRequest object. Callers should use the setter or fluent setter (with...) methods to * initialize any additional object members. * * @param topicArn * The ARN of the topic whose access control policy you wish to modify. * @param label * A unique identifier for the new policy statement. * @param 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. * @param actionNames * The action you want to allow for the specified principal(s).</p> * <p> * Valid values: any Amazon SNS action name. */ public AddPermissionRequest(String topicArn, String label, java.util.List<String> aWSAccountIds, java.util.List<String> actionNames) { setTopicArn(topicArn); setLabel(label); setAWSAccountIds(aWSAccountIds); setActionNames(actionNames); }
/** * <p> * The action you want to allow for the specified principal(s). * </p> * <p> * Valid values: any Amazon SNS action name. * </p> * <p> * Returns a reference to this object so that method calls can be chained * together. * * @param actionNames <p> * The action you want to allow for the specified principal(s). * </p> * <p> * Valid values: any Amazon SNS action name. * </p> * @return A reference to this updated object so that method calls can be * chained together. */ public AddPermissionRequest withActionNames(java.util.Collection<String> actionNames) { setActionNames(actionNames); return this; }
setLabel(label); setAWSAccountIds(aWSAccountIds); setActionNames(actionNames);
addPermissionRequest.setLabel(label); addPermissionRequest.setAWSAccountIds(aWSAccountIds); addPermissionRequest.setActionNames(actionNames); addPermission(addPermissionRequest);
/** * <p> * The action you want to allow for the specified principal(s). * </p> * <p> * Valid values: any Amazon SNS action name. * </p> * <p> * Returns a reference to this object so that method calls can be chained * together. * * @param actionNames <p> * The action you want to allow for the specified principal(s). * </p> * <p> * Valid values: any Amazon SNS action name. * </p> * @return A reference to this updated object so that method calls can be * chained together. */ public AddPermissionRequest withActionNames(java.util.Collection<String> actionNames) { setActionNames(actionNames); return this; }
setLabel(label); setAWSAccountIds(aWSAccountIds); setActionNames(actionNames);
addPermissionRequest.setLabel(label); addPermissionRequest.setAWSAccountIds(aWSAccountIds); addPermissionRequest.setActionNames(actionNames); addPermission(addPermissionRequest);