Tabnine Logo
PutAttributesRequest.setExpected
Code IndexAdd Tabnine to your IDE (free)

How to use
setExpected
method
in
com.amazonaws.services.simpledb.model.PutAttributesRequest

Best Java code snippets using com.amazonaws.services.simpledb.model.PutAttributesRequest.setExpected (Showing top 6 results out of 315)

origin: aws/aws-sdk-java

/**
 * The update condition which, if specified, determines whether the specified attributes will be updated or not. The
 * update condition must be satisfied in order for this request to be processed and the attributes to be updated.
 * 
 * @param expected
 *        The update condition which, if specified, determines whether the specified attributes will be updated or
 *        not. The update condition must be satisfied in order for this request to be processed and the attributes
 *        to be updated.
 * @return Returns a reference to this object so that method calls can be chained together.
 */
public PutAttributesRequest withExpected(UpdateCondition expected) {
  setExpected(expected);
  return this;
}
origin: aws/aws-sdk-java

/**
 * Constructs a new PutAttributesRequest object. Callers should use the setter or fluent setter (with...) methods to
 * initialize any additional object members.
 * 
 * @param domainName
 *        The name of the domain in which to perform the operation.
 * @param itemName
 *        The name of the item.
 * @param attributes
 *        The list of attributes.
 * @param expected
 *        The update condition which, if specified, determines whether the specified attributes will be updated or
 *        not. The update condition must be satisfied in order for this request to be processed and the attributes
 *        to be updated.
 */
public PutAttributesRequest(String domainName, String itemName, java.util.List<ReplaceableAttribute> attributes, UpdateCondition expected) {
  setDomainName(domainName);
  setItemName(itemName);
  setAttributes(attributes);
  setExpected(expected);
}
origin: Netflix/Priam

/**
 * Register a new instance. Registration will fail if a prior entry exists
 *
 * @param instance Instance entry to be registered.
 * @throws AmazonServiceException If unable to write to Simple DB because of any error.
 */
public void registerInstance(PriamInstance instance) throws AmazonServiceException {
  AmazonSimpleDB simpleDBClient = getSimpleDBClient();
  PutAttributesRequest putReq =
      new PutAttributesRequest(
          DOMAIN, getKey(instance), createAttributesToRegister(instance));
  UpdateCondition expected = new UpdateCondition();
  expected.setName(Attributes.INSTANCE_ID);
  expected.setExists(false);
  putReq.setExpected(expected);
  simpleDBClient.putAttributes(putReq);
}
origin: aws-amplify/aws-sdk-android

/**
 * Constructs a new PutAttributesRequest object.
 * Callers should use the setter or fluent setter (with...) methods to
 * initialize any additional object members.
 * 
 * @param domainName The name of the domain in which to perform the
 * operation.
 * @param itemName The name of the item.
 * @param attributes The list of attributes.
 * @param expected The update condition which, if specified, determines
 * whether the specified attributes will be updated or not. The update
 * condition must be satisfied in order for this request to be processed
 * and the attributes to be updated.
 */
public PutAttributesRequest(String domainName, String itemName, java.util.List<ReplaceableAttribute> attributes, UpdateCondition expected) {
  setDomainName(domainName);
  setItemName(itemName);
  setAttributes(attributes);
  setExpected(expected);
}
origin: com.amazonaws/aws-java-sdk-simpledb

/**
 * The update condition which, if specified, determines whether the specified attributes will be updated or not. The
 * update condition must be satisfied in order for this request to be processed and the attributes to be updated.
 * 
 * @param expected
 *        The update condition which, if specified, determines whether the specified attributes will be updated or
 *        not. The update condition must be satisfied in order for this request to be processed and the attributes
 *        to be updated.
 * @return Returns a reference to this object so that method calls can be chained together.
 */
public PutAttributesRequest withExpected(UpdateCondition expected) {
  setExpected(expected);
  return this;
}
origin: com.amazonaws/aws-java-sdk-simpledb

/**
 * Constructs a new PutAttributesRequest object. Callers should use the setter or fluent setter (with...) methods to
 * initialize any additional object members.
 * 
 * @param domainName
 *        The name of the domain in which to perform the operation.
 * @param itemName
 *        The name of the item.
 * @param attributes
 *        The list of attributes.
 * @param expected
 *        The update condition which, if specified, determines whether the specified attributes will be updated or
 *        not. The update condition must be satisfied in order for this request to be processed and the attributes
 *        to be updated.
 */
public PutAttributesRequest(String domainName, String itemName, java.util.List<ReplaceableAttribute> attributes, UpdateCondition expected) {
  setDomainName(domainName);
  setItemName(itemName);
  setAttributes(attributes);
  setExpected(expected);
}
com.amazonaws.services.simpledb.modelPutAttributesRequestsetExpected

Javadoc

The update condition which, if specified, determines whether the specified attributes will be updated or not. The update condition must be satisfied in order for this request to be processed and the attributes to be updated.

Popular methods of PutAttributesRequest

  • <init>
    Constructs a new PutAttributesRequest object. Callers should use the setter or fluent setter (with..
  • withAttributes
    The list of attributes.NOTE: This method appends the values to the existing list (if any). Use #setA
  • withDomainName
    The name of the domain in which to perform the operation.
  • withItemName
    The name of the item.
  • getAttributes
    The list of attributes.
  • 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 update
  • getItemName
    The name of the item.
  • setAttributes
    The list of attributes.
  • setDomainName
    The name of the domain in which to perform the operation.
  • setItemName
    The name of the item.
  • withExpected
    The update condition which, if specified, determines whether the specified attributes will be update
  • setItemName,
  • withExpected

Popular in Java

  • Start an intent from android
  • getApplicationContext (Context)
  • setRequestProperty (URLConnection)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • ServerSocket (java.net)
    This class represents a server-side socket that waits for incoming client connections. A ServerSocke
  • Calendar (java.util)
    Calendar is an abstract base class for converting between a Date object and a set of integer fields
  • Properties (java.util)
    A Properties object is a Hashtable where the keys and values must be Strings. Each property can have
  • HttpServlet (javax.servlet.http)
    Provides an abstract class to be subclassed to create an HTTP servlet suitable for a Web site. A sub
  • JLabel (javax.swing)
  • Option (scala)
  • From CI to AI: The AI layer in your organization
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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