AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
CanaryCodeOutput.h
1
6#pragma once
7#include <aws/synthetics/Synthetics_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/synthetics/model/Dependency.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 Synthetics
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_SYNTHETICS_API CanaryCodeOutput() = default;
38 AWS_SYNTHETICS_API CanaryCodeOutput(Aws::Utils::Json::JsonView jsonValue);
40 AWS_SYNTHETICS_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
48 inline const Aws::String& GetSourceLocationArn() const { return m_sourceLocationArn; }
49 inline bool SourceLocationArnHasBeenSet() const { return m_sourceLocationArnHasBeenSet; }
50 template<typename SourceLocationArnT = Aws::String>
51 void SetSourceLocationArn(SourceLocationArnT&& value) { m_sourceLocationArnHasBeenSet = true; m_sourceLocationArn = std::forward<SourceLocationArnT>(value); }
52 template<typename SourceLocationArnT = Aws::String>
53 CanaryCodeOutput& WithSourceLocationArn(SourceLocationArnT&& value) { SetSourceLocationArn(std::forward<SourceLocationArnT>(value)); return *this;}
55
57
60 inline const Aws::String& GetHandler() const { return m_handler; }
61 inline bool HandlerHasBeenSet() const { return m_handlerHasBeenSet; }
62 template<typename HandlerT = Aws::String>
63 void SetHandler(HandlerT&& value) { m_handlerHasBeenSet = true; m_handler = std::forward<HandlerT>(value); }
64 template<typename HandlerT = Aws::String>
65 CanaryCodeOutput& WithHandler(HandlerT&& value) { SetHandler(std::forward<HandlerT>(value)); return *this;}
67
69
74 inline const Aws::Vector<Dependency>& GetDependencies() const { return m_dependencies; }
75 inline bool DependenciesHasBeenSet() const { return m_dependenciesHasBeenSet; }
76 template<typename DependenciesT = Aws::Vector<Dependency>>
77 void SetDependencies(DependenciesT&& value) { m_dependenciesHasBeenSet = true; m_dependencies = std::forward<DependenciesT>(value); }
78 template<typename DependenciesT = Aws::Vector<Dependency>>
79 CanaryCodeOutput& WithDependencies(DependenciesT&& value) { SetDependencies(std::forward<DependenciesT>(value)); return *this;}
80 template<typename DependenciesT = Dependency>
81 CanaryCodeOutput& AddDependencies(DependenciesT&& value) { m_dependenciesHasBeenSet = true; m_dependencies.emplace_back(std::forward<DependenciesT>(value)); return *this; }
83 private:
84
85 Aws::String m_sourceLocationArn;
86 bool m_sourceLocationArnHasBeenSet = false;
87
88 Aws::String m_handler;
89 bool m_handlerHasBeenSet = false;
90
91 Aws::Vector<Dependency> m_dependencies;
92 bool m_dependenciesHasBeenSet = false;
93 };
94
95} // namespace Model
96} // namespace Synthetics
97} // namespace Aws
void SetDependencies(DependenciesT &&value)
void SetSourceLocationArn(SourceLocationArnT &&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< 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