AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
UpdateMaintenanceWindowTargetResult.h
1
6#pragma once
7#include <aws/ssm/SSM_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/ssm/model/Target.h>
11#include <utility>
12
13namespace Aws
14{
15template<typename RESULT_TYPE>
16class AmazonWebServiceResult;
17
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23} // namespace Json
24} // namespace Utils
25namespace SSM
26{
27namespace Model
28{
30 {
31 public:
32 AWS_SSM_API UpdateMaintenanceWindowTargetResult() = default;
35
36
38
41 inline const Aws::String& GetWindowId() const { return m_windowId; }
42 template<typename WindowIdT = Aws::String>
43 void SetWindowId(WindowIdT&& value) { m_windowIdHasBeenSet = true; m_windowId = std::forward<WindowIdT>(value); }
44 template<typename WindowIdT = Aws::String>
45 UpdateMaintenanceWindowTargetResult& WithWindowId(WindowIdT&& value) { SetWindowId(std::forward<WindowIdT>(value)); return *this;}
47
49
52 inline const Aws::String& GetWindowTargetId() const { return m_windowTargetId; }
53 template<typename WindowTargetIdT = Aws::String>
54 void SetWindowTargetId(WindowTargetIdT&& value) { m_windowTargetIdHasBeenSet = true; m_windowTargetId = std::forward<WindowTargetIdT>(value); }
55 template<typename WindowTargetIdT = Aws::String>
56 UpdateMaintenanceWindowTargetResult& WithWindowTargetId(WindowTargetIdT&& value) { SetWindowTargetId(std::forward<WindowTargetIdT>(value)); return *this;}
58
60
63 inline const Aws::Vector<Target>& GetTargets() const { return m_targets; }
64 template<typename TargetsT = Aws::Vector<Target>>
65 void SetTargets(TargetsT&& value) { m_targetsHasBeenSet = true; m_targets = std::forward<TargetsT>(value); }
66 template<typename TargetsT = Aws::Vector<Target>>
67 UpdateMaintenanceWindowTargetResult& WithTargets(TargetsT&& value) { SetTargets(std::forward<TargetsT>(value)); return *this;}
68 template<typename TargetsT = Target>
69 UpdateMaintenanceWindowTargetResult& AddTargets(TargetsT&& value) { m_targetsHasBeenSet = true; m_targets.emplace_back(std::forward<TargetsT>(value)); return *this; }
71
73
76 inline const Aws::String& GetOwnerInformation() const { return m_ownerInformation; }
77 template<typename OwnerInformationT = Aws::String>
78 void SetOwnerInformation(OwnerInformationT&& value) { m_ownerInformationHasBeenSet = true; m_ownerInformation = std::forward<OwnerInformationT>(value); }
79 template<typename OwnerInformationT = Aws::String>
80 UpdateMaintenanceWindowTargetResult& WithOwnerInformation(OwnerInformationT&& value) { SetOwnerInformation(std::forward<OwnerInformationT>(value)); return *this;}
82
84
87 inline const Aws::String& GetName() const { return m_name; }
88 template<typename NameT = Aws::String>
89 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
90 template<typename NameT = Aws::String>
91 UpdateMaintenanceWindowTargetResult& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
93
95
98 inline const Aws::String& GetDescription() const { return m_description; }
99 template<typename DescriptionT = Aws::String>
100 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
101 template<typename DescriptionT = Aws::String>
102 UpdateMaintenanceWindowTargetResult& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
104
106
107 inline const Aws::String& GetRequestId() const { return m_requestId; }
108 template<typename RequestIdT = Aws::String>
109 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
110 template<typename RequestIdT = Aws::String>
111 UpdateMaintenanceWindowTargetResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
113 private:
114
115 Aws::String m_windowId;
116 bool m_windowIdHasBeenSet = false;
117
118 Aws::String m_windowTargetId;
119 bool m_windowTargetIdHasBeenSet = false;
120
121 Aws::Vector<Target> m_targets;
122 bool m_targetsHasBeenSet = false;
123
124 Aws::String m_ownerInformation;
125 bool m_ownerInformationHasBeenSet = false;
126
127 Aws::String m_name;
128 bool m_nameHasBeenSet = false;
129
130 Aws::String m_description;
131 bool m_descriptionHasBeenSet = false;
132
133 Aws::String m_requestId;
134 bool m_requestIdHasBeenSet = false;
135 };
136
137} // namespace Model
138} // namespace SSM
139} // namespace Aws
UpdateMaintenanceWindowTargetResult & WithWindowId(WindowIdT &&value)
UpdateMaintenanceWindowTargetResult & WithWindowTargetId(WindowTargetIdT &&value)
UpdateMaintenanceWindowTargetResult & WithName(NameT &&value)
UpdateMaintenanceWindowTargetResult & WithTargets(TargetsT &&value)
UpdateMaintenanceWindowTargetResult & AddTargets(TargetsT &&value)
UpdateMaintenanceWindowTargetResult & WithOwnerInformation(OwnerInformationT &&value)
AWS_SSM_API UpdateMaintenanceWindowTargetResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
UpdateMaintenanceWindowTargetResult & WithRequestId(RequestIdT &&value)
AWS_SSM_API UpdateMaintenanceWindowTargetResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
UpdateMaintenanceWindowTargetResult & WithDescription(DescriptionT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue