AWS SDK for C++

AWS SDK for C++ Version 1.11.555

All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Pages
Loading...
Searching...
No Matches
UpdateMaintenanceWindowTargetRequest.h
1
6#pragma once
7#include <aws/ssm/SSM_EXPORTS.h>
8#include <aws/ssm/SSMRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.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 SSM
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_SSM_API UpdateMaintenanceWindowTargetRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "UpdateMaintenanceWindowTarget"; }
33
34 AWS_SSM_API Aws::String SerializePayload() const override;
35
37
38
40
43 inline const Aws::String& GetWindowId() const { return m_windowId; }
44 inline bool WindowIdHasBeenSet() const { return m_windowIdHasBeenSet; }
45 template<typename WindowIdT = Aws::String>
46 void SetWindowId(WindowIdT&& value) { m_windowIdHasBeenSet = true; m_windowId = std::forward<WindowIdT>(value); }
47 template<typename WindowIdT = Aws::String>
48 UpdateMaintenanceWindowTargetRequest& WithWindowId(WindowIdT&& value) { SetWindowId(std::forward<WindowIdT>(value)); return *this;}
50
52
55 inline const Aws::String& GetWindowTargetId() const { return m_windowTargetId; }
56 inline bool WindowTargetIdHasBeenSet() const { return m_windowTargetIdHasBeenSet; }
57 template<typename WindowTargetIdT = Aws::String>
58 void SetWindowTargetId(WindowTargetIdT&& value) { m_windowTargetIdHasBeenSet = true; m_windowTargetId = std::forward<WindowTargetIdT>(value); }
59 template<typename WindowTargetIdT = Aws::String>
60 UpdateMaintenanceWindowTargetRequest& WithWindowTargetId(WindowTargetIdT&& value) { SetWindowTargetId(std::forward<WindowTargetIdT>(value)); return *this;}
62
64
67 inline const Aws::Vector<Target>& GetTargets() const { return m_targets; }
68 inline bool TargetsHasBeenSet() const { return m_targetsHasBeenSet; }
69 template<typename TargetsT = Aws::Vector<Target>>
70 void SetTargets(TargetsT&& value) { m_targetsHasBeenSet = true; m_targets = std::forward<TargetsT>(value); }
71 template<typename TargetsT = Aws::Vector<Target>>
72 UpdateMaintenanceWindowTargetRequest& WithTargets(TargetsT&& value) { SetTargets(std::forward<TargetsT>(value)); return *this;}
73 template<typename TargetsT = Target>
74 UpdateMaintenanceWindowTargetRequest& AddTargets(TargetsT&& value) { m_targetsHasBeenSet = true; m_targets.emplace_back(std::forward<TargetsT>(value)); return *this; }
76
78
83 inline const Aws::String& GetOwnerInformation() const { return m_ownerInformation; }
84 inline bool OwnerInformationHasBeenSet() const { return m_ownerInformationHasBeenSet; }
85 template<typename OwnerInformationT = Aws::String>
86 void SetOwnerInformation(OwnerInformationT&& value) { m_ownerInformationHasBeenSet = true; m_ownerInformation = std::forward<OwnerInformationT>(value); }
87 template<typename OwnerInformationT = Aws::String>
88 UpdateMaintenanceWindowTargetRequest& WithOwnerInformation(OwnerInformationT&& value) { SetOwnerInformation(std::forward<OwnerInformationT>(value)); return *this;}
90
92
95 inline const Aws::String& GetName() const { return m_name; }
96 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
97 template<typename NameT = Aws::String>
98 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
99 template<typename NameT = Aws::String>
100 UpdateMaintenanceWindowTargetRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
102
104
107 inline const Aws::String& GetDescription() const { return m_description; }
108 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
109 template<typename DescriptionT = Aws::String>
110 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
111 template<typename DescriptionT = Aws::String>
112 UpdateMaintenanceWindowTargetRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
114
116
121 inline bool GetReplace() const { return m_replace; }
122 inline bool ReplaceHasBeenSet() const { return m_replaceHasBeenSet; }
123 inline void SetReplace(bool value) { m_replaceHasBeenSet = true; m_replace = value; }
124 inline UpdateMaintenanceWindowTargetRequest& WithReplace(bool value) { SetReplace(value); return *this;}
126 private:
127
128 Aws::String m_windowId;
129 bool m_windowIdHasBeenSet = false;
130
131 Aws::String m_windowTargetId;
132 bool m_windowTargetIdHasBeenSet = false;
133
134 Aws::Vector<Target> m_targets;
135 bool m_targetsHasBeenSet = false;
136
137 Aws::String m_ownerInformation;
138 bool m_ownerInformationHasBeenSet = false;
139
140 Aws::String m_name;
141 bool m_nameHasBeenSet = false;
142
143 Aws::String m_description;
144 bool m_descriptionHasBeenSet = false;
145
146 bool m_replace{false};
147 bool m_replaceHasBeenSet = false;
148 };
149
150} // namespace Model
151} // namespace SSM
152} // namespace Aws
UpdateMaintenanceWindowTargetRequest & WithOwnerInformation(OwnerInformationT &&value)
UpdateMaintenanceWindowTargetRequest & WithReplace(bool value)
UpdateMaintenanceWindowTargetRequest & WithWindowTargetId(WindowTargetIdT &&value)
UpdateMaintenanceWindowTargetRequest & AddTargets(TargetsT &&value)
AWS_SSM_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
UpdateMaintenanceWindowTargetRequest & WithTargets(TargetsT &&value)
AWS_SSM_API Aws::String SerializePayload() const override
UpdateMaintenanceWindowTargetRequest & WithWindowId(WindowIdT &&value)
UpdateMaintenanceWindowTargetRequest & WithName(NameT &&value)
UpdateMaintenanceWindowTargetRequest & WithDescription(DescriptionT &&value)
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