/** * <p> * Specifies the launch type on which your task is running. The launch type that you specify here must match one of * the launch type (compatibilities) of the target task. The <code>FARGATE</code> value is supported only in the * Regions where AWS Fargate with Amazon ECS is supported. For more information, see <a * href="http://docs.aws.amazon.com/AmazonECS/latest/developerguide/AWS-Fargate.html">AWS Fargate on Amazon ECS</a> * in the <i>Amazon Elastic Container Service Developer Guide</i>. * </p> * <p> * If the service returns an enum value that is not available in the current SDK version, {@link #launchType} will * return {@link LaunchType#UNKNOWN_TO_SDK_VERSION}. The raw value returned by the service is available from * {@link #launchTypeAsString}. * </p> * * @return Specifies the launch type on which your task is running. The launch type that you specify here must match * one of the launch type (compatibilities) of the target task. The <code>FARGATE</code> value is supported * only in the Regions where AWS Fargate with Amazon ECS is supported. For more information, see <a * href="http://docs.aws.amazon.com/AmazonECS/latest/developerguide/AWS-Fargate.html">AWS Fargate on Amazon * ECS</a> in the <i>Amazon Elastic Container Service Developer Guide</i>. * @see LaunchType */ public LaunchType launchType() { return LaunchType.fromValue(launchType); }
/** * Use this in place of valueOf to convert the raw string returned by the service into the enum value. * * @param value * real value * @return LaunchType corresponding to the value */ public static LaunchType fromValue(String value) { if (value == null) { return null; } return Stream.of(LaunchType.values()).filter(e -> e.toString().equals(value)).findFirst().orElse(UNKNOWN_TO_SDK_VERSION); }
@Override public final Builder launchType(LaunchType launchType) { this.launchType(launchType.toString()); return this; }
/** * Use this in place of {@link #values()} to return a {@link Set} of all values known to the SDK. This will return * all known enum values except {@link #UNKNOWN_TO_SDK_VERSION}. * * @return a {@link Set} of known {@link LaunchType}s */ public static Set<LaunchType> knownValues() { return Stream.of(values()).filter(v -> v != UNKNOWN_TO_SDK_VERSION).collect(toSet()); } }
@Override public final Builder launchType(LaunchType launchType) { this.launchType(launchType.toString()); return this; }
/** * Use this in place of {@link #values()} to return a {@link Set} of all values known to the SDK. This will return * all known enum values except {@link #UNKNOWN_TO_SDK_VERSION}. * * @return a {@link Set} of known {@link LaunchType}s */ public static Set<LaunchType> knownValues() { return Stream.of(values()).filter(v -> v != UNKNOWN_TO_SDK_VERSION).collect(toSet()); } }
/** * Use this in place of valueOf to convert the raw string returned by the service into the enum value. * * @param value * real value * @return LaunchType corresponding to the value */ public static LaunchType fromValue(String value) { if (value == null) { return null; } return Stream.of(LaunchType.values()).filter(e -> e.toString().equals(value)).findFirst().orElse(UNKNOWN_TO_SDK_VERSION); }
/** * <p> * Specifies the launch type on which your task is running. The launch type that you specify here must match one of * the launch type (compatibilities) of the target task. The <code>FARGATE</code> value is supported only in the * Regions where AWS Fargate with Amazon ECS is supported. For more information, see <a * href="http://docs.aws.amazon.com/AmazonECS/latest/developerguide/AWS-Fargate.html">AWS Fargate on Amazon ECS</a> * in the <i>Amazon Elastic Container Service Developer Guide</i>. * </p> * <p> * If the service returns an enum value that is not available in the current SDK version, {@link #launchType} will * return {@link LaunchType#UNKNOWN_TO_SDK_VERSION}. The raw value returned by the service is available from * {@link #launchTypeAsString}. * </p> * * @return Specifies the launch type on which your task is running. The launch type that you specify here must match * one of the launch type (compatibilities) of the target task. The <code>FARGATE</code> value is supported * only in the Regions where AWS Fargate with Amazon ECS is supported. For more information, see <a * href="http://docs.aws.amazon.com/AmazonECS/latest/developerguide/AWS-Fargate.html">AWS Fargate on Amazon * ECS</a> in the <i>Amazon Elastic Container Service Developer Guide</i>. * @see LaunchType */ public LaunchType launchType() { return LaunchType.fromValue(launchType); }