AWS SDK for C++

AWS SDK for C++ Version 1.11.895

Loading...
Searching...
No Matches
UpdateConnectionsBillingModeRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/directconnect/DirectConnectRequest.h>
10#include <aws/directconnect/DirectConnect_EXPORTS.h>
11#include <aws/directconnect/model/RequestBillingMode.h>
12
13#include <utility>
14
15namespace Aws {
16namespace DirectConnect {
17namespace Model {
18
22 public:
23 AWS_DIRECTCONNECT_API UpdateConnectionsBillingModeRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "UpdateConnectionsBillingMode"; }
30
31 AWS_DIRECTCONNECT_API Aws::String SerializePayload() const override;
32
33 AWS_DIRECTCONNECT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
34
36
40 inline const Aws::Vector<Aws::String>& GetConnectionIds() const { return m_connectionIds; }
41 inline bool ConnectionIdsHasBeenSet() const { return m_connectionIdsHasBeenSet; }
42 template <typename ConnectionIdsT = Aws::Vector<Aws::String>>
43 void SetConnectionIds(ConnectionIdsT&& value) {
44 m_connectionIdsHasBeenSet = true;
45 m_connectionIds = std::forward<ConnectionIdsT>(value);
46 }
47 template <typename ConnectionIdsT = Aws::Vector<Aws::String>>
49 SetConnectionIds(std::forward<ConnectionIdsT>(value));
50 return *this;
51 }
52 template <typename ConnectionIdsT = Aws::String>
54 m_connectionIdsHasBeenSet = true;
55 m_connectionIds.emplace_back(std::forward<ConnectionIdsT>(value));
56 return *this;
57 }
59
61
67 inline RequestBillingMode GetBillingMode() const { return m_billingMode; }
68 inline bool BillingModeHasBeenSet() const { return m_billingModeHasBeenSet; }
70 m_billingModeHasBeenSet = true;
71 m_billingMode = value;
72 }
74 SetBillingMode(value);
75 return *this;
76 }
78 private:
79 Aws::Vector<Aws::String> m_connectionIds;
80
82 bool m_connectionIdsHasBeenSet = false;
83 bool m_billingModeHasBeenSet = false;
84};
85
86} // namespace Model
87} // namespace DirectConnect
88} // namespace Aws
UpdateConnectionsBillingModeRequest & WithBillingMode(RequestBillingMode value)
AWS_DIRECTCONNECT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
UpdateConnectionsBillingModeRequest & AddConnectionIds(ConnectionIdsT &&value)
AWS_DIRECTCONNECT_API UpdateConnectionsBillingModeRequest()=default
UpdateConnectionsBillingModeRequest & WithConnectionIds(ConnectionIdsT &&value)
AWS_DIRECTCONNECT_API Aws::String SerializePayload() const override
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector