AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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:
38 AWS_SSM_API MaintenanceWindowTarget() = default;
42
43
45
48 inline const Aws::String& GetWindowId() const { return m_windowId; }
49 inline bool WindowIdHasBeenSet() const { return m_windowIdHasBeenSet; }
50 template<typename WindowIdT = Aws::String>
51 void SetWindowId(WindowIdT&& value) { m_windowIdHasBeenSet = true; m_windowId = std::forward<WindowIdT>(value); }
52 template<typename WindowIdT = Aws::String>
53 MaintenanceWindowTarget& WithWindowId(WindowIdT&& value) { SetWindowId(std::forward<WindowIdT>(value)); return *this;}
55
57
60 inline const Aws::String& GetWindowTargetId() const { return m_windowTargetId; }
61 inline bool WindowTargetIdHasBeenSet() const { return m_windowTargetIdHasBeenSet; }
62 template<typename WindowTargetIdT = Aws::String>
63 void SetWindowTargetId(WindowTargetIdT&& value) { m_windowTargetIdHasBeenSet = true; m_windowTargetId = std::forward<WindowTargetIdT>(value); }
64 template<typename WindowTargetIdT = Aws::String>
65 MaintenanceWindowTarget& WithWindowTargetId(WindowTargetIdT&& value) { SetWindowTargetId(std::forward<WindowTargetIdT>(value)); return *this;}
67
69
72 inline MaintenanceWindowResourceType GetResourceType() const { return m_resourceType; }
73 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
74 inline void SetResourceType(MaintenanceWindowResourceType value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; }
77
79
86 inline const Aws::Vector<Target>& GetTargets() const { return m_targets; }
87 inline bool TargetsHasBeenSet() const { return m_targetsHasBeenSet; }
88 template<typename TargetsT = Aws::Vector<Target>>
89 void SetTargets(TargetsT&& value) { m_targetsHasBeenSet = true; m_targets = std::forward<TargetsT>(value); }
90 template<typename TargetsT = Aws::Vector<Target>>
91 MaintenanceWindowTarget& WithTargets(TargetsT&& value) { SetTargets(std::forward<TargetsT>(value)); return *this;}
92 template<typename TargetsT = Target>
93 MaintenanceWindowTarget& AddTargets(TargetsT&& value) { m_targetsHasBeenSet = true; m_targets.emplace_back(std::forward<TargetsT>(value)); return *this; }
95
97
102 inline const Aws::String& GetOwnerInformation() const { return m_ownerInformation; }
103 inline bool OwnerInformationHasBeenSet() const { return m_ownerInformationHasBeenSet; }
104 template<typename OwnerInformationT = Aws::String>
105 void SetOwnerInformation(OwnerInformationT&& value) { m_ownerInformationHasBeenSet = true; m_ownerInformation = std::forward<OwnerInformationT>(value); }
106 template<typename OwnerInformationT = Aws::String>
107 MaintenanceWindowTarget& WithOwnerInformation(OwnerInformationT&& value) { SetOwnerInformation(std::forward<OwnerInformationT>(value)); return *this;}
109
111
114 inline const Aws::String& GetName() const { return m_name; }
115 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
116 template<typename NameT = Aws::String>
117 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
118 template<typename NameT = Aws::String>
119 MaintenanceWindowTarget& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
121
123
126 inline const Aws::String& GetDescription() const { return m_description; }
127 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
128 template<typename DescriptionT = Aws::String>
129 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
130 template<typename DescriptionT = Aws::String>
131 MaintenanceWindowTarget& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
133 private:
134
135 Aws::String m_windowId;
136 bool m_windowIdHasBeenSet = false;
137
138 Aws::String m_windowTargetId;
139 bool m_windowTargetIdHasBeenSet = false;
140
142 bool m_resourceTypeHasBeenSet = false;
143
144 Aws::Vector<Target> m_targets;
145 bool m_targetsHasBeenSet = false;
146
147 Aws::String m_ownerInformation;
148 bool m_ownerInformationHasBeenSet = false;
149
150 Aws::String m_name;
151 bool m_nameHasBeenSet = false;
152
153 Aws::String m_description;
154 bool m_descriptionHasBeenSet = false;
155 };
156
157} // namespace Model
158} // namespace SSM
159} // namespace Aws
void SetOwnerInformation(OwnerInformationT &&value)
MaintenanceWindowTarget & WithTargets(TargetsT &&value)
MaintenanceWindowTarget & WithWindowId(WindowIdT &&value)
void SetWindowTargetId(WindowTargetIdT &&value)
const Aws::Vector< Target > & GetTargets() const
AWS_SSM_API MaintenanceWindowTarget(Aws::Utils::Json::JsonView jsonValue)
AWS_SSM_API MaintenanceWindowTarget()=default
AWS_SSM_API MaintenanceWindowTarget & operator=(Aws::Utils::Json::JsonView jsonValue)
MaintenanceWindowTarget & AddTargets(TargetsT &&value)
MaintenanceWindowResourceType GetResourceType() const
MaintenanceWindowTarget & WithWindowTargetId(WindowTargetIdT &&value)
MaintenanceWindowTarget & WithOwnerInformation(OwnerInformationT &&value)
MaintenanceWindowTarget & WithResourceType(MaintenanceWindowResourceType value)
MaintenanceWindowTarget & WithDescription(DescriptionT &&value)
MaintenanceWindowTarget & WithName(NameT &&value)
void SetResourceType(MaintenanceWindowResourceType 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