AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ConnectionHttpParameters.h
1
6#pragma once
7#include <aws/eventbridge/EventBridge_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/eventbridge/model/ConnectionHeaderParameter.h>
10#include <aws/eventbridge/model/ConnectionQueryStringParameter.h>
11#include <aws/eventbridge/model/ConnectionBodyParameter.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace EventBridge
25{
26namespace Model
27{
28
36 {
37 public:
38 AWS_EVENTBRIDGE_API ConnectionHttpParameters();
41 AWS_EVENTBRIDGE_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const Aws::Vector<ConnectionHeaderParameter>& GetHeaderParameters() const{ return m_headerParameters; }
49 inline bool HeaderParametersHasBeenSet() const { return m_headerParametersHasBeenSet; }
50 inline void SetHeaderParameters(const Aws::Vector<ConnectionHeaderParameter>& value) { m_headerParametersHasBeenSet = true; m_headerParameters = value; }
51 inline void SetHeaderParameters(Aws::Vector<ConnectionHeaderParameter>&& value) { m_headerParametersHasBeenSet = true; m_headerParameters = std::move(value); }
54 inline ConnectionHttpParameters& AddHeaderParameters(const ConnectionHeaderParameter& value) { m_headerParametersHasBeenSet = true; m_headerParameters.push_back(value); return *this; }
55 inline ConnectionHttpParameters& AddHeaderParameters(ConnectionHeaderParameter&& value) { m_headerParametersHasBeenSet = true; m_headerParameters.push_back(std::move(value)); return *this; }
57
59
62 inline const Aws::Vector<ConnectionQueryStringParameter>& GetQueryStringParameters() const{ return m_queryStringParameters; }
63 inline bool QueryStringParametersHasBeenSet() const { return m_queryStringParametersHasBeenSet; }
64 inline void SetQueryStringParameters(const Aws::Vector<ConnectionQueryStringParameter>& value) { m_queryStringParametersHasBeenSet = true; m_queryStringParameters = value; }
65 inline void SetQueryStringParameters(Aws::Vector<ConnectionQueryStringParameter>&& value) { m_queryStringParametersHasBeenSet = true; m_queryStringParameters = std::move(value); }
68 inline ConnectionHttpParameters& AddQueryStringParameters(const ConnectionQueryStringParameter& value) { m_queryStringParametersHasBeenSet = true; m_queryStringParameters.push_back(value); return *this; }
69 inline ConnectionHttpParameters& AddQueryStringParameters(ConnectionQueryStringParameter&& value) { m_queryStringParametersHasBeenSet = true; m_queryStringParameters.push_back(std::move(value)); return *this; }
71
73
76 inline const Aws::Vector<ConnectionBodyParameter>& GetBodyParameters() const{ return m_bodyParameters; }
77 inline bool BodyParametersHasBeenSet() const { return m_bodyParametersHasBeenSet; }
78 inline void SetBodyParameters(const Aws::Vector<ConnectionBodyParameter>& value) { m_bodyParametersHasBeenSet = true; m_bodyParameters = value; }
79 inline void SetBodyParameters(Aws::Vector<ConnectionBodyParameter>&& value) { m_bodyParametersHasBeenSet = true; m_bodyParameters = std::move(value); }
82 inline ConnectionHttpParameters& AddBodyParameters(const ConnectionBodyParameter& value) { m_bodyParametersHasBeenSet = true; m_bodyParameters.push_back(value); return *this; }
83 inline ConnectionHttpParameters& AddBodyParameters(ConnectionBodyParameter&& value) { m_bodyParametersHasBeenSet = true; m_bodyParameters.push_back(std::move(value)); return *this; }
85 private:
86
88 bool m_headerParametersHasBeenSet = false;
89
90 Aws::Vector<ConnectionQueryStringParameter> m_queryStringParameters;
91 bool m_queryStringParametersHasBeenSet = false;
92
94 bool m_bodyParametersHasBeenSet = false;
95 };
96
97} // namespace Model
98} // namespace EventBridge
99} // namespace Aws
ConnectionHttpParameters & WithBodyParameters(const Aws::Vector< ConnectionBodyParameter > &value)
const Aws::Vector< ConnectionHeaderParameter > & GetHeaderParameters() const
ConnectionHttpParameters & WithHeaderParameters(const Aws::Vector< ConnectionHeaderParameter > &value)
ConnectionHttpParameters & WithHeaderParameters(Aws::Vector< ConnectionHeaderParameter > &&value)
void SetHeaderParameters(const Aws::Vector< ConnectionHeaderParameter > &value)
ConnectionHttpParameters & AddBodyParameters(ConnectionBodyParameter &&value)
AWS_EVENTBRIDGE_API Aws::Utils::Json::JsonValue Jsonize() const
void SetQueryStringParameters(const Aws::Vector< ConnectionQueryStringParameter > &value)
void SetHeaderParameters(Aws::Vector< ConnectionHeaderParameter > &&value)
void SetBodyParameters(Aws::Vector< ConnectionBodyParameter > &&value)
ConnectionHttpParameters & WithQueryStringParameters(const Aws::Vector< ConnectionQueryStringParameter > &value)
ConnectionHttpParameters & WithQueryStringParameters(Aws::Vector< ConnectionQueryStringParameter > &&value)
ConnectionHttpParameters & AddHeaderParameters(ConnectionHeaderParameter &&value)
ConnectionHttpParameters & AddQueryStringParameters(ConnectionQueryStringParameter &&value)
ConnectionHttpParameters & AddHeaderParameters(const ConnectionHeaderParameter &value)
const Aws::Vector< ConnectionQueryStringParameter > & GetQueryStringParameters() const
ConnectionHttpParameters & AddQueryStringParameters(const ConnectionQueryStringParameter &value)
void SetBodyParameters(const Aws::Vector< ConnectionBodyParameter > &value)
ConnectionHttpParameters & AddBodyParameters(const ConnectionBodyParameter &value)
void SetQueryStringParameters(Aws::Vector< ConnectionQueryStringParameter > &&value)
AWS_EVENTBRIDGE_API ConnectionHttpParameters & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_EVENTBRIDGE_API ConnectionHttpParameters(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< ConnectionBodyParameter > & GetBodyParameters() const
ConnectionHttpParameters & WithBodyParameters(Aws::Vector< ConnectionBodyParameter > &&value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue