Tabnine Logo
Image.setProductCodes
Code IndexAdd Tabnine to your IDE (free)

How to use
setProductCodes
method
in
com.amazonaws.services.ec2.model.Image

Best Java code snippets using com.amazonaws.services.ec2.model.Image.setProductCodes (Showing top 5 results out of 315)

origin: aws/aws-sdk-java

/**
 * <p>
 * Any product codes associated with the AMI.
 * </p>
 * 
 * @param productCodes
 *        Any product codes associated with the AMI.
 * @return Returns a reference to this object so that method calls can be chained together.
 */
public Image withProductCodes(java.util.Collection<ProductCode> productCodes) {
  setProductCodes(productCodes);
  return this;
}
origin: aws/aws-sdk-java

/**
 * <p>
 * Any product codes associated with the AMI.
 * </p>
 * <p>
 * <b>NOTE:</b> This method appends the values to the existing list (if any). Use
 * {@link #setProductCodes(java.util.Collection)} or {@link #withProductCodes(java.util.Collection)} if you want to
 * override the existing values.
 * </p>
 * 
 * @param productCodes
 *        Any product codes associated with the AMI.
 * @return Returns a reference to this object so that method calls can be chained together.
 */
public Image withProductCodes(ProductCode... productCodes) {
  if (this.productCodes == null) {
    setProductCodes(new com.amazonaws.internal.SdkInternalList<ProductCode>(productCodes.length));
  }
  for (ProductCode ele : productCodes) {
    this.productCodes.add(ele);
  }
  return this;
}
origin: aws-amplify/aws-sdk-android

/**
 * Any product codes associated with the AMI.
 * <p>
 * Returns a reference to this object so that method calls can be chained together.
 *
 * @param productCodes Any product codes associated with the AMI.
 *
 * @return A reference to this updated object so that method calls can be chained
 *         together.
 */
public Image withProductCodes(ProductCode... productCodes) {
  if (getProductCodes() == null) setProductCodes(new java.util.ArrayList<ProductCode>(productCodes.length));
  for (ProductCode value : productCodes) {
    getProductCodes().add(value);
  }
  return this;
}

origin: com.amazonaws/aws-java-sdk-ec2

/**
 * <p>
 * Any product codes associated with the AMI.
 * </p>
 * 
 * @param productCodes
 *        Any product codes associated with the AMI.
 * @return Returns a reference to this object so that method calls can be chained together.
 */
public Image withProductCodes(java.util.Collection<ProductCode> productCodes) {
  setProductCodes(productCodes);
  return this;
}
origin: com.amazonaws/aws-java-sdk-ec2

/**
 * <p>
 * Any product codes associated with the AMI.
 * </p>
 * <p>
 * <b>NOTE:</b> This method appends the values to the existing list (if any). Use
 * {@link #setProductCodes(java.util.Collection)} or {@link #withProductCodes(java.util.Collection)} if you want to
 * override the existing values.
 * </p>
 * 
 * @param productCodes
 *        Any product codes associated with the AMI.
 * @return Returns a reference to this object so that method calls can be chained together.
 */
public Image withProductCodes(ProductCode... productCodes) {
  if (this.productCodes == null) {
    setProductCodes(new com.amazonaws.internal.SdkInternalList<ProductCode>(productCodes.length));
  }
  for (ProductCode ele : productCodes) {
    this.productCodes.add(ele);
  }
  return this;
}
com.amazonaws.services.ec2.modelImagesetProductCodes

Javadoc

Any product codes associated with the AMI.

Popular methods of Image

  • getImageId
    The ID of the AMI.
  • getName
    The name of the AMI that was provided during image creation.
  • getBlockDeviceMappings
    Any block device mapping entries.
  • getImageLocation
    The location of the AMI.
  • getImageOwnerAlias
    The AWS account alias (for example, amazon, self) or the AWS account ID of the AMI owner.
  • getOwnerId
    The AWS account ID of the image owner.
  • getPlatform
    The value is Windows for Windows AMIs; otherwise blank.
  • getRootDeviceName
    The device name of the root device volume (for example, /dev/sda1).
  • getRootDeviceType
    The type of root device used by the AMI. The AMI can use an EBS volume or an instance store volume.
  • getState
    The current state of the AMI. If the state is available, the image is successfully registered and c
  • getTags
    Any tags assigned to the image.
  • setImageId
    The ID of the AMI.
  • getTags,
  • setImageId,
  • <init>,
  • getArchitecture,
  • getCreationDate,
  • getDescription,
  • getHypervisor,
  • getImageType,
  • getKernelId,
  • getProductCodes

Popular in Java

  • Start an intent from android
  • getSupportFragmentManager (FragmentActivity)
  • findViewById (Activity)
  • setRequestProperty (URLConnection)
  • SocketException (java.net)
    This SocketException may be thrown during socket creation or setting options, and is the superclass
  • DateFormat (java.text)
    Formats or parses dates and times.This class provides factories for obtaining instances configured f
  • HashSet (java.util)
    HashSet is an implementation of a Set. All optional operations (adding and removing) are supported.
  • ExecutorService (java.util.concurrent)
    An Executor that provides methods to manage termination and methods that can produce a Future for tr
  • LogFactory (org.apache.commons.logging)
    Factory for creating Log instances, with discovery and configuration features similar to that employ
  • Table (org.hibernate.mapping)
    A relational table
  • Top plugins for Android Studio
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