AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
SSMValidationParameters.h
1
6#pragma once
7#include <aws/sms/SMS_EXPORTS.h>
8#include <aws/sms/model/Source.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/sms/model/ScriptType.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 SMS
24{
25namespace Model
26{
27
34 {
35 public:
40
41
43
46 inline const Source& GetSource() const{ return m_source; }
47 inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; }
48 inline void SetSource(const Source& value) { m_sourceHasBeenSet = true; m_source = value; }
49 inline void SetSource(Source&& value) { m_sourceHasBeenSet = true; m_source = std::move(value); }
50 inline SSMValidationParameters& WithSource(const Source& value) { SetSource(value); return *this;}
51 inline SSMValidationParameters& WithSource(Source&& value) { SetSource(std::move(value)); return *this;}
53
55
59 inline const Aws::String& GetInstanceId() const{ return m_instanceId; }
60 inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
61 inline void SetInstanceId(const Aws::String& value) { m_instanceIdHasBeenSet = true; m_instanceId = value; }
62 inline void SetInstanceId(Aws::String&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::move(value); }
63 inline void SetInstanceId(const char* value) { m_instanceIdHasBeenSet = true; m_instanceId.assign(value); }
64 inline SSMValidationParameters& WithInstanceId(const Aws::String& value) { SetInstanceId(value); return *this;}
65 inline SSMValidationParameters& WithInstanceId(Aws::String&& value) { SetInstanceId(std::move(value)); return *this;}
66 inline SSMValidationParameters& WithInstanceId(const char* value) { SetInstanceId(value); return *this;}
68
70
73 inline const ScriptType& GetScriptType() const{ return m_scriptType; }
74 inline bool ScriptTypeHasBeenSet() const { return m_scriptTypeHasBeenSet; }
75 inline void SetScriptType(const ScriptType& value) { m_scriptTypeHasBeenSet = true; m_scriptType = value; }
76 inline void SetScriptType(ScriptType&& value) { m_scriptTypeHasBeenSet = true; m_scriptType = std::move(value); }
77 inline SSMValidationParameters& WithScriptType(const ScriptType& value) { SetScriptType(value); return *this;}
78 inline SSMValidationParameters& WithScriptType(ScriptType&& value) { SetScriptType(std::move(value)); return *this;}
80
82
85 inline const Aws::String& GetCommand() const{ return m_command; }
86 inline bool CommandHasBeenSet() const { return m_commandHasBeenSet; }
87 inline void SetCommand(const Aws::String& value) { m_commandHasBeenSet = true; m_command = value; }
88 inline void SetCommand(Aws::String&& value) { m_commandHasBeenSet = true; m_command = std::move(value); }
89 inline void SetCommand(const char* value) { m_commandHasBeenSet = true; m_command.assign(value); }
90 inline SSMValidationParameters& WithCommand(const Aws::String& value) { SetCommand(value); return *this;}
91 inline SSMValidationParameters& WithCommand(Aws::String&& value) { SetCommand(std::move(value)); return *this;}
92 inline SSMValidationParameters& WithCommand(const char* value) { SetCommand(value); return *this;}
94
96
99 inline int GetExecutionTimeoutSeconds() const{ return m_executionTimeoutSeconds; }
100 inline bool ExecutionTimeoutSecondsHasBeenSet() const { return m_executionTimeoutSecondsHasBeenSet; }
101 inline void SetExecutionTimeoutSeconds(int value) { m_executionTimeoutSecondsHasBeenSet = true; m_executionTimeoutSeconds = value; }
104
106
109 inline const Aws::String& GetOutputS3BucketName() const{ return m_outputS3BucketName; }
110 inline bool OutputS3BucketNameHasBeenSet() const { return m_outputS3BucketNameHasBeenSet; }
111 inline void SetOutputS3BucketName(const Aws::String& value) { m_outputS3BucketNameHasBeenSet = true; m_outputS3BucketName = value; }
112 inline void SetOutputS3BucketName(Aws::String&& value) { m_outputS3BucketNameHasBeenSet = true; m_outputS3BucketName = std::move(value); }
113 inline void SetOutputS3BucketName(const char* value) { m_outputS3BucketNameHasBeenSet = true; m_outputS3BucketName.assign(value); }
115 inline SSMValidationParameters& WithOutputS3BucketName(Aws::String&& value) { SetOutputS3BucketName(std::move(value)); return *this;}
116 inline SSMValidationParameters& WithOutputS3BucketName(const char* value) { SetOutputS3BucketName(value); return *this;}
118 private:
119
120 Source m_source;
121 bool m_sourceHasBeenSet = false;
122
123 Aws::String m_instanceId;
124 bool m_instanceIdHasBeenSet = false;
125
126 ScriptType m_scriptType;
127 bool m_scriptTypeHasBeenSet = false;
128
129 Aws::String m_command;
130 bool m_commandHasBeenSet = false;
131
132 int m_executionTimeoutSeconds;
133 bool m_executionTimeoutSecondsHasBeenSet = false;
134
135 Aws::String m_outputS3BucketName;
136 bool m_outputS3BucketNameHasBeenSet = false;
137 };
138
139} // namespace Model
140} // namespace SMS
141} // namespace Aws
AWS_SMS_API Aws::Utils::Json::JsonValue Jsonize() const
SSMValidationParameters & WithInstanceId(Aws::String &&value)
SSMValidationParameters & WithSource(const Source &value)
SSMValidationParameters & WithCommand(const char *value)
SSMValidationParameters & WithInstanceId(const char *value)
SSMValidationParameters & WithScriptType(const ScriptType &value)
SSMValidationParameters & WithInstanceId(const Aws::String &value)
SSMValidationParameters & WithScriptType(ScriptType &&value)
AWS_SMS_API SSMValidationParameters & operator=(Aws::Utils::Json::JsonView jsonValue)
SSMValidationParameters & WithSource(Source &&value)
void SetOutputS3BucketName(const Aws::String &value)
AWS_SMS_API SSMValidationParameters(Aws::Utils::Json::JsonView jsonValue)
SSMValidationParameters & WithCommand(const Aws::String &value)
SSMValidationParameters & WithCommand(Aws::String &&value)
SSMValidationParameters & WithOutputS3BucketName(const char *value)
SSMValidationParameters & WithExecutionTimeoutSeconds(int value)
SSMValidationParameters & WithOutputS3BucketName(const Aws::String &value)
SSMValidationParameters & WithOutputS3BucketName(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue