AWS SDK for C++

AWS SDK for C++ Version 1.11.605

Loading...
Searching...
No Matches
AssociationExecutionTarget.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/DateTime.h>
10#include <aws/ssm/model/OutputSource.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 SSM
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_SSM_API AssociationExecutionTarget() = default;
41
42
44
47 inline const Aws::String& GetAssociationId() const { return m_associationId; }
48 inline bool AssociationIdHasBeenSet() const { return m_associationIdHasBeenSet; }
49 template<typename AssociationIdT = Aws::String>
50 void SetAssociationId(AssociationIdT&& value) { m_associationIdHasBeenSet = true; m_associationId = std::forward<AssociationIdT>(value); }
51 template<typename AssociationIdT = Aws::String>
52 AssociationExecutionTarget& WithAssociationId(AssociationIdT&& value) { SetAssociationId(std::forward<AssociationIdT>(value)); return *this;}
54
56
59 inline const Aws::String& GetAssociationVersion() const { return m_associationVersion; }
60 inline bool AssociationVersionHasBeenSet() const { return m_associationVersionHasBeenSet; }
61 template<typename AssociationVersionT = Aws::String>
62 void SetAssociationVersion(AssociationVersionT&& value) { m_associationVersionHasBeenSet = true; m_associationVersion = std::forward<AssociationVersionT>(value); }
63 template<typename AssociationVersionT = Aws::String>
64 AssociationExecutionTarget& WithAssociationVersion(AssociationVersionT&& value) { SetAssociationVersion(std::forward<AssociationVersionT>(value)); return *this;}
66
68
71 inline const Aws::String& GetExecutionId() const { return m_executionId; }
72 inline bool ExecutionIdHasBeenSet() const { return m_executionIdHasBeenSet; }
73 template<typename ExecutionIdT = Aws::String>
74 void SetExecutionId(ExecutionIdT&& value) { m_executionIdHasBeenSet = true; m_executionId = std::forward<ExecutionIdT>(value); }
75 template<typename ExecutionIdT = Aws::String>
76 AssociationExecutionTarget& WithExecutionId(ExecutionIdT&& value) { SetExecutionId(std::forward<ExecutionIdT>(value)); return *this;}
78
80
84 inline const Aws::String& GetResourceId() const { return m_resourceId; }
85 inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
86 template<typename ResourceIdT = Aws::String>
87 void SetResourceId(ResourceIdT&& value) { m_resourceIdHasBeenSet = true; m_resourceId = std::forward<ResourceIdT>(value); }
88 template<typename ResourceIdT = Aws::String>
89 AssociationExecutionTarget& WithResourceId(ResourceIdT&& value) { SetResourceId(std::forward<ResourceIdT>(value)); return *this;}
91
93
96 inline const Aws::String& GetResourceType() const { return m_resourceType; }
97 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
98 template<typename ResourceTypeT = Aws::String>
99 void SetResourceType(ResourceTypeT&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::forward<ResourceTypeT>(value); }
100 template<typename ResourceTypeT = Aws::String>
101 AssociationExecutionTarget& WithResourceType(ResourceTypeT&& value) { SetResourceType(std::forward<ResourceTypeT>(value)); return *this;}
103
105
108 inline const Aws::String& GetStatus() const { return m_status; }
109 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
110 template<typename StatusT = Aws::String>
111 void SetStatus(StatusT&& value) { m_statusHasBeenSet = true; m_status = std::forward<StatusT>(value); }
112 template<typename StatusT = Aws::String>
113 AssociationExecutionTarget& WithStatus(StatusT&& value) { SetStatus(std::forward<StatusT>(value)); return *this;}
115
117
120 inline const Aws::String& GetDetailedStatus() const { return m_detailedStatus; }
121 inline bool DetailedStatusHasBeenSet() const { return m_detailedStatusHasBeenSet; }
122 template<typename DetailedStatusT = Aws::String>
123 void SetDetailedStatus(DetailedStatusT&& value) { m_detailedStatusHasBeenSet = true; m_detailedStatus = std::forward<DetailedStatusT>(value); }
124 template<typename DetailedStatusT = Aws::String>
125 AssociationExecutionTarget& WithDetailedStatus(DetailedStatusT&& value) { SetDetailedStatus(std::forward<DetailedStatusT>(value)); return *this;}
127
129
132 inline const Aws::Utils::DateTime& GetLastExecutionDate() const { return m_lastExecutionDate; }
133 inline bool LastExecutionDateHasBeenSet() const { return m_lastExecutionDateHasBeenSet; }
134 template<typename LastExecutionDateT = Aws::Utils::DateTime>
135 void SetLastExecutionDate(LastExecutionDateT&& value) { m_lastExecutionDateHasBeenSet = true; m_lastExecutionDate = std::forward<LastExecutionDateT>(value); }
136 template<typename LastExecutionDateT = Aws::Utils::DateTime>
137 AssociationExecutionTarget& WithLastExecutionDate(LastExecutionDateT&& value) { SetLastExecutionDate(std::forward<LastExecutionDateT>(value)); return *this;}
139
141
144 inline const OutputSource& GetOutputSource() const { return m_outputSource; }
145 inline bool OutputSourceHasBeenSet() const { return m_outputSourceHasBeenSet; }
146 template<typename OutputSourceT = OutputSource>
147 void SetOutputSource(OutputSourceT&& value) { m_outputSourceHasBeenSet = true; m_outputSource = std::forward<OutputSourceT>(value); }
148 template<typename OutputSourceT = OutputSource>
149 AssociationExecutionTarget& WithOutputSource(OutputSourceT&& value) { SetOutputSource(std::forward<OutputSourceT>(value)); return *this;}
151 private:
152
153 Aws::String m_associationId;
154 bool m_associationIdHasBeenSet = false;
155
156 Aws::String m_associationVersion;
157 bool m_associationVersionHasBeenSet = false;
158
159 Aws::String m_executionId;
160 bool m_executionIdHasBeenSet = false;
161
162 Aws::String m_resourceId;
163 bool m_resourceIdHasBeenSet = false;
164
165 Aws::String m_resourceType;
166 bool m_resourceTypeHasBeenSet = false;
167
168 Aws::String m_status;
169 bool m_statusHasBeenSet = false;
170
171 Aws::String m_detailedStatus;
172 bool m_detailedStatusHasBeenSet = false;
173
174 Aws::Utils::DateTime m_lastExecutionDate{};
175 bool m_lastExecutionDateHasBeenSet = false;
176
177 OutputSource m_outputSource;
178 bool m_outputSourceHasBeenSet = false;
179 };
180
181} // namespace Model
182} // namespace SSM
183} // namespace Aws
AssociationExecutionTarget & WithDetailedStatus(DetailedStatusT &&value)
AWS_SSM_API Aws::Utils::Json::JsonValue Jsonize() const
AssociationExecutionTarget & WithStatus(StatusT &&value)
AssociationExecutionTarget & WithAssociationId(AssociationIdT &&value)
AWS_SSM_API AssociationExecutionTarget(Aws::Utils::Json::JsonView jsonValue)
const Aws::Utils::DateTime & GetLastExecutionDate() const
AssociationExecutionTarget & WithAssociationVersion(AssociationVersionT &&value)
AssociationExecutionTarget & WithOutputSource(OutputSourceT &&value)
AssociationExecutionTarget & WithLastExecutionDate(LastExecutionDateT &&value)
void SetAssociationVersion(AssociationVersionT &&value)
AssociationExecutionTarget & WithResourceId(ResourceIdT &&value)
AssociationExecutionTarget & WithResourceType(ResourceTypeT &&value)
AssociationExecutionTarget & WithExecutionId(ExecutionIdT &&value)
AWS_SSM_API AssociationExecutionTarget & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_SSM_API AssociationExecutionTarget()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue