/** * <p> * The instance architecture: "i386" or "x86_64". * </p> * * @param architecture * The instance architecture: "i386" or "x86_64". * @return Returns a reference to this object so that method calls can be chained together. * @see Architecture */ public Instance withArchitecture(Architecture architecture) { this.architecture = architecture.toString(); return this; }
/** * <p> * The instance architecture. The default option is <code>x86_64</code>. Instance types do not necessarily support * both architectures. For a list of the architectures that are supported by the different instance types, see <a * href="http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-types.html">Instance Families and Types</a>. * </p> * * @param architecture * The instance architecture. The default option is <code>x86_64</code>. Instance types do not necessarily * support both architectures. For a list of the architectures that are supported by the different instance * types, see <a href="http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-types.html">Instance * Families and Types</a>. * @return Returns a reference to this object so that method calls can be chained together. * @see Architecture */ public CreateInstanceRequest withArchitecture(Architecture architecture) { this.architecture = architecture.toString(); return this; }
/** * <p> * The instance architecture. Instance types do not necessarily support both architectures. For a list of the * architectures that are supported by the different instance types, see <a * href="http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-types.html">Instance Families and Types</a>. * </p> * * @param architecture * The instance architecture. Instance types do not necessarily support both architectures. For a list of the * architectures that are supported by the different instance types, see <a * href="http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-types.html">Instance Families and * Types</a>. * @return Returns a reference to this object so that method calls can be chained together. * @see Architecture */ public UpdateInstanceRequest withArchitecture(Architecture architecture) { this.architecture = architecture.toString(); return this; }
/** * Use this in place of valueOf. * * @param value * real value * @return Architecture corresponding to the value * * @throws IllegalArgumentException * If the specified value does not map to one of the known values in this enum. */ public static Architecture fromValue(String value) { if (value == null || "".equals(value)) { throw new IllegalArgumentException("Value cannot be null or empty!"); } for (Architecture enumEntry : Architecture.values()) { if (enumEntry.toString().equals(value)) { return enumEntry; } } throw new IllegalArgumentException("Cannot create enum from " + value + " value!"); } }
/** * <p> * The instance architecture: "i386" or "x86_64". * </p> * * @param architecture * The instance architecture: "i386" or "x86_64". * @return Returns a reference to this object so that method calls can be chained together. * @see Architecture */ public Instance withArchitecture(Architecture architecture) { this.architecture = architecture.toString(); return this; }
/** * <p> * The instance architecture. Instance types do not necessarily support both architectures. For a list of the * architectures that are supported by the different instance types, see <a * href="http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-types.html">Instance Families and Types</a>. * </p> * * @param architecture * The instance architecture. Instance types do not necessarily support both architectures. For a list of the * architectures that are supported by the different instance types, see <a * href="http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-types.html">Instance Families and * Types</a>. * @return Returns a reference to this object so that method calls can be chained together. * @see Architecture */ public UpdateInstanceRequest withArchitecture(Architecture architecture) { this.architecture = architecture.toString(); return this; }
/** * <p> * The instance architecture. The default option is <code>x86_64</code>. Instance types do not necessarily support * both architectures. For a list of the architectures that are supported by the different instance types, see <a * href="http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-types.html">Instance Families and Types</a>. * </p> * * @param architecture * The instance architecture. The default option is <code>x86_64</code>. Instance types do not necessarily * support both architectures. For a list of the architectures that are supported by the different instance * types, see <a href="http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-types.html">Instance * Families and Types</a>. * @return Returns a reference to this object so that method calls can be chained together. * @see Architecture */ public CreateInstanceRequest withArchitecture(Architecture architecture) { this.architecture = architecture.toString(); return this; }
/** * Use this in place of valueOf. * * @param value * real value * @return Architecture corresponding to the value * * @throws IllegalArgumentException * If the specified value does not map to one of the known values in this enum. */ public static Architecture fromValue(String value) { if (value == null || "".equals(value)) { throw new IllegalArgumentException("Value cannot be null or empty!"); } for (Architecture enumEntry : Architecture.values()) { if (enumEntry.toString().equals(value)) { return enumEntry; } } throw new IllegalArgumentException("Cannot create enum from " + value + " value!"); } }