/** * <p> * The source of the API key for metering requests according to a usage plan. Valid values are: * <ul> * <li><code>HEADER</code> to read the API key from the <code>X-API-Key</code> header of a request.</li> * <li><code>AUTHORIZER</code> to read the API key from the <code>UsageIdentifierKey</code> from a custom * authorizer.</li> * </ul> * </p> * <p> * If the service returns an enum value that is not available in the current SDK version, {@link #apiKeySource} will * return {@link ApiKeySourceType#UNKNOWN_TO_SDK_VERSION}. The raw value returned by the service is available from * {@link #apiKeySourceAsString}. * </p> * * @return The source of the API key for metering requests according to a usage plan. Valid values are: * <ul> * <li><code>HEADER</code> to read the API key from the <code>X-API-Key</code> header of a request.</li> * <li><code>AUTHORIZER</code> to read the API key from the <code>UsageIdentifierKey</code> from a custom * authorizer.</li> * </ul> * @see ApiKeySourceType */ public ApiKeySourceType apiKeySource() { return ApiKeySourceType.fromValue(apiKeySource); }
/** * <p> * The source of the API key for metering requests according to a usage plan. Valid values are: * <ul> * <li><code>HEADER</code> to read the API key from the <code>X-API-Key</code> header of a request.</li> * <li><code>AUTHORIZER</code> to read the API key from the <code>UsageIdentifierKey</code> from a custom * authorizer.</li> * </ul> * </p> * <p> * If the service returns an enum value that is not available in the current SDK version, {@link #apiKeySource} will * return {@link ApiKeySourceType#UNKNOWN_TO_SDK_VERSION}. The raw value returned by the service is available from * {@link #apiKeySourceAsString}. * </p> * * @return The source of the API key for metering requests according to a usage plan. Valid values are: * <ul> * <li><code>HEADER</code> to read the API key from the <code>X-API-Key</code> header of a request.</li> * <li><code>AUTHORIZER</code> to read the API key from the <code>UsageIdentifierKey</code> from a custom * authorizer.</li> * </ul> * @see ApiKeySourceType */ public ApiKeySourceType apiKeySource() { return ApiKeySourceType.fromValue(apiKeySource); }
/** * <p> * The source of the API key for metering requests according to a usage plan. Valid values are: * <ul> * <li><code>HEADER</code> to read the API key from the <code>X-API-Key</code> header of a request.</li> * <li><code>AUTHORIZER</code> to read the API key from the <code>UsageIdentifierKey</code> from a custom * authorizer.</li> * </ul> * </p> * <p> * If the service returns an enum value that is not available in the current SDK version, {@link #apiKeySource} will * return {@link ApiKeySourceType#UNKNOWN_TO_SDK_VERSION}. The raw value returned by the service is available from * {@link #apiKeySourceAsString}. * </p> * * @return The source of the API key for metering requests according to a usage plan. Valid values are: * <ul> * <li><code>HEADER</code> to read the API key from the <code>X-API-Key</code> header of a request.</li> * <li><code>AUTHORIZER</code> to read the API key from the <code>UsageIdentifierKey</code> from a custom * authorizer.</li> * </ul> * @see ApiKeySourceType */ public ApiKeySourceType apiKeySource() { return ApiKeySourceType.fromValue(apiKeySource); }
/** * <p> * The source of the API key for metering requests according to a usage plan. Valid values are: * <ul> * <li><code>HEADER</code> to read the API key from the <code>X-API-Key</code> header of a request.</li> * <li><code>AUTHORIZER</code> to read the API key from the <code>UsageIdentifierKey</code> from a custom * authorizer.</li> * </ul> * </p> * <p> * If the service returns an enum value that is not available in the current SDK version, {@link #apiKeySource} will * return {@link ApiKeySourceType#UNKNOWN_TO_SDK_VERSION}. The raw value returned by the service is available from * {@link #apiKeySourceAsString}. * </p> * * @return The source of the API key for metering requests according to a usage plan. Valid values are: * <ul> * <li><code>HEADER</code> to read the API key from the <code>X-API-Key</code> header of a request.</li> * <li><code>AUTHORIZER</code> to read the API key from the <code>UsageIdentifierKey</code> from a custom * authorizer.</li> * </ul> * @see ApiKeySourceType */ public ApiKeySourceType apiKeySource() { return ApiKeySourceType.fromValue(apiKeySource); }
/** * <p> * The source of the API key for metering requests according to a usage plan. Valid values are: * <ul> * <li><code>HEADER</code> to read the API key from the <code>X-API-Key</code> header of a request.</li> * <li><code>AUTHORIZER</code> to read the API key from the <code>UsageIdentifierKey</code> from a custom * authorizer.</li> * </ul> * </p> * <p> * If the service returns an enum value that is not available in the current SDK version, {@link #apiKeySource} will * return {@link ApiKeySourceType#UNKNOWN_TO_SDK_VERSION}. The raw value returned by the service is available from * {@link #apiKeySourceAsString}. * </p> * * @return The source of the API key for metering requests according to a usage plan. Valid values are: * <ul> * <li><code>HEADER</code> to read the API key from the <code>X-API-Key</code> header of a request.</li> * <li><code>AUTHORIZER</code> to read the API key from the <code>UsageIdentifierKey</code> from a custom * authorizer.</li> * </ul> * @see ApiKeySourceType */ public ApiKeySourceType apiKeySource() { return ApiKeySourceType.fromValue(apiKeySource); }
/** * <p> * The source of the API key for metering requests according to a usage plan. Valid values are: * <ul> * <li><code>HEADER</code> to read the API key from the <code>X-API-Key</code> header of a request.</li> * <li><code>AUTHORIZER</code> to read the API key from the <code>UsageIdentifierKey</code> from a custom * authorizer.</li> * </ul> * </p> * <p> * If the service returns an enum value that is not available in the current SDK version, {@link #apiKeySource} will * return {@link ApiKeySourceType#UNKNOWN_TO_SDK_VERSION}. The raw value returned by the service is available from * {@link #apiKeySourceAsString}. * </p> * * @return The source of the API key for metering requests according to a usage plan. Valid values are: * <ul> * <li><code>HEADER</code> to read the API key from the <code>X-API-Key</code> header of a request.</li> * <li><code>AUTHORIZER</code> to read the API key from the <code>UsageIdentifierKey</code> from a custom * authorizer.</li> * </ul> * @see ApiKeySourceType */ public ApiKeySourceType apiKeySource() { return ApiKeySourceType.fromValue(apiKeySource); }
/** * <p> * The source of the API key for metering requests according to a usage plan. Valid values are: * <ul> * <li><code>HEADER</code> to read the API key from the <code>X-API-Key</code> header of a request.</li> * <li><code>AUTHORIZER</code> to read the API key from the <code>UsageIdentifierKey</code> from a custom * authorizer.</li> * </ul> * </p> * <p> * If the service returns an enum value that is not available in the current SDK version, {@link #apiKeySource} will * return {@link ApiKeySourceType#UNKNOWN_TO_SDK_VERSION}. The raw value returned by the service is available from * {@link #apiKeySourceAsString}. * </p> * * @return The source of the API key for metering requests according to a usage plan. Valid values are: * <ul> * <li><code>HEADER</code> to read the API key from the <code>X-API-Key</code> header of a request.</li> * <li><code>AUTHORIZER</code> to read the API key from the <code>UsageIdentifierKey</code> from a custom * authorizer.</li> * </ul> * @see ApiKeySourceType */ public ApiKeySourceType apiKeySource() { return ApiKeySourceType.fromValue(apiKeySource); }
/** * <p> * The source of the API key for metering requests according to a usage plan. Valid values are: * <ul> * <li><code>HEADER</code> to read the API key from the <code>X-API-Key</code> header of a request.</li> * <li><code>AUTHORIZER</code> to read the API key from the <code>UsageIdentifierKey</code> from a custom * authorizer.</li> * </ul> * </p> * <p> * If the service returns an enum value that is not available in the current SDK version, {@link #apiKeySource} will * return {@link ApiKeySourceType#UNKNOWN_TO_SDK_VERSION}. The raw value returned by the service is available from * {@link #apiKeySourceAsString}. * </p> * * @return The source of the API key for metering requests according to a usage plan. Valid values are: * <ul> * <li><code>HEADER</code> to read the API key from the <code>X-API-Key</code> header of a request.</li> * <li><code>AUTHORIZER</code> to read the API key from the <code>UsageIdentifierKey</code> from a custom * authorizer.</li> * </ul> * @see ApiKeySourceType */ public ApiKeySourceType apiKeySource() { return ApiKeySourceType.fromValue(apiKeySource); }