/** * Use this in place of valueOf. * * @param value * real value * @return AZMode corresponding to the value * * @throws IllegalArgumentException * If the specified value does not map to one of the known values in this enum. */ public static AZMode fromValue(String value) { if (value == null || "".equals(value)) { throw new IllegalArgumentException("Value cannot be null or empty!"); } for (AZMode enumEntry : AZMode.values()) { if (enumEntry.toString().equals(value)) { return enumEntry; } } throw new IllegalArgumentException("Cannot create enum from " + value + " value!"); } }
/** * <p> * Specifies whether the nodes in this Memcached cluster are created in a single Availability Zone or created across * multiple Availability Zones in the cluster's region. * </p> * <p> * This parameter is only supported for Memcached clusters. * </p> * <p> * If the <code>AZMode</code> and <code>PreferredAvailabilityZones</code> are not specified, ElastiCache assumes * <code>single-az</code> mode. * </p> * * @param aZMode * Specifies whether the nodes in this Memcached cluster are created in a single Availability Zone or created * across multiple Availability Zones in the cluster's region.</p> * <p> * This parameter is only supported for Memcached clusters. * </p> * <p> * If the <code>AZMode</code> and <code>PreferredAvailabilityZones</code> are not specified, ElastiCache * assumes <code>single-az</code> mode. * @return Returns a reference to this object so that method calls can be chained together. * @see AZMode */ public CreateCacheClusterRequest withAZMode(AZMode aZMode) { this.aZMode = aZMode.toString(); return this; }
this.aZMode = aZMode.toString(); return this;
/** * Use this in place of valueOf. * * @param value * real value * @return AZMode corresponding to the value * * @throws IllegalArgumentException * If the specified value does not map to one of the known values in this enum. */ public static AZMode fromValue(String value) { if (value == null || "".equals(value)) { throw new IllegalArgumentException("Value cannot be null or empty!"); } for (AZMode enumEntry : AZMode.values()) { if (enumEntry.toString().equals(value)) { return enumEntry; } } throw new IllegalArgumentException("Cannot create enum from " + value + " value!"); } }
/** * <p> * Specifies whether the nodes in this Memcached cluster are created in a single Availability Zone or created across * multiple Availability Zones in the cluster's region. * </p> * <p> * This parameter is only supported for Memcached clusters. * </p> * <p> * If the <code>AZMode</code> and <code>PreferredAvailabilityZones</code> are not specified, ElastiCache assumes * <code>single-az</code> mode. * </p> * * @param aZMode * Specifies whether the nodes in this Memcached cluster are created in a single Availability Zone or created * across multiple Availability Zones in the cluster's region.</p> * <p> * This parameter is only supported for Memcached clusters. * </p> * <p> * If the <code>AZMode</code> and <code>PreferredAvailabilityZones</code> are not specified, ElastiCache * assumes <code>single-az</code> mode. * @return Returns a reference to this object so that method calls can be chained together. * @see AZMode */ public CreateCacheClusterRequest withAZMode(AZMode aZMode) { this.aZMode = aZMode.toString(); return this; }
this.aZMode = aZMode.toString(); return this;