/** * Use this in place of valueOf. * * @param value * real value * @return CloudWatchLogsEncoding corresponding to the value * * @throws IllegalArgumentException * If the specified value does not map to one of the known values in this enum. */ public static CloudWatchLogsEncoding fromValue(String value) { if (value == null || "".equals(value)) { throw new IllegalArgumentException("Value cannot be null or empty!"); } for (CloudWatchLogsEncoding enumEntry : CloudWatchLogsEncoding.values()) { if (enumEntry.toString().equals(value)) { return enumEntry; } } throw new IllegalArgumentException("Cannot create enum from " + value + " value!"); } }
/** * <p> * Specifies the encoding of the log file so that the file can be read correctly. The default is <code>utf_8</code>. * Encodings supported by Python <code>codecs.decode()</code> can be used here. * </p> * * @param encoding * Specifies the encoding of the log file so that the file can be read correctly. The default is * <code>utf_8</code>. Encodings supported by Python <code>codecs.decode()</code> can be used here. * @return Returns a reference to this object so that method calls can be chained together. * @see CloudWatchLogsEncoding */ public CloudWatchLogsLogStream withEncoding(CloudWatchLogsEncoding encoding) { this.encoding = encoding.toString(); return this; }
/** * <p> * Specifies the encoding of the log file so that the file can be read correctly. The default is <code>utf_8</code>. * Encodings supported by Python <code>codecs.decode()</code> can be used here. * </p> * * @param encoding * Specifies the encoding of the log file so that the file can be read correctly. The default is * <code>utf_8</code>. Encodings supported by Python <code>codecs.decode()</code> can be used here. * @return Returns a reference to this object so that method calls can be chained together. * @see CloudWatchLogsEncoding */ public CloudWatchLogsLogStream withEncoding(CloudWatchLogsEncoding encoding) { this.encoding = encoding.toString(); return this; }
/** * Use this in place of valueOf. * * @param value * real value * @return CloudWatchLogsEncoding corresponding to the value * * @throws IllegalArgumentException * If the specified value does not map to one of the known values in this enum. */ public static CloudWatchLogsEncoding fromValue(String value) { if (value == null || "".equals(value)) { throw new IllegalArgumentException("Value cannot be null or empty!"); } for (CloudWatchLogsEncoding enumEntry : CloudWatchLogsEncoding.values()) { if (enumEntry.toString().equals(value)) { return enumEntry; } } throw new IllegalArgumentException("Cannot create enum from " + value + " value!"); } }