/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Information about an HTTP method condition. HTTP defines a set of
* request methods, also referred to as HTTP verbs. For more information, see the
* HTTP
* Method Registry. You can also define custom HTTP methods.See
* Also:
AWS
* API Reference
The name of the request method. The maximum size is 40 characters. The * allowed characters are A-Z, hyphen (-), and underscore (_). The comparison is * case sensitive. Wildcards are not supported; therefore, the method name must be * an exact match.
If you specify multiple strings, the condition is * satisfied if one of the strings matches the HTTP request method. We recommend * that you route GET and HEAD requests in the same way, because the response to a * HEAD request may be cached.
*/ inline const Aws::VectorThe name of the request method. The maximum size is 40 characters. The * allowed characters are A-Z, hyphen (-), and underscore (_). The comparison is * case sensitive. Wildcards are not supported; therefore, the method name must be * an exact match.
If you specify multiple strings, the condition is * satisfied if one of the strings matches the HTTP request method. We recommend * that you route GET and HEAD requests in the same way, because the response to a * HEAD request may be cached.
*/ inline bool ValuesHasBeenSet() const { return m_valuesHasBeenSet; } /** *The name of the request method. The maximum size is 40 characters. The * allowed characters are A-Z, hyphen (-), and underscore (_). The comparison is * case sensitive. Wildcards are not supported; therefore, the method name must be * an exact match.
If you specify multiple strings, the condition is * satisfied if one of the strings matches the HTTP request method. We recommend * that you route GET and HEAD requests in the same way, because the response to a * HEAD request may be cached.
*/ inline void SetValues(const Aws::VectorThe name of the request method. The maximum size is 40 characters. The * allowed characters are A-Z, hyphen (-), and underscore (_). The comparison is * case sensitive. Wildcards are not supported; therefore, the method name must be * an exact match.
If you specify multiple strings, the condition is * satisfied if one of the strings matches the HTTP request method. We recommend * that you route GET and HEAD requests in the same way, because the response to a * HEAD request may be cached.
*/ inline void SetValues(Aws::VectorThe name of the request method. The maximum size is 40 characters. The * allowed characters are A-Z, hyphen (-), and underscore (_). The comparison is * case sensitive. Wildcards are not supported; therefore, the method name must be * an exact match.
If you specify multiple strings, the condition is * satisfied if one of the strings matches the HTTP request method. We recommend * that you route GET and HEAD requests in the same way, because the response to a * HEAD request may be cached.
*/ inline HttpRequestMethodConditionConfig& WithValues(const Aws::VectorThe name of the request method. The maximum size is 40 characters. The * allowed characters are A-Z, hyphen (-), and underscore (_). The comparison is * case sensitive. Wildcards are not supported; therefore, the method name must be * an exact match.
If you specify multiple strings, the condition is * satisfied if one of the strings matches the HTTP request method. We recommend * that you route GET and HEAD requests in the same way, because the response to a * HEAD request may be cached.
*/ inline HttpRequestMethodConditionConfig& WithValues(Aws::VectorThe name of the request method. The maximum size is 40 characters. The * allowed characters are A-Z, hyphen (-), and underscore (_). The comparison is * case sensitive. Wildcards are not supported; therefore, the method name must be * an exact match.
If you specify multiple strings, the condition is * satisfied if one of the strings matches the HTTP request method. We recommend * that you route GET and HEAD requests in the same way, because the response to a * HEAD request may be cached.
*/ inline HttpRequestMethodConditionConfig& AddValues(const Aws::String& value) { m_valuesHasBeenSet = true; m_values.push_back(value); return *this; } /** *The name of the request method. The maximum size is 40 characters. The * allowed characters are A-Z, hyphen (-), and underscore (_). The comparison is * case sensitive. Wildcards are not supported; therefore, the method name must be * an exact match.
If you specify multiple strings, the condition is * satisfied if one of the strings matches the HTTP request method. We recommend * that you route GET and HEAD requests in the same way, because the response to a * HEAD request may be cached.
*/ inline HttpRequestMethodConditionConfig& AddValues(Aws::String&& value) { m_valuesHasBeenSet = true; m_values.push_back(std::move(value)); return *this; } /** *The name of the request method. The maximum size is 40 characters. The * allowed characters are A-Z, hyphen (-), and underscore (_). The comparison is * case sensitive. Wildcards are not supported; therefore, the method name must be * an exact match.
If you specify multiple strings, the condition is * satisfied if one of the strings matches the HTTP request method. We recommend * that you route GET and HEAD requests in the same way, because the response to a * HEAD request may be cached.
*/ inline HttpRequestMethodConditionConfig& AddValues(const char* value) { m_valuesHasBeenSet = true; m_values.push_back(value); return *this; } private: Aws::Vector