AWS SDK for C++

AWS SDK for C++ Version 1.11.714

Loading...
Searching...
No Matches
ImageConfig.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/lambda/Lambda_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace Lambda {
21namespace Model {
22
32 public:
33 AWS_LAMBDA_API ImageConfig() = default;
34 AWS_LAMBDA_API ImageConfig(Aws::Utils::Json::JsonView jsonValue);
36 AWS_LAMBDA_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
43 inline const Aws::Vector<Aws::String>& GetEntryPoint() const { return m_entryPoint; }
44 inline bool EntryPointHasBeenSet() const { return m_entryPointHasBeenSet; }
45 template <typename EntryPointT = Aws::Vector<Aws::String>>
46 void SetEntryPoint(EntryPointT&& value) {
47 m_entryPointHasBeenSet = true;
48 m_entryPoint = std::forward<EntryPointT>(value);
49 }
50 template <typename EntryPointT = Aws::Vector<Aws::String>>
51 ImageConfig& WithEntryPoint(EntryPointT&& value) {
52 SetEntryPoint(std::forward<EntryPointT>(value));
53 return *this;
54 }
55 template <typename EntryPointT = Aws::String>
56 ImageConfig& AddEntryPoint(EntryPointT&& value) {
57 m_entryPointHasBeenSet = true;
58 m_entryPoint.emplace_back(std::forward<EntryPointT>(value));
59 return *this;
60 }
62
64
67 inline const Aws::Vector<Aws::String>& GetCommand() const { return m_command; }
68 inline bool CommandHasBeenSet() const { return m_commandHasBeenSet; }
69 template <typename CommandT = Aws::Vector<Aws::String>>
70 void SetCommand(CommandT&& value) {
71 m_commandHasBeenSet = true;
72 m_command = std::forward<CommandT>(value);
73 }
74 template <typename CommandT = Aws::Vector<Aws::String>>
75 ImageConfig& WithCommand(CommandT&& value) {
76 SetCommand(std::forward<CommandT>(value));
77 return *this;
78 }
79 template <typename CommandT = Aws::String>
80 ImageConfig& AddCommand(CommandT&& value) {
81 m_commandHasBeenSet = true;
82 m_command.emplace_back(std::forward<CommandT>(value));
83 return *this;
84 }
86
88
91 inline const Aws::String& GetWorkingDirectory() const { return m_workingDirectory; }
92 inline bool WorkingDirectoryHasBeenSet() const { return m_workingDirectoryHasBeenSet; }
93 template <typename WorkingDirectoryT = Aws::String>
94 void SetWorkingDirectory(WorkingDirectoryT&& value) {
95 m_workingDirectoryHasBeenSet = true;
96 m_workingDirectory = std::forward<WorkingDirectoryT>(value);
97 }
98 template <typename WorkingDirectoryT = Aws::String>
99 ImageConfig& WithWorkingDirectory(WorkingDirectoryT&& value) {
100 SetWorkingDirectory(std::forward<WorkingDirectoryT>(value));
101 return *this;
102 }
104 private:
105 Aws::Vector<Aws::String> m_entryPoint;
106
107 Aws::Vector<Aws::String> m_command;
108
109 Aws::String m_workingDirectory;
110 bool m_entryPointHasBeenSet = false;
111 bool m_commandHasBeenSet = false;
112 bool m_workingDirectoryHasBeenSet = false;
113};
114
115} // namespace Model
116} // namespace Lambda
117} // namespace Aws
ImageConfig & AddEntryPoint(EntryPointT &&value)
Definition ImageConfig.h:56
ImageConfig & AddCommand(CommandT &&value)
Definition ImageConfig.h:80
const Aws::String & GetWorkingDirectory() const
Definition ImageConfig.h:91
AWS_LAMBDA_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Vector< Aws::String > & GetEntryPoint() const
Definition ImageConfig.h:43
AWS_LAMBDA_API ImageConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_LAMBDA_API ImageConfig()=default
void SetWorkingDirectory(WorkingDirectoryT &&value)
Definition ImageConfig.h:94
ImageConfig & WithCommand(CommandT &&value)
Definition ImageConfig.h:75
void SetCommand(CommandT &&value)
Definition ImageConfig.h:70
AWS_LAMBDA_API ImageConfig(Aws::Utils::Json::JsonView jsonValue)
bool WorkingDirectoryHasBeenSet() const
Definition ImageConfig.h:92
ImageConfig & WithWorkingDirectory(WorkingDirectoryT &&value)
Definition ImageConfig.h:99
ImageConfig & WithEntryPoint(EntryPointT &&value)
Definition ImageConfig.h:51
void SetEntryPoint(EntryPointT &&value)
Definition ImageConfig.h:46
const Aws::Vector< Aws::String > & GetCommand() const
Definition ImageConfig.h:67
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue