/** * Simplified method form for invoking the GetTopicAttributes operation. * * @see #getTopicAttributesAsync(GetTopicAttributesRequest) */ @Override public java.util.concurrent.Future<GetTopicAttributesResult> getTopicAttributesAsync(String topicArn) { return getTopicAttributesAsync(new GetTopicAttributesRequest().withTopicArn(topicArn)); }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof GetTopicAttributesRequest == false) return false; GetTopicAttributesRequest other = (GetTopicAttributesRequest) obj; if (other.getTopicArn() == null ^ this.getTopicArn() == null) return false; if (other.getTopicArn() != null && other.getTopicArn().equals(this.getTopicArn()) == false) return false; return true; }
/** * Constructs a new GetTopicAttributesRequest 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 properties you want to get. */ public GetTopicAttributesRequest(String topicArn) { setTopicArn(topicArn); }
/** * <p> * Returns all of the properties of a topic. Topic properties returned might * differ based on the authorization of the user. * </p> * * @param topicArn <p> * The ARN of the topic whose properties you want to get. * </p> * @return getTopicAttributesResult The response from the GetTopicAttributes * 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 GetTopicAttributesResult getTopicAttributes(String topicArn) throws AmazonServiceException, AmazonClientException { GetTopicAttributesRequest getTopicAttributesRequest = new GetTopicAttributesRequest(); getTopicAttributesRequest.setTopicArn(topicArn); return getTopicAttributes(getTopicAttributesRequest); }
GetTopicAttributesRequest getTopicAttributesRequest = new GetTopicAttributesRequest(topicArn); GetTopicAttributesResult getTopicAttributesResult = sns.getTopicAttributes(getTopicAttributesRequest); attributes = getTopicAttributesResult.getAttributes();
/** * <p> * Returns all of the properties of a topic. Topic properties returned might * differ based on the authorization of the user. * </p> * * @param topicArn <p> * The ARN of the topic whose properties you want to get. * </p> * @return getTopicAttributesResult The response from the GetTopicAttributes * 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 GetTopicAttributesResult getTopicAttributes(String topicArn) throws AmazonServiceException, AmazonClientException { GetTopicAttributesRequest getTopicAttributesRequest = new GetTopicAttributesRequest(); getTopicAttributesRequest.setTopicArn(topicArn); return getTopicAttributes(getTopicAttributesRequest); }
GetTopicAttributesRequest getTopicAttributesRequest = new GetTopicAttributesRequest(topicArn); GetTopicAttributesResult getTopicAttributesResult = sns.getTopicAttributes(getTopicAttributesRequest); attributes = getTopicAttributesResult.getAttributes();
/** * Simplified method form for invoking the GetTopicAttributes operation with an AsyncHandler. * * @see #getTopicAttributesAsync(GetTopicAttributesRequest, com.amazonaws.handlers.AsyncHandler) */ @Override public java.util.concurrent.Future<GetTopicAttributesResult> getTopicAttributesAsync(String topicArn, com.amazonaws.handlers.AsyncHandler<GetTopicAttributesRequest, GetTopicAttributesResult> asyncHandler) { return getTopicAttributesAsync(new GetTopicAttributesRequest().withTopicArn(topicArn), asyncHandler); }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getTopicArn() == null) ? 0 : getTopicArn().hashCode()); return hashCode; }
GetTopicAttributesRequest getTopicAttributesRequest = new GetTopicAttributesRequest(topicArn); GetTopicAttributesResult getTopicAttributesResult = sns.getTopicAttributes(getTopicAttributesRequest); attributes = getTopicAttributesResult.getAttributes();
/** * <p> * The ARN of the topic whose properties you want to get. * </p> * * @param topicArn * The ARN of the topic whose properties you want to get. * @return Returns a reference to this object so that method calls can be chained together. */ public GetTopicAttributesRequest withTopicArn(String topicArn) { setTopicArn(topicArn); return this; }
/** * Simplified method form for invoking the GetTopicAttributes operation. * * @see #getTopicAttributesAsync(GetTopicAttributesRequest) */ @Override public java.util.concurrent.Future<GetTopicAttributesResult> getTopicAttributesAsync(String topicArn) { return getTopicAttributesAsync(new GetTopicAttributesRequest().withTopicArn(topicArn)); }
/** * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be * redacted from this string using a placeholder value. * * @return A string representation of this object. * * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getTopicArn() != null) sb.append("TopicArn: ").append(getTopicArn()); sb.append("}"); return sb.toString(); }
GetTopicAttributesRequest getTopicAttributesRequest = new GetTopicAttributesRequest(t.getTopicArn()); GetTopicAttributesResult getTopicAttributesResult = sns.getTopicAttributes(getTopicAttributesRequest); Map<String, String> attributes = getTopicAttributesResult.getAttributes();
/** * Constructs a new GetTopicAttributesRequest object. Callers should use the * setter or fluent setter (with...) methods to initialize any additional * object members. * * @param topicArn <p> * The ARN of the topic whose properties you want to get. * </p> */ public GetTopicAttributesRequest(String topicArn) { setTopicArn(topicArn); }
@Override public GetTopicAttributesResult getTopicAttributes(String topicArn) { return getTopicAttributes(new GetTopicAttributesRequest().withTopicArn(topicArn)); }
public Request<GetTopicAttributesRequest> marshall(GetTopicAttributesRequest getTopicAttributesRequest) { if (getTopicAttributesRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } Request<GetTopicAttributesRequest> request = new DefaultRequest<GetTopicAttributesRequest>(getTopicAttributesRequest, "AmazonSNS"); request.addParameter("Action", "GetTopicAttributes"); request.addParameter("Version", "2010-03-31"); request.setHttpMethod(HttpMethodName.POST); if (getTopicAttributesRequest.getTopicArn() != null) { request.addParameter("TopicArn", StringUtils.fromString(getTopicAttributesRequest.getTopicArn())); } return request; }
/** * Constructs a new GetTopicAttributesRequest object. Callers should use the * setter or fluent setter (with...) methods to initialize any additional * object members. * * @param topicArn <p> * The ARN of the topic whose properties you want to get. * </p> */ public GetTopicAttributesRequest(String topicArn) { setTopicArn(topicArn); }
@Override public GetTopicAttributesResult getTopicAttributes(String topicArn) { return getTopicAttributes(new GetTopicAttributesRequest().withTopicArn(topicArn)); }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getTopicArn() == null) ? 0 : getTopicArn().hashCode()); return hashCode; }