AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
InstancesToExclude.h
1
6#pragma once
7#include <aws/outposts/Outposts_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/outposts/model/AWSServiceName.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace Outposts
24{
25namespace Model
26{
27
36 {
37 public:
38 AWS_OUTPOSTS_API InstancesToExclude() = default;
41 AWS_OUTPOSTS_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const Aws::Vector<Aws::String>& GetInstances() const { return m_instances; }
49 inline bool InstancesHasBeenSet() const { return m_instancesHasBeenSet; }
50 template<typename InstancesT = Aws::Vector<Aws::String>>
51 void SetInstances(InstancesT&& value) { m_instancesHasBeenSet = true; m_instances = std::forward<InstancesT>(value); }
52 template<typename InstancesT = Aws::Vector<Aws::String>>
53 InstancesToExclude& WithInstances(InstancesT&& value) { SetInstances(std::forward<InstancesT>(value)); return *this;}
54 template<typename InstancesT = Aws::String>
55 InstancesToExclude& AddInstances(InstancesT&& value) { m_instancesHasBeenSet = true; m_instances.emplace_back(std::forward<InstancesT>(value)); return *this; }
57
59
62 inline const Aws::Vector<Aws::String>& GetAccountIds() const { return m_accountIds; }
63 inline bool AccountIdsHasBeenSet() const { return m_accountIdsHasBeenSet; }
64 template<typename AccountIdsT = Aws::Vector<Aws::String>>
65 void SetAccountIds(AccountIdsT&& value) { m_accountIdsHasBeenSet = true; m_accountIds = std::forward<AccountIdsT>(value); }
66 template<typename AccountIdsT = Aws::Vector<Aws::String>>
67 InstancesToExclude& WithAccountIds(AccountIdsT&& value) { SetAccountIds(std::forward<AccountIdsT>(value)); return *this;}
68 template<typename AccountIdsT = Aws::String>
69 InstancesToExclude& AddAccountIds(AccountIdsT&& value) { m_accountIdsHasBeenSet = true; m_accountIds.emplace_back(std::forward<AccountIdsT>(value)); return *this; }
71
73
77 inline const Aws::Vector<AWSServiceName>& GetServices() const { return m_services; }
78 inline bool ServicesHasBeenSet() const { return m_servicesHasBeenSet; }
79 template<typename ServicesT = Aws::Vector<AWSServiceName>>
80 void SetServices(ServicesT&& value) { m_servicesHasBeenSet = true; m_services = std::forward<ServicesT>(value); }
81 template<typename ServicesT = Aws::Vector<AWSServiceName>>
82 InstancesToExclude& WithServices(ServicesT&& value) { SetServices(std::forward<ServicesT>(value)); return *this;}
83 inline InstancesToExclude& AddServices(AWSServiceName value) { m_servicesHasBeenSet = true; m_services.push_back(value); return *this; }
85 private:
86
87 Aws::Vector<Aws::String> m_instances;
88 bool m_instancesHasBeenSet = false;
89
90 Aws::Vector<Aws::String> m_accountIds;
91 bool m_accountIdsHasBeenSet = false;
92
94 bool m_servicesHasBeenSet = false;
95 };
96
97} // namespace Model
98} // namespace Outposts
99} // 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