AWS SDK for C++

AWS SDK for C++ Version 1.11.711

Loading...
Searching...
No Matches
InstancesToExclude.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/outposts/Outposts_EXPORTS.h>
10#include <aws/outposts/model/AWSServiceName.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Outposts {
22namespace Model {
23
32 public:
33 AWS_OUTPOSTS_API InstancesToExclude() = default;
36 AWS_OUTPOSTS_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const Aws::Vector<Aws::String>& GetInstances() const { return m_instances; }
43 inline bool InstancesHasBeenSet() const { return m_instancesHasBeenSet; }
44 template <typename InstancesT = Aws::Vector<Aws::String>>
45 void SetInstances(InstancesT&& value) {
46 m_instancesHasBeenSet = true;
47 m_instances = std::forward<InstancesT>(value);
48 }
49 template <typename InstancesT = Aws::Vector<Aws::String>>
50 InstancesToExclude& WithInstances(InstancesT&& value) {
51 SetInstances(std::forward<InstancesT>(value));
52 return *this;
53 }
54 template <typename InstancesT = Aws::String>
55 InstancesToExclude& AddInstances(InstancesT&& value) {
56 m_instancesHasBeenSet = true;
57 m_instances.emplace_back(std::forward<InstancesT>(value));
58 return *this;
59 }
61
63
66 inline const Aws::Vector<Aws::String>& GetAccountIds() const { return m_accountIds; }
67 inline bool AccountIdsHasBeenSet() const { return m_accountIdsHasBeenSet; }
68 template <typename AccountIdsT = Aws::Vector<Aws::String>>
69 void SetAccountIds(AccountIdsT&& value) {
70 m_accountIdsHasBeenSet = true;
71 m_accountIds = std::forward<AccountIdsT>(value);
72 }
73 template <typename AccountIdsT = Aws::Vector<Aws::String>>
74 InstancesToExclude& WithAccountIds(AccountIdsT&& value) {
75 SetAccountIds(std::forward<AccountIdsT>(value));
76 return *this;
77 }
78 template <typename AccountIdsT = Aws::String>
79 InstancesToExclude& AddAccountIds(AccountIdsT&& value) {
80 m_accountIdsHasBeenSet = true;
81 m_accountIds.emplace_back(std::forward<AccountIdsT>(value));
82 return *this;
83 }
85
87
91 inline const Aws::Vector<AWSServiceName>& GetServices() const { return m_services; }
92 inline bool ServicesHasBeenSet() const { return m_servicesHasBeenSet; }
93 template <typename ServicesT = Aws::Vector<AWSServiceName>>
94 void SetServices(ServicesT&& value) {
95 m_servicesHasBeenSet = true;
96 m_services = std::forward<ServicesT>(value);
97 }
98 template <typename ServicesT = Aws::Vector<AWSServiceName>>
99 InstancesToExclude& WithServices(ServicesT&& value) {
100 SetServices(std::forward<ServicesT>(value));
101 return *this;
102 }
104 m_servicesHasBeenSet = true;
105 m_services.push_back(value);
106 return *this;
107 }
109 private:
110 Aws::Vector<Aws::String> m_instances;
111
112 Aws::Vector<Aws::String> m_accountIds;
113
115 bool m_instancesHasBeenSet = false;
116 bool m_accountIdsHasBeenSet = false;
117 bool m_servicesHasBeenSet = false;
118};
119
120} // namespace Model
121} // namespace Outposts
122} // namespace Aws
const Aws::Vector< AWSServiceName > & GetServices() const
const Aws::Vector< Aws::String > & GetInstances() const
InstancesToExclude & WithServices(ServicesT &&value)
AWS_OUTPOSTS_API Aws::Utils::Json::JsonValue Jsonize() const
InstancesToExclude & AddServices(AWSServiceName value)
AWS_OUTPOSTS_API InstancesToExclude(Aws::Utils::Json::JsonView jsonValue)
InstancesToExclude & WithAccountIds(AccountIdsT &&value)
InstancesToExclude & AddInstances(InstancesT &&value)
const Aws::Vector< Aws::String > & GetAccountIds() const
AWS_OUTPOSTS_API InstancesToExclude()=default
InstancesToExclude & AddAccountIds(AccountIdsT &&value)
AWS_OUTPOSTS_API InstancesToExclude & operator=(Aws::Utils::Json::JsonView jsonValue)
InstancesToExclude & WithInstances(InstancesT &&value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue