AWS SDK for C++

AWS SDK for C++ Version 1.11.747

Loading...
Searching...
No Matches
CanaryCodeOutput.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/synthetics/Synthetics_EXPORTS.h>
10#include <aws/synthetics/model/Dependency.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Synthetics {
22namespace Model {
23
31 public:
32 AWS_SYNTHETICS_API CanaryCodeOutput() = default;
33 AWS_SYNTHETICS_API CanaryCodeOutput(Aws::Utils::Json::JsonView jsonValue);
35 AWS_SYNTHETICS_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
42 inline const Aws::String& GetSourceLocationArn() const { return m_sourceLocationArn; }
43 inline bool SourceLocationArnHasBeenSet() const { return m_sourceLocationArnHasBeenSet; }
44 template <typename SourceLocationArnT = Aws::String>
45 void SetSourceLocationArn(SourceLocationArnT&& value) {
46 m_sourceLocationArnHasBeenSet = true;
47 m_sourceLocationArn = std::forward<SourceLocationArnT>(value);
48 }
49 template <typename SourceLocationArnT = Aws::String>
50 CanaryCodeOutput& WithSourceLocationArn(SourceLocationArnT&& value) {
51 SetSourceLocationArn(std::forward<SourceLocationArnT>(value));
52 return *this;
53 }
55
57
62 inline const Aws::String& GetHandler() const { return m_handler; }
63 inline bool HandlerHasBeenSet() const { return m_handlerHasBeenSet; }
64 template <typename HandlerT = Aws::String>
65 void SetHandler(HandlerT&& value) {
66 m_handlerHasBeenSet = true;
67 m_handler = std::forward<HandlerT>(value);
68 }
69 template <typename HandlerT = Aws::String>
70 CanaryCodeOutput& WithHandler(HandlerT&& value) {
71 SetHandler(std::forward<HandlerT>(value));
72 return *this;
73 }
75
77
89 inline const Aws::Vector<Aws::String>& GetBlueprintTypes() const { return m_blueprintTypes; }
90 inline bool BlueprintTypesHasBeenSet() const { return m_blueprintTypesHasBeenSet; }
91 template <typename BlueprintTypesT = Aws::Vector<Aws::String>>
92 void SetBlueprintTypes(BlueprintTypesT&& value) {
93 m_blueprintTypesHasBeenSet = true;
94 m_blueprintTypes = std::forward<BlueprintTypesT>(value);
95 }
96 template <typename BlueprintTypesT = Aws::Vector<Aws::String>>
97 CanaryCodeOutput& WithBlueprintTypes(BlueprintTypesT&& value) {
98 SetBlueprintTypes(std::forward<BlueprintTypesT>(value));
99 return *this;
100 }
101 template <typename BlueprintTypesT = Aws::String>
102 CanaryCodeOutput& AddBlueprintTypes(BlueprintTypesT&& value) {
103 m_blueprintTypesHasBeenSet = true;
104 m_blueprintTypes.emplace_back(std::forward<BlueprintTypesT>(value));
105 return *this;
106 }
108
110
115 inline const Aws::Vector<Dependency>& GetDependencies() const { return m_dependencies; }
116 inline bool DependenciesHasBeenSet() const { return m_dependenciesHasBeenSet; }
117 template <typename DependenciesT = Aws::Vector<Dependency>>
118 void SetDependencies(DependenciesT&& value) {
119 m_dependenciesHasBeenSet = true;
120 m_dependencies = std::forward<DependenciesT>(value);
121 }
122 template <typename DependenciesT = Aws::Vector<Dependency>>
123 CanaryCodeOutput& WithDependencies(DependenciesT&& value) {
124 SetDependencies(std::forward<DependenciesT>(value));
125 return *this;
126 }
127 template <typename DependenciesT = Dependency>
128 CanaryCodeOutput& AddDependencies(DependenciesT&& value) {
129 m_dependenciesHasBeenSet = true;
130 m_dependencies.emplace_back(std::forward<DependenciesT>(value));
131 return *this;
132 }
134 private:
135 Aws::String m_sourceLocationArn;
136
137 Aws::String m_handler;
138
139 Aws::Vector<Aws::String> m_blueprintTypes;
140
141 Aws::Vector<Dependency> m_dependencies;
142 bool m_sourceLocationArnHasBeenSet = false;
143 bool m_handlerHasBeenSet = false;
144 bool m_blueprintTypesHasBeenSet = false;
145 bool m_dependenciesHasBeenSet = false;
146};
147
148} // namespace Model
149} // namespace Synthetics
150} // namespace Aws
void SetDependencies(DependenciesT &&value)
void SetBlueprintTypes(BlueprintTypesT &&value)
void SetSourceLocationArn(SourceLocationArnT &&value)
CanaryCodeOutput & WithBlueprintTypes(BlueprintTypesT &&value)
CanaryCodeOutput & AddBlueprintTypes(BlueprintTypesT &&value)
AWS_SYNTHETICS_API Aws::Utils::Json::JsonValue Jsonize() const
CanaryCodeOutput & WithDependencies(DependenciesT &&value)
AWS_SYNTHETICS_API CanaryCodeOutput()=default
CanaryCodeOutput & WithHandler(HandlerT &&value)
const Aws::String & GetSourceLocationArn() const
AWS_SYNTHETICS_API CanaryCodeOutput(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< Aws::String > & GetBlueprintTypes() const
const Aws::Vector< Dependency > & GetDependencies() const
const Aws::String & GetHandler() const
CanaryCodeOutput & WithSourceLocationArn(SourceLocationArnT &&value)
CanaryCodeOutput & AddDependencies(DependenciesT &&value)
AWS_SYNTHETICS_API CanaryCodeOutput & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue