AWS SDK for C++

AWS SDK for C++ Version 1.11.895

Loading...
Searching...
No Matches
UpdateConnectionsBillingModeResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/directconnect/DirectConnect_EXPORTS.h>
11#include <aws/directconnect/model/BillingMode.h>
12#include <aws/directconnect/model/Connection.h>
13
14#include <utility>
15
16namespace Aws {
17template <typename RESULT_TYPE>
18class AmazonWebServiceResult;
19
20namespace Utils {
21namespace Json {
22class JsonValue;
23} // namespace Json
24} // namespace Utils
25namespace DirectConnect {
26namespace Model {
28 public:
29 AWS_DIRECTCONNECT_API UpdateConnectionsBillingModeResult() = default;
33
35
38 inline BillingMode GetBillingMode() const { return m_billingMode; }
39 inline void SetBillingMode(BillingMode value) {
40 m_billingModeHasBeenSet = true;
41 m_billingMode = value;
42 }
44 SetBillingMode(value);
45 return *this;
46 }
48
50
53 inline const Aws::Vector<Connection>& GetConnections() const { return m_connections; }
54 template <typename ConnectionsT = Aws::Vector<Connection>>
55 void SetConnections(ConnectionsT&& value) {
56 m_connectionsHasBeenSet = true;
57 m_connections = std::forward<ConnectionsT>(value);
58 }
59 template <typename ConnectionsT = Aws::Vector<Connection>>
61 SetConnections(std::forward<ConnectionsT>(value));
62 return *this;
63 }
64 template <typename ConnectionsT = Connection>
66 m_connectionsHasBeenSet = true;
67 m_connections.emplace_back(std::forward<ConnectionsT>(value));
68 return *this;
69 }
71
73
74 inline const Aws::String& GetRequestId() const { return m_requestId; }
75 template <typename RequestIdT = Aws::String>
76 void SetRequestId(RequestIdT&& value) {
77 m_requestIdHasBeenSet = true;
78 m_requestId = std::forward<RequestIdT>(value);
79 }
80 template <typename RequestIdT = Aws::String>
82 SetRequestId(std::forward<RequestIdT>(value));
83 return *this;
84 }
86 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
87
88 private:
89 BillingMode m_billingMode{BillingMode::NOT_SET};
90
91 Aws::Vector<Connection> m_connections;
92
93 Aws::String m_requestId;
94 Aws::Http::HttpResponseCode m_HttpResponseCode;
95 bool m_billingModeHasBeenSet = false;
96 bool m_connectionsHasBeenSet = false;
97 bool m_requestIdHasBeenSet = false;
98};
99
100} // namespace Model
101} // namespace DirectConnect
102} // namespace Aws
UpdateConnectionsBillingModeResult & WithConnections(ConnectionsT &&value)
UpdateConnectionsBillingModeResult & WithRequestId(RequestIdT &&value)
AWS_DIRECTCONNECT_API UpdateConnectionsBillingModeResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_DIRECTCONNECT_API UpdateConnectionsBillingModeResult()=default
UpdateConnectionsBillingModeResult & WithBillingMode(BillingMode value)
AWS_DIRECTCONNECT_API UpdateConnectionsBillingModeResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
UpdateConnectionsBillingModeResult & AddConnections(ConnectionsT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue