/** * <p> * 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. * </p> * * @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. * @return Returns a reference to this object so that method calls can be chained together. */ public AddPermissionRequest withAWSAccountIds(java.util.Collection<String> aWSAccountIds) { setAWSAccountIds(aWSAccountIds); return this; }
/** * <p> * 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. * </p> * <p> * <b>NOTE:</b> This method appends the values to the existing list (if any). Use * {@link #setAWSAccountIds(java.util.Collection)} or {@link #withAWSAccountIds(java.util.Collection)} if you want * to override the existing values. * </p> * * @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. * @return Returns a reference to this object so that method calls can be chained together. */ public AddPermissionRequest withAWSAccountIds(String... aWSAccountIds) { if (this.aWSAccountIds == null) { setAWSAccountIds(new com.amazonaws.internal.SdkInternalList<String>(aWSAccountIds.length)); } for (String ele : aWSAccountIds) { this.aWSAccountIds.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 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. * </p> * <p> * Returns a reference to this object so that method calls can be chained * together. * * @param aWSAccountIds <p> * 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. * </p> * @return A reference to this updated object so that method calls can be * chained together. */ public AddPermissionRequest withAWSAccountIds(java.util.Collection<String> aWSAccountIds) { setAWSAccountIds(aWSAccountIds); return this; }
setTopicArn(topicArn); setLabel(label); setAWSAccountIds(aWSAccountIds); setActionNames(actionNames);
addPermissionRequest.setTopicArn(topicArn); addPermissionRequest.setLabel(label); addPermissionRequest.setAWSAccountIds(aWSAccountIds); addPermissionRequest.setActionNames(actionNames); addPermission(addPermissionRequest);
/** * <p> * 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. * </p> * <p> * Returns a reference to this object so that method calls can be chained * together. * * @param aWSAccountIds <p> * 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. * </p> * @return A reference to this updated object so that method calls can be * chained together. */ public AddPermissionRequest withAWSAccountIds(java.util.Collection<String> aWSAccountIds) { setAWSAccountIds(aWSAccountIds); return this; }
setTopicArn(topicArn); setLabel(label); setAWSAccountIds(aWSAccountIds); setActionNames(actionNames);
addPermissionRequest.setTopicArn(topicArn); addPermissionRequest.setLabel(label); addPermissionRequest.setAWSAccountIds(aWSAccountIds); addPermissionRequest.setActionNames(actionNames); addPermission(addPermissionRequest);