Codota Logo
RemovePermissionRequest
Code IndexAdd Codota to your IDE (free)

How to use
RemovePermissionRequest
in
com.amazonaws.services.sns.model

Best Java code snippets using com.amazonaws.services.sns.model.RemovePermissionRequest (Showing top 20 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
ScheduledThreadPoolExecutor s =
  • Codota Iconnew ScheduledThreadPoolExecutor(corePoolSize)
  • Codota IconThreadFactory threadFactory;new ScheduledThreadPoolExecutor(corePoolSize, threadFactory)
  • Codota IconString str;new ScheduledThreadPoolExecutor(1, new ThreadFactoryBuilder().setNameFormat(str).build())
  • Smart code suggestions by Codota
}
origin: aws/aws-sdk-java

/**
 * Simplified method form for invoking the RemovePermission operation with an AsyncHandler.
 *
 * @see #removePermissionAsync(RemovePermissionRequest, com.amazonaws.handlers.AsyncHandler)
 */
@Override
public java.util.concurrent.Future<RemovePermissionResult> removePermissionAsync(String topicArn, String label,
    com.amazonaws.handlers.AsyncHandler<RemovePermissionRequest, RemovePermissionResult> asyncHandler) {
  return removePermissionAsync(new RemovePermissionRequest().withTopicArn(topicArn).withLabel(label), asyncHandler);
}
origin: aws/aws-sdk-java

@Override
public int hashCode() {
  final int prime = 31;
  int hashCode = 1;
  hashCode = prime * hashCode + ((getTopicArn() == null) ? 0 : getTopicArn().hashCode());
  hashCode = prime * hashCode + ((getLabel() == null) ? 0 : getLabel().hashCode());
  return hashCode;
}
origin: aws/aws-sdk-java

/**
 * Constructs a new RemovePermissionRequest 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
 *        The unique label of the statement you want to remove.
 */
public RemovePermissionRequest(String topicArn, String label) {
  setTopicArn(topicArn);
  setLabel(label);
}
origin: aws-amplify/aws-sdk-android

RemovePermissionRequest removePermissionRequest = new RemovePermissionRequest();
removePermissionRequest.setTopicArn(topicArn);
removePermissionRequest.setLabel(label);
removePermission(removePermissionRequest);
origin: com.amazonaws.resources/aws-resources-sns

@Override
public void removePermission(String label, ResultCapture<Void> extractor) {
  RemovePermissionRequest request = new RemovePermissionRequest()
    .withLabel(label);
  removePermission(request, extractor);
}
origin: Comcast/cmb

RemovePermissionRequest removePermissionRequest = new RemovePermissionRequest(topicArn, labelSid);
sns.removePermission(removePermissionRequest);
logger.debug("event=remove_permission topic_arn=" + topicArn + " label=" + labelSid + " user_id=" + userId);
origin: aws/aws-sdk-java

/**
 * <p>
 * The unique label of the statement you want to remove.
 * </p>
 * 
 * @param label
 *        The unique label of the statement you want to remove.
 * @return Returns a reference to this object so that method calls can be chained together.
 */
public RemovePermissionRequest withLabel(String label) {
  setLabel(label);
  return this;
}
origin: aws/aws-sdk-java

/**
 * <p>
 * The ARN of the topic whose access control policy you wish to modify.
 * </p>
 * 
 * @param topicArn
 *        The ARN of the topic whose access control policy you wish to modify.
 * @return Returns a reference to this object so that method calls can be chained together.
 */
public RemovePermissionRequest withTopicArn(String topicArn) {
  setTopicArn(topicArn);
  return this;
}
origin: com.amazonaws/aws-android-sdk-sns

RemovePermissionRequest removePermissionRequest = new RemovePermissionRequest();
removePermissionRequest.setTopicArn(topicArn);
removePermissionRequest.setLabel(label);
removePermission(removePermissionRequest);
origin: amazon-archives/aws-sdk-java-resources

@Override
public void removePermission(String label, ResultCapture<Void> extractor) {
  RemovePermissionRequest request = new RemovePermissionRequest()
    .withLabel(label);
  removePermission(request, extractor);
}
origin: aws/aws-sdk-java

@Override
public boolean equals(Object obj) {
  if (this == obj)
    return true;
  if (obj == null)
    return false;
  if (obj instanceof RemovePermissionRequest == false)
    return false;
  RemovePermissionRequest other = (RemovePermissionRequest) obj;
  if (other.getTopicArn() == null ^ this.getTopicArn() == null)
    return false;
  if (other.getTopicArn() != null && other.getTopicArn().equals(this.getTopicArn()) == false)
    return false;
  if (other.getLabel() == null ^ this.getLabel() == null)
    return false;
  if (other.getLabel() != null && other.getLabel().equals(this.getLabel()) == false)
    return false;
  return true;
}
origin: aws/aws-sdk-java

/**
 * Simplified method form for invoking the RemovePermission operation.
 *
 * @see #removePermissionAsync(RemovePermissionRequest)
 */
@Override
public java.util.concurrent.Future<RemovePermissionResult> removePermissionAsync(String topicArn, String label) {
  return removePermissionAsync(new RemovePermissionRequest().withTopicArn(topicArn).withLabel(label));
}
origin: aws-amplify/aws-sdk-android

/**
 * Constructs a new RemovePermissionRequest 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 access control policy you wish to
 *            modify.
 *            </p>
 * @param label <p>
 *            The unique label of the statement you want to remove.
 *            </p>
 */
public RemovePermissionRequest(String topicArn, String label) {
  setTopicArn(topicArn);
  setLabel(label);
}
origin: aws/aws-sdk-java

/**
 * 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()).append(",");
  if (getLabel() != null)
    sb.append("Label: ").append(getLabel());
  sb.append("}");
  return sb.toString();
}
origin: aws/aws-sdk-java

/**
 * Simplified method form for invoking the RemovePermission operation.
 *
 * @see #removePermissionAsync(RemovePermissionRequest)
 */
@Override
public java.util.concurrent.Future<RemovePermissionResult> removePermissionAsync(String topicArn, String label) {
  return removePermissionAsync(new RemovePermissionRequest().withTopicArn(topicArn).withLabel(label));
}
origin: com.amazonaws/aws-android-sdk-sns

/**
 * Constructs a new RemovePermissionRequest 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 access control policy you wish to
 *            modify.
 *            </p>
 * @param label <p>
 *            The unique label of the statement you want to remove.
 *            </p>
 */
public RemovePermissionRequest(String topicArn, String label) {
  setTopicArn(topicArn);
  setLabel(label);
}
origin: aws/aws-sdk-java

public Request<RemovePermissionRequest> marshall(RemovePermissionRequest removePermissionRequest) {
  if (removePermissionRequest == null) {
    throw new SdkClientException("Invalid argument passed to marshall(...)");
  }
  Request<RemovePermissionRequest> request = new DefaultRequest<RemovePermissionRequest>(removePermissionRequest, "AmazonSNS");
  request.addParameter("Action", "RemovePermission");
  request.addParameter("Version", "2010-03-31");
  request.setHttpMethod(HttpMethodName.POST);
  if (removePermissionRequest.getTopicArn() != null) {
    request.addParameter("TopicArn", StringUtils.fromString(removePermissionRequest.getTopicArn()));
  }
  if (removePermissionRequest.getLabel() != null) {
    request.addParameter("Label", StringUtils.fromString(removePermissionRequest.getLabel()));
  }
  return request;
}
origin: aws/aws-sdk-java

/**
 * Simplified method form for invoking the RemovePermission operation with an AsyncHandler.
 *
 * @see #removePermissionAsync(RemovePermissionRequest, com.amazonaws.handlers.AsyncHandler)
 */
@Override
public java.util.concurrent.Future<RemovePermissionResult> removePermissionAsync(String topicArn, String label,
    com.amazonaws.handlers.AsyncHandler<RemovePermissionRequest, RemovePermissionResult> asyncHandler) {
  return removePermissionAsync(new RemovePermissionRequest().withTopicArn(topicArn).withLabel(label), asyncHandler);
}
origin: aws-amplify/aws-sdk-android

@Override
public int hashCode() {
  final int prime = 31;
  int hashCode = 1;
  hashCode = prime * hashCode + ((getTopicArn() == null) ? 0 : getTopicArn().hashCode());
  hashCode = prime * hashCode + ((getLabel() == null) ? 0 : getLabel().hashCode());
  return hashCode;
}
origin: aws/aws-sdk-java

@Override
public RemovePermissionResult removePermission(String topicArn, String label) {
  return removePermission(new RemovePermissionRequest().withTopicArn(topicArn).withLabel(label));
}
com.amazonaws.services.sns.modelRemovePermissionRequest

Javadoc

Input for RemovePermission action.

Most used methods

  • <init>
    Constructs a new RemovePermissionRequest object. Callers should use the setter or fluent setter (wit
  • getLabel
    The unique label of the statement you want to remove.
  • getTopicArn
    The ARN of the topic whose access control policy you wish to modify.
  • setLabel
    The unique label of the statement you want to remove.
  • setTopicArn
    The ARN of the topic whose access control policy you wish to modify.
  • withLabel
    The unique label of the statement you want to remove. Returns a reference to this object so that
  • withTopicArn
    The ARN of the topic whose access control policy you wish to modify. Returns a reference to this

Popular in Java

  • Updating database using SQL prepared statement
  • getExternalFilesDir (Context)
  • requestLocationUpdates (LocationManager)
  • setRequestProperty (URLConnection)
    Sets the general request property. If a property with the key already exists, overwrite its value wi
  • ResultSet (java.sql)
    An interface for an object which represents a database table entry, returned as the result of the qu
  • MessageFormat (java.text)
    MessageFormat provides a means to produce concatenated messages in language-neutral way. Use this to
  • TreeSet (java.util)
    A NavigableSet implementation based on a TreeMap. The elements are ordered using their Comparable, o
  • ImageIO (javax.imageio)
  • HttpServlet (javax.servlet.http)
    Provides an abstract class to be subclassed to create an HTTP servlet suitable for a Web site. A sub
  • IsNull (org.hamcrest.core)
    Is the value null?
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now