AWS SDK for C++  1.9.20
AWS SDK for C++
ImageConfig.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Json
17 {
18  class JsonValue;
19  class JsonView;
20 } // namespace Json
21 } // namespace Utils
22 namespace Lambda
23 {
24 namespace Model
25 {
26 
36  {
37  public:
42 
43 
48  inline const Aws::Vector<Aws::String>& GetEntryPoint() const{ return m_entryPoint; }
49 
54  inline bool EntryPointHasBeenSet() const { return m_entryPointHasBeenSet; }
55 
60  inline void SetEntryPoint(const Aws::Vector<Aws::String>& value) { m_entryPointHasBeenSet = true; m_entryPoint = value; }
61 
66  inline void SetEntryPoint(Aws::Vector<Aws::String>&& value) { m_entryPointHasBeenSet = true; m_entryPoint = std::move(value); }
67 
72  inline ImageConfig& WithEntryPoint(const Aws::Vector<Aws::String>& value) { SetEntryPoint(value); return *this;}
73 
78  inline ImageConfig& WithEntryPoint(Aws::Vector<Aws::String>&& value) { SetEntryPoint(std::move(value)); return *this;}
79 
84  inline ImageConfig& AddEntryPoint(const Aws::String& value) { m_entryPointHasBeenSet = true; m_entryPoint.push_back(value); return *this; }
85 
90  inline ImageConfig& AddEntryPoint(Aws::String&& value) { m_entryPointHasBeenSet = true; m_entryPoint.push_back(std::move(value)); return *this; }
91 
96  inline ImageConfig& AddEntryPoint(const char* value) { m_entryPointHasBeenSet = true; m_entryPoint.push_back(value); return *this; }
97 
98 
102  inline const Aws::Vector<Aws::String>& GetCommand() const{ return m_command; }
103 
107  inline bool CommandHasBeenSet() const { return m_commandHasBeenSet; }
108 
112  inline void SetCommand(const Aws::Vector<Aws::String>& value) { m_commandHasBeenSet = true; m_command = value; }
113 
117  inline void SetCommand(Aws::Vector<Aws::String>&& value) { m_commandHasBeenSet = true; m_command = std::move(value); }
118 
122  inline ImageConfig& WithCommand(const Aws::Vector<Aws::String>& value) { SetCommand(value); return *this;}
123 
127  inline ImageConfig& WithCommand(Aws::Vector<Aws::String>&& value) { SetCommand(std::move(value)); return *this;}
128 
132  inline ImageConfig& AddCommand(const Aws::String& value) { m_commandHasBeenSet = true; m_command.push_back(value); return *this; }
133 
137  inline ImageConfig& AddCommand(Aws::String&& value) { m_commandHasBeenSet = true; m_command.push_back(std::move(value)); return *this; }
138 
142  inline ImageConfig& AddCommand(const char* value) { m_commandHasBeenSet = true; m_command.push_back(value); return *this; }
143 
144 
148  inline const Aws::String& GetWorkingDirectory() const{ return m_workingDirectory; }
149 
153  inline bool WorkingDirectoryHasBeenSet() const { return m_workingDirectoryHasBeenSet; }
154 
158  inline void SetWorkingDirectory(const Aws::String& value) { m_workingDirectoryHasBeenSet = true; m_workingDirectory = value; }
159 
163  inline void SetWorkingDirectory(Aws::String&& value) { m_workingDirectoryHasBeenSet = true; m_workingDirectory = std::move(value); }
164 
168  inline void SetWorkingDirectory(const char* value) { m_workingDirectoryHasBeenSet = true; m_workingDirectory.assign(value); }
169 
173  inline ImageConfig& WithWorkingDirectory(const Aws::String& value) { SetWorkingDirectory(value); return *this;}
174 
178  inline ImageConfig& WithWorkingDirectory(Aws::String&& value) { SetWorkingDirectory(std::move(value)); return *this;}
179 
183  inline ImageConfig& WithWorkingDirectory(const char* value) { SetWorkingDirectory(value); return *this;}
184 
185  private:
186 
187  Aws::Vector<Aws::String> m_entryPoint;
188  bool m_entryPointHasBeenSet;
189 
190  Aws::Vector<Aws::String> m_command;
191  bool m_commandHasBeenSet;
192 
193  Aws::String m_workingDirectory;
194  bool m_workingDirectoryHasBeenSet;
195  };
196 
197 } // namespace Model
198 } // namespace Lambda
199 } // namespace Aws
Aws::Lambda::Model::ImageConfig::SetEntryPoint
void SetEntryPoint(const Aws::Vector< Aws::String > &value)
Definition: ImageConfig.h:60
Aws::Lambda::Model::ImageConfig::GetCommand
const Aws::Vector< Aws::String > & GetCommand() const
Definition: ImageConfig.h:102
Aws::Lambda::Model::ImageConfig::ImageConfig
ImageConfig(Aws::Utils::Json::JsonView jsonValue)
Aws::Lambda::Model::ImageConfig::SetCommand
void SetCommand(const Aws::Vector< Aws::String > &value)
Definition: ImageConfig.h:112
Aws::Lambda::Model::ImageConfig::ImageConfig
ImageConfig()
Aws::Lambda::Model::ImageConfig::WithEntryPoint
ImageConfig & WithEntryPoint(Aws::Vector< Aws::String > &&value)
Definition: ImageConfig.h:78
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::Lambda::Model::ImageConfig::SetWorkingDirectory
void SetWorkingDirectory(Aws::String &&value)
Definition: ImageConfig.h:163
Aws::Lambda::Model::ImageConfig::AddEntryPoint
ImageConfig & AddEntryPoint(Aws::String &&value)
Definition: ImageConfig.h:90
Aws::Lambda::Model::ImageConfig::GetEntryPoint
const Aws::Vector< Aws::String > & GetEntryPoint() const
Definition: ImageConfig.h:48
AWSVector.h
Aws::Lambda::Model::ImageConfig::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::Lambda::Model::ImageConfig::AddCommand
ImageConfig & AddCommand(const Aws::String &value)
Definition: ImageConfig.h:132
Aws::Lambda::Model::ImageConfig::AddCommand
ImageConfig & AddCommand(const char *value)
Definition: ImageConfig.h:142
AWS_LAMBDA_API
#define AWS_LAMBDA_API
Definition: Lambda_EXPORTS.h:28
Aws::Lambda::Model::ImageConfig::SetWorkingDirectory
void SetWorkingDirectory(const Aws::String &value)
Definition: ImageConfig.h:158
Aws::Lambda::Model::ImageConfig::SetWorkingDirectory
void SetWorkingDirectory(const char *value)
Definition: ImageConfig.h:168
Aws::Lambda::Model::ImageConfig::GetWorkingDirectory
const Aws::String & GetWorkingDirectory() const
Definition: ImageConfig.h:148
Aws::Lambda::Model::ImageConfig::WithCommand
ImageConfig & WithCommand(const Aws::Vector< Aws::String > &value)
Definition: ImageConfig.h:122
Aws::Lambda::Model::ImageConfig::WorkingDirectoryHasBeenSet
bool WorkingDirectoryHasBeenSet() const
Definition: ImageConfig.h:153
Aws::Lambda::Model::ImageConfig::CommandHasBeenSet
bool CommandHasBeenSet() const
Definition: ImageConfig.h:107
Aws::Lambda::Model::ImageConfig::WithWorkingDirectory
ImageConfig & WithWorkingDirectory(Aws::String &&value)
Definition: ImageConfig.h:178
Aws::Lambda::Model::ImageConfig::AddEntryPoint
ImageConfig & AddEntryPoint(const Aws::String &value)
Definition: ImageConfig.h:84
Aws::Lambda::Model::ImageConfig::AddCommand
ImageConfig & AddCommand(Aws::String &&value)
Definition: ImageConfig.h:137
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:222
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:30
Aws::Lambda::Model::ImageConfig::WithWorkingDirectory
ImageConfig & WithWorkingDirectory(const char *value)
Definition: ImageConfig.h:183
Aws::Lambda::Model::ImageConfig::AddEntryPoint
ImageConfig & AddEntryPoint(const char *value)
Definition: ImageConfig.h:96
Aws::Lambda::Model::ImageConfig::EntryPointHasBeenSet
bool EntryPointHasBeenSet() const
Definition: ImageConfig.h:54
Aws::Lambda::Model::ImageConfig::SetEntryPoint
void SetEntryPoint(Aws::Vector< Aws::String > &&value)
Definition: ImageConfig.h:66
Aws::Lambda::Model::ImageConfig::WithCommand
ImageConfig & WithCommand(Aws::Vector< Aws::String > &&value)
Definition: ImageConfig.h:127
Aws::CodePipeline::Model::ExecutorType::NOT_SET
@ NOT_SET
Aws
Definition: AccessManagementClient.h:15
Aws::Lambda::Model::ImageConfig::SetCommand
void SetCommand(Aws::Vector< Aws::String > &&value)
Definition: ImageConfig.h:117
Aws::Lambda::Model::ImageConfig::WithEntryPoint
ImageConfig & WithEntryPoint(const Aws::Vector< Aws::String > &value)
Definition: ImageConfig.h:72
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Lambda::Model::ImageConfig
Definition: ImageConfig.h:36
Aws::Lambda::Model::ImageConfig::WithWorkingDirectory
ImageConfig & WithWorkingDirectory(const Aws::String &value)
Definition: ImageConfig.h:173
Lambda_EXPORTS.h
Aws::Lambda::Model::ImageConfig::operator=
ImageConfig & operator=(Aws::Utils::Json::JsonView jsonValue)