AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
PostLaunchActions.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/mgn/Mgn_EXPORTS.h>
10#include <aws/mgn/model/PostLaunchActionsDeploymentType.h>
11#include <aws/mgn/model/SsmDocument.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace mgn {
23namespace Model {
24
32 public:
33 AWS_MGN_API PostLaunchActions() = default;
37
39
42 inline PostLaunchActionsDeploymentType GetDeployment() const { return m_deployment; }
43 inline bool DeploymentHasBeenSet() const { return m_deploymentHasBeenSet; }
45 m_deploymentHasBeenSet = true;
46 m_deployment = value;
47 }
49 SetDeployment(value);
50 return *this;
51 }
53
55
58 inline const Aws::String& GetS3LogBucket() const { return m_s3LogBucket; }
59 inline bool S3LogBucketHasBeenSet() const { return m_s3LogBucketHasBeenSet; }
60 template <typename S3LogBucketT = Aws::String>
61 void SetS3LogBucket(S3LogBucketT&& value) {
62 m_s3LogBucketHasBeenSet = true;
63 m_s3LogBucket = std::forward<S3LogBucketT>(value);
64 }
65 template <typename S3LogBucketT = Aws::String>
66 PostLaunchActions& WithS3LogBucket(S3LogBucketT&& value) {
67 SetS3LogBucket(std::forward<S3LogBucketT>(value));
68 return *this;
69 }
71
73
76 inline const Aws::String& GetS3OutputKeyPrefix() const { return m_s3OutputKeyPrefix; }
77 inline bool S3OutputKeyPrefixHasBeenSet() const { return m_s3OutputKeyPrefixHasBeenSet; }
78 template <typename S3OutputKeyPrefixT = Aws::String>
79 void SetS3OutputKeyPrefix(S3OutputKeyPrefixT&& value) {
80 m_s3OutputKeyPrefixHasBeenSet = true;
81 m_s3OutputKeyPrefix = std::forward<S3OutputKeyPrefixT>(value);
82 }
83 template <typename S3OutputKeyPrefixT = Aws::String>
84 PostLaunchActions& WithS3OutputKeyPrefix(S3OutputKeyPrefixT&& value) {
85 SetS3OutputKeyPrefix(std::forward<S3OutputKeyPrefixT>(value));
86 return *this;
87 }
89
91
94 inline const Aws::String& GetCloudWatchLogGroupName() const { return m_cloudWatchLogGroupName; }
95 inline bool CloudWatchLogGroupNameHasBeenSet() const { return m_cloudWatchLogGroupNameHasBeenSet; }
96 template <typename CloudWatchLogGroupNameT = Aws::String>
97 void SetCloudWatchLogGroupName(CloudWatchLogGroupNameT&& value) {
98 m_cloudWatchLogGroupNameHasBeenSet = true;
99 m_cloudWatchLogGroupName = std::forward<CloudWatchLogGroupNameT>(value);
100 }
101 template <typename CloudWatchLogGroupNameT = Aws::String>
102 PostLaunchActions& WithCloudWatchLogGroupName(CloudWatchLogGroupNameT&& value) {
103 SetCloudWatchLogGroupName(std::forward<CloudWatchLogGroupNameT>(value));
104 return *this;
105 }
107
109
112 inline const Aws::Vector<SsmDocument>& GetSsmDocuments() const { return m_ssmDocuments; }
113 inline bool SsmDocumentsHasBeenSet() const { return m_ssmDocumentsHasBeenSet; }
114 template <typename SsmDocumentsT = Aws::Vector<SsmDocument>>
115 void SetSsmDocuments(SsmDocumentsT&& value) {
116 m_ssmDocumentsHasBeenSet = true;
117 m_ssmDocuments = std::forward<SsmDocumentsT>(value);
118 }
119 template <typename SsmDocumentsT = Aws::Vector<SsmDocument>>
120 PostLaunchActions& WithSsmDocuments(SsmDocumentsT&& value) {
121 SetSsmDocuments(std::forward<SsmDocumentsT>(value));
122 return *this;
123 }
124 template <typename SsmDocumentsT = SsmDocument>
125 PostLaunchActions& AddSsmDocuments(SsmDocumentsT&& value) {
126 m_ssmDocumentsHasBeenSet = true;
127 m_ssmDocuments.emplace_back(std::forward<SsmDocumentsT>(value));
128 return *this;
129 }
131 private:
133
134 Aws::String m_s3LogBucket;
135
136 Aws::String m_s3OutputKeyPrefix;
137
138 Aws::String m_cloudWatchLogGroupName;
139
140 Aws::Vector<SsmDocument> m_ssmDocuments;
141 bool m_deploymentHasBeenSet = false;
142 bool m_s3LogBucketHasBeenSet = false;
143 bool m_s3OutputKeyPrefixHasBeenSet = false;
144 bool m_cloudWatchLogGroupNameHasBeenSet = false;
145 bool m_ssmDocumentsHasBeenSet = false;
146};
147
148} // namespace Model
149} // namespace mgn
150} // namespace Aws
bool S3LogBucketHasBeenSet() const
PostLaunchActions & WithDeployment(PostLaunchActionsDeploymentType value)
AWS_MGN_API PostLaunchActions(Aws::Utils::Json::JsonView jsonValue)
bool DeploymentHasBeenSet() const
bool SsmDocumentsHasBeenSet() const
PostLaunchActions & WithS3OutputKeyPrefix(S3OutputKeyPrefixT &&value)
AWS_MGN_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_MGN_API PostLaunchActions()=default
PostLaunchActions & WithCloudWatchLogGroupName(CloudWatchLogGroupNameT &&value)
const Aws::String & GetS3OutputKeyPrefix() const
bool S3OutputKeyPrefixHasBeenSet() const
void SetDeployment(PostLaunchActionsDeploymentType value)
void SetSsmDocuments(SsmDocumentsT &&value)
void SetS3OutputKeyPrefix(S3OutputKeyPrefixT &&value)
const Aws::Vector< SsmDocument > & GetSsmDocuments() const
PostLaunchActions & WithSsmDocuments(SsmDocumentsT &&value)
void SetCloudWatchLogGroupName(CloudWatchLogGroupNameT &&value)
PostLaunchActions & WithS3LogBucket(S3LogBucketT &&value)
bool CloudWatchLogGroupNameHasBeenSet() const
PostLaunchActionsDeploymentType GetDeployment() const
const Aws::String & GetS3LogBucket() const
const Aws::String & GetCloudWatchLogGroupName() const
AWS_MGN_API PostLaunchActions & operator=(Aws::Utils::Json::JsonView jsonValue)
PostLaunchActions & AddSsmDocuments(SsmDocumentsT &&value)
void SetS3LogBucket(S3LogBucketT &&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