AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
MaintenanceWindowTarget.h
1
6#pragma once
7#include <aws/ssm/SSM_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/ssm/model/MaintenanceWindowResourceType.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/ssm/model/Target.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 SSM
25{
26namespace Model
27{
28
36 {
37 public:
42
43
45
48 inline const Aws::String& GetWindowId() const{ return m_windowId; }
49 inline bool WindowIdHasBeenSet() const { return m_windowIdHasBeenSet; }
50 inline void SetWindowId(const Aws::String& value) { m_windowIdHasBeenSet = true; m_windowId = value; }
51 inline void SetWindowId(Aws::String&& value) { m_windowIdHasBeenSet = true; m_windowId = std::move(value); }
52 inline void SetWindowId(const char* value) { m_windowIdHasBeenSet = true; m_windowId.assign(value); }
53 inline MaintenanceWindowTarget& WithWindowId(const Aws::String& value) { SetWindowId(value); return *this;}
54 inline MaintenanceWindowTarget& WithWindowId(Aws::String&& value) { SetWindowId(std::move(value)); return *this;}
55 inline MaintenanceWindowTarget& WithWindowId(const char* value) { SetWindowId(value); return *this;}
57
59
62 inline const Aws::String& GetWindowTargetId() const{ return m_windowTargetId; }
63 inline bool WindowTargetIdHasBeenSet() const { return m_windowTargetIdHasBeenSet; }
64 inline void SetWindowTargetId(const Aws::String& value) { m_windowTargetIdHasBeenSet = true; m_windowTargetId = value; }
65 inline void SetWindowTargetId(Aws::String&& value) { m_windowTargetIdHasBeenSet = true; m_windowTargetId = std::move(value); }
66 inline void SetWindowTargetId(const char* value) { m_windowTargetIdHasBeenSet = true; m_windowTargetId.assign(value); }
67 inline MaintenanceWindowTarget& WithWindowTargetId(const Aws::String& value) { SetWindowTargetId(value); return *this;}
68 inline MaintenanceWindowTarget& WithWindowTargetId(Aws::String&& value) { SetWindowTargetId(std::move(value)); return *this;}
69 inline MaintenanceWindowTarget& WithWindowTargetId(const char* value) { SetWindowTargetId(value); return *this;}
71
73
76 inline const MaintenanceWindowResourceType& GetResourceType() const{ return m_resourceType; }
77 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
78 inline void SetResourceType(const MaintenanceWindowResourceType& value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; }
79 inline void SetResourceType(MaintenanceWindowResourceType&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::move(value); }
83
85
92 inline const Aws::Vector<Target>& GetTargets() const{ return m_targets; }
93 inline bool TargetsHasBeenSet() const { return m_targetsHasBeenSet; }
94 inline void SetTargets(const Aws::Vector<Target>& value) { m_targetsHasBeenSet = true; m_targets = value; }
95 inline void SetTargets(Aws::Vector<Target>&& value) { m_targetsHasBeenSet = true; m_targets = std::move(value); }
96 inline MaintenanceWindowTarget& WithTargets(const Aws::Vector<Target>& value) { SetTargets(value); return *this;}
97 inline MaintenanceWindowTarget& WithTargets(Aws::Vector<Target>&& value) { SetTargets(std::move(value)); return *this;}
98 inline MaintenanceWindowTarget& AddTargets(const Target& value) { m_targetsHasBeenSet = true; m_targets.push_back(value); return *this; }
99 inline MaintenanceWindowTarget& AddTargets(Target&& value) { m_targetsHasBeenSet = true; m_targets.push_back(std::move(value)); return *this; }
101
103
108 inline const Aws::String& GetOwnerInformation() const{ return m_ownerInformation; }
109 inline bool OwnerInformationHasBeenSet() const { return m_ownerInformationHasBeenSet; }
110 inline void SetOwnerInformation(const Aws::String& value) { m_ownerInformationHasBeenSet = true; m_ownerInformation = value; }
111 inline void SetOwnerInformation(Aws::String&& value) { m_ownerInformationHasBeenSet = true; m_ownerInformation = std::move(value); }
112 inline void SetOwnerInformation(const char* value) { m_ownerInformationHasBeenSet = true; m_ownerInformation.assign(value); }
114 inline MaintenanceWindowTarget& WithOwnerInformation(Aws::String&& value) { SetOwnerInformation(std::move(value)); return *this;}
115 inline MaintenanceWindowTarget& WithOwnerInformation(const char* value) { SetOwnerInformation(value); return *this;}
117
119
122 inline const Aws::String& GetName() const{ return m_name; }
123 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
124 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
125 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
126 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
127 inline MaintenanceWindowTarget& WithName(const Aws::String& value) { SetName(value); return *this;}
128 inline MaintenanceWindowTarget& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
129 inline MaintenanceWindowTarget& WithName(const char* value) { SetName(value); return *this;}
131
133
136 inline const Aws::String& GetDescription() const{ return m_description; }
137 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
138 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
139 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
140 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
141 inline MaintenanceWindowTarget& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
142 inline MaintenanceWindowTarget& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
143 inline MaintenanceWindowTarget& WithDescription(const char* value) { SetDescription(value); return *this;}
145 private:
146
147 Aws::String m_windowId;
148 bool m_windowIdHasBeenSet = false;
149
150 Aws::String m_windowTargetId;
151 bool m_windowTargetIdHasBeenSet = false;
152
153 MaintenanceWindowResourceType m_resourceType;
154 bool m_resourceTypeHasBeenSet = false;
155
156 Aws::Vector<Target> m_targets;
157 bool m_targetsHasBeenSet = false;
158
159 Aws::String m_ownerInformation;
160 bool m_ownerInformationHasBeenSet = false;
161
162 Aws::String m_name;
163 bool m_nameHasBeenSet = false;
164
165 Aws::String m_description;
166 bool m_descriptionHasBeenSet = false;
167 };
168
169} // namespace Model
170} // namespace SSM
171} // namespace Aws
MaintenanceWindowTarget & WithOwnerInformation(const char *value)
MaintenanceWindowTarget & WithWindowId(const Aws::String &value)
void SetOwnerInformation(const Aws::String &value)
void SetTargets(const Aws::Vector< Target > &value)
MaintenanceWindowTarget & WithDescription(const Aws::String &value)
MaintenanceWindowTarget & WithName(const Aws::String &value)
MaintenanceWindowTarget & WithWindowId(Aws::String &&value)
const Aws::Vector< Target > & GetTargets() const
MaintenanceWindowTarget & WithName(const char *value)
MaintenanceWindowTarget & WithOwnerInformation(Aws::String &&value)
MaintenanceWindowTarget & WithResourceType(const MaintenanceWindowResourceType &value)
AWS_SSM_API MaintenanceWindowTarget(Aws::Utils::Json::JsonView jsonValue)
MaintenanceWindowTarget & WithResourceType(MaintenanceWindowResourceType &&value)
const MaintenanceWindowResourceType & GetResourceType() const
MaintenanceWindowTarget & WithOwnerInformation(const Aws::String &value)
MaintenanceWindowTarget & WithTargets(Aws::Vector< Target > &&value)
void SetWindowTargetId(const Aws::String &value)
AWS_SSM_API MaintenanceWindowTarget & operator=(Aws::Utils::Json::JsonView jsonValue)
MaintenanceWindowTarget & WithWindowTargetId(Aws::String &&value)
MaintenanceWindowTarget & AddTargets(Target &&value)
MaintenanceWindowTarget & AddTargets(const Target &value)
MaintenanceWindowTarget & WithName(Aws::String &&value)
MaintenanceWindowTarget & WithWindowTargetId(const Aws::String &value)
MaintenanceWindowTarget & WithDescription(Aws::String &&value)
MaintenanceWindowTarget & WithWindowId(const char *value)
MaintenanceWindowTarget & WithWindowTargetId(const char *value)
MaintenanceWindowTarget & WithDescription(const char *value)
void SetResourceType(MaintenanceWindowResourceType &&value)
MaintenanceWindowTarget & WithTargets(const Aws::Vector< Target > &value)
void SetResourceType(const MaintenanceWindowResourceType &value)
void SetTargets(Aws::Vector< Target > &&value)
AWS_SSM_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue