/** * Constructs a new GetSubscriptionAttributesRequest object. Callers should use the setter or fluent setter * (with...) methods to initialize any additional object members. * * @param subscriptionArn * The ARN of the subscription whose properties you want to get. */ public GetSubscriptionAttributesRequest(String subscriptionArn) { setSubscriptionArn(subscriptionArn); }
/** * <p> * The ARN of the subscription whose properties you want to get. * </p> * * @param subscriptionArn * The ARN of the subscription whose properties you want to get. * @return Returns a reference to this object so that method calls can be chained together. */ public GetSubscriptionAttributesRequest withSubscriptionArn(String subscriptionArn) { setSubscriptionArn(subscriptionArn); return this; }
/** * Constructs a new GetSubscriptionAttributesRequest object. Callers should * use the setter or fluent setter (with...) methods to initialize any * additional object members. * * @param subscriptionArn <p> * The ARN of the subscription whose properties you want to get. * </p> */ public GetSubscriptionAttributesRequest(String subscriptionArn) { setSubscriptionArn(subscriptionArn); }
/** * <p> * Returns all of the properties of a subscription. * </p> * * @param subscriptionArn <p> * The ARN of the subscription whose properties you want to get. * </p> * @return getSubscriptionAttributesResult The response from the * GetSubscriptionAttributes service method, as returned by Amazon * Simple Notification Service. * @throws InvalidParameterException * @throws InternalErrorException * @throws NotFoundException * @throws AuthorizationErrorException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Simple Notification Service indicating either a problem with * the data in the request, or a server side issue. */ public GetSubscriptionAttributesResult getSubscriptionAttributes(String subscriptionArn) throws AmazonServiceException, AmazonClientException { GetSubscriptionAttributesRequest getSubscriptionAttributesRequest = new GetSubscriptionAttributesRequest(); getSubscriptionAttributesRequest.setSubscriptionArn(subscriptionArn); return getSubscriptionAttributes(getSubscriptionAttributesRequest); }
/** * Constructs a new GetSubscriptionAttributesRequest object. Callers should * use the setter or fluent setter (with...) methods to initialize any * additional object members. * * @param subscriptionArn <p> * The ARN of the subscription whose properties you want to get. * </p> */ public GetSubscriptionAttributesRequest(String subscriptionArn) { setSubscriptionArn(subscriptionArn); }
/** * <p> * Returns all of the properties of a subscription. * </p> * * @param subscriptionArn <p> * The ARN of the subscription whose properties you want to get. * </p> * @return getSubscriptionAttributesResult The response from the * GetSubscriptionAttributes service method, as returned by Amazon * Simple Notification Service. * @throws InvalidParameterException * @throws InternalErrorException * @throws NotFoundException * @throws AuthorizationErrorException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Simple Notification Service indicating either a problem with * the data in the request, or a server side issue. */ public GetSubscriptionAttributesResult getSubscriptionAttributes(String subscriptionArn) throws AmazonServiceException, AmazonClientException { GetSubscriptionAttributesRequest getSubscriptionAttributesRequest = new GetSubscriptionAttributesRequest(); getSubscriptionAttributesRequest.setSubscriptionArn(subscriptionArn); return getSubscriptionAttributes(getSubscriptionAttributesRequest); }