Tabnine Logo
DeleteAttributesRequest.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
com.amazonaws.services.simpledb.model.DeleteAttributesRequest
constructor

Best Java code snippets using com.amazonaws.services.simpledb.model.DeleteAttributesRequest.<init> (Showing top 6 results out of 315)

origin: Netflix/Priam

/**
 * Deregister instance (same as delete)
 *
 * @param instance
 * @throws AmazonServiceException
 */
public void deregisterInstance(PriamInstance instance) throws AmazonServiceException {
  AmazonSimpleDB simpleDBClient = getSimpleDBClient();
  DeleteAttributesRequest delReq =
      new DeleteAttributesRequest(
          DOMAIN, getKey(instance), createAttributesToDeRegister(instance));
  simpleDBClient.deleteAttributes(delReq);
}
origin: appoxy/simplejpa

  public Object call() throws Exception {
    String domainName = em.getOrCreateDomain(toDelete.getClass());
    if(logger.isLoggable(Level.FINE)) logger.fine("deleting item with id: " + id);
    em.invokeEntityListener(toDelete, PreRemove.class);
    this.em.getSimpleDb().deleteAttributes(new DeleteAttributesRequest()
      .withDomainName(domainName)
      .withItemName(id));
    em.invokeEntityListener(toDelete, PostRemove.class);
    return toDelete;
  }
}
origin: com.proofpoint.galaxy/galaxy-coordinator

@Override
public void deleteExpectedState(UUID slotId)
{
  Preconditions.checkNotNull(slotId, "id is null");
  if (isDomainCreated()) {
    List<Attribute> attributes = newArrayList();
    attributes.add(new Attribute("state", null));
    attributes.add(new Attribute("binary", null));
    attributes.add(new Attribute("config", null));
    try {
      simpleDb.deleteAttributes(new DeleteAttributesRequest().withDomainName(domainName).withItemName(slotId.toString()).withAttributes(attributes));
      expectedStateStoreUp();
    }
    catch (Exception e) {
      expectedStateStoreDown(e);
    }
  }
}
origin: airlift/airship

@Override
public void deleteExpectedState(UUID slotId)
{
  Preconditions.checkNotNull(slotId, "id is null");
  if (isDomainCreated()) {
    List<Attribute> attributes = newArrayList();
    attributes.add(new Attribute("state", null));
    attributes.add(new Attribute("binary", null));
    attributes.add(new Attribute("config", null));
    try {
      simpleDb.deleteAttributes(new DeleteAttributesRequest().withDomainName(domainName).withItemName(slotId.toString()).withAttributes(attributes));
      expectedStateStoreUp();
    }
    catch (Exception e) {
      expectedStateStoreDown(e);
    }
  }
}
origin: appoxy/simplejpa

private void putAndDelete(String domainName, String oldAttributeName, String newAttributeName, List<Item> items) throws AmazonClientException {
  AmazonSimpleDB db = factory.getSimpleDb();
  for (Item item : items) {
    GetAttributesResult getOldResults = db.getAttributes(new GetAttributesRequest().withDomainName(domainName).withConsistentRead(true).withItemName(
        item.getName()).withAttributeNames(oldAttributeName));
    List<Attribute> oldAtts = getOldResults.getAttributes();
    if (oldAtts.size() > 0) {
      Attribute oldAtt = oldAtts.get(0);
      List<ReplaceableAttribute> atts = new ArrayList<ReplaceableAttribute>();
      atts.add(new ReplaceableAttribute(newAttributeName, oldAtt.getValue(), true));
      db.putAttributes(new PutAttributesRequest().withDomainName(domainName).withItemName(item.getName()).withAttributes(atts));
      db.deleteAttributes(new DeleteAttributesRequest().withDomainName(domainName).withItemName(item.getName()).withAttributes(oldAtts));
    }
  }
}
origin: appoxy/simplejpa

new DeleteAttributesRequest().withDomainName(domainName).withItemName(id)
    .withAttributes(attsToDelete2));
new DeleteAttributesRequest().withDomainName(domainName).withItemName(id)
    .withAttributes(attsToDelete));
com.amazonaws.services.simpledb.modelDeleteAttributesRequest<init>

Javadoc

Default constructor for DeleteAttributesRequest object. Callers should use the setter or fluent setter (with...) methods to initialize the object after creating it.

Popular methods of DeleteAttributesRequest

  • withAttributes
    A list of Attributes. Similar to columns on a spreadsheet, attributes represent categories of data t
  • withDomainName
    The name of the domain in which to perform the operation.
  • withItemName
    The name of the item. Similar to rows on a spreadsheet, items represent individual objects that cont
  • getAttributes
    A list of Attributes. Similar to columns on a spreadsheet, attributes represent categories of data t
  • getDomainName
    The name of the domain in which to perform the operation.
  • getExpected
    The update condition which, if specified, determines whether the specified attributes will be delete
  • getItemName
    The name of the item. Similar to rows on a spreadsheet, items represent individual objects that cont
  • setAttributes
    A list of Attributes. Similar to columns on a spreadsheet, attributes represent categories of data t
  • setDomainName
    The name of the domain in which to perform the operation.
  • setExpected
    The update condition which, if specified, determines whether the specified attributes will be delete
  • setItemName
    The name of the item. Similar to rows on a spreadsheet, items represent individual objects that cont
  • setItemName

Popular in Java

  • Making http requests using okhttp
  • scheduleAtFixedRate (Timer)
  • getExternalFilesDir (Context)
  • getContentResolver (Context)
  • Proxy (java.net)
    This class represents proxy server settings. A created instance of Proxy stores a type and an addres
  • ServerSocket (java.net)
    This class represents a server-side socket that waits for incoming client connections. A ServerSocke
  • SQLException (java.sql)
    An exception that indicates a failed JDBC operation. It provides the following information about pro
  • TreeMap (java.util)
    Walk the nodes of the tree left-to-right or right-to-left. Note that in descending iterations, next
  • Pattern (java.util.regex)
    Patterns are compiled regular expressions. In many cases, convenience methods such as String#matches
  • JLabel (javax.swing)
  • 21 Best IntelliJ Plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now