/** * <p> * [Required] Specifies a put integration input's type. * </p> * <p> * If the service returns an enum value that is not available in the current SDK version, {@link #type} will return * {@link IntegrationType#UNKNOWN_TO_SDK_VERSION}. The raw value returned by the service is available from * {@link #typeAsString}. * </p> * * @return [Required] Specifies a put integration input's type. * @see IntegrationType */ public IntegrationType type() { return IntegrationType.fromValue(type); }
/** * Use this in place of valueOf to convert the raw string returned by the service into the enum value. * * @param value * real value * @return IntegrationType corresponding to the value */ public static IntegrationType fromValue(String value) { if (value == null) { return null; } return Stream.of(IntegrationType.values()).filter(e -> e.toString().equals(value)).findFirst() .orElse(UNKNOWN_TO_SDK_VERSION); }
@Override public final Builder type(IntegrationType type) { this.type(type.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 IntegrationType}s */ public static Set<IntegrationType> knownValues() { return Stream.of(values()).filter(v -> v != UNKNOWN_TO_SDK_VERSION).collect(toSet()); } }
@Override public final Builder type(IntegrationType type) { this.type(type.toString()); return this; }
@Override public final Builder type(IntegrationType type) { this.type(type.toString()); return this; }
/** * <p> * Specifies the integration's type. The valid value is <code>HTTP</code> for integrating with an HTTP back end, * <code>AWS</code> for any AWS service endpoints, <code>MOCK</code> for testing without actually invoking the back * end, <code>HTTP_PROXY</code> for integrating with the HTTP proxy integration, or <code>AWS_PROXY</code> for * integrating with the Lambda proxy integration type. * </p> * <p> * If the service returns an enum value that is not available in the current SDK version, {@link #type} will return * {@link IntegrationType#UNKNOWN_TO_SDK_VERSION}. The raw value returned by the service is available from * {@link #typeAsString}. * </p> * * @return Specifies the integration's type. The valid value is <code>HTTP</code> for integrating with an HTTP back * end, <code>AWS</code> for any AWS service endpoints, <code>MOCK</code> for testing without actually * invoking the back end, <code>HTTP_PROXY</code> for integrating with the HTTP proxy integration, or * <code>AWS_PROXY</code> for integrating with the Lambda proxy integration type. * @see IntegrationType */ public IntegrationType type() { return IntegrationType.fromValue(type); }
@Override public final Builder type(IntegrationType type) { this.type(type.toString()); return this; }
return IntegrationType.fromValue(type);
@Override public final Builder type(IntegrationType type) { this.type(type.toString()); return this; }
return IntegrationType.fromValue(type);
@Override public final Builder type(IntegrationType type) { this.type(type.toString()); return this; }
return IntegrationType.fromValue(type);
@Override public final Builder type(IntegrationType type) { this.type(type.toString()); return this; }
return IntegrationType.fromValue(type);
return IntegrationType.fromValue(type);