AWS SDK for C++

AWS SDK for C++ Version 1.11.744

Loading...
Searching...
No Matches
Dependency.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/synthetics/Synthetics_EXPORTS.h>
9#include <aws/synthetics/model/DependencyType.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace Synthetics {
21namespace Model {
22
30 public:
31 AWS_SYNTHETICS_API Dependency() = default;
32 AWS_SYNTHETICS_API Dependency(Aws::Utils::Json::JsonView jsonValue);
33 AWS_SYNTHETICS_API Dependency& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_SYNTHETICS_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline DependencyType GetType() const { return m_type; }
41 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
42 inline void SetType(DependencyType value) {
43 m_typeHasBeenSet = true;
44 m_type = value;
45 }
47 SetType(value);
48 return *this;
49 }
51
53
58 inline const Aws::String& GetReference() const { return m_reference; }
59 inline bool ReferenceHasBeenSet() const { return m_referenceHasBeenSet; }
60 template <typename ReferenceT = Aws::String>
61 void SetReference(ReferenceT&& value) {
62 m_referenceHasBeenSet = true;
63 m_reference = std::forward<ReferenceT>(value);
64 }
65 template <typename ReferenceT = Aws::String>
66 Dependency& WithReference(ReferenceT&& value) {
67 SetReference(std::forward<ReferenceT>(value));
68 return *this;
69 }
71 private:
73
74 Aws::String m_reference;
75 bool m_typeHasBeenSet = false;
76 bool m_referenceHasBeenSet = false;
77};
78
79} // namespace Model
80} // namespace Synthetics
81} // namespace Aws
DependencyType GetType() const
Definition Dependency.h:40
AWS_SYNTHETICS_API Dependency & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetReference(ReferenceT &&value)
Definition Dependency.h:61
AWS_SYNTHETICS_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetReference() const
Definition Dependency.h:58
Dependency & WithReference(ReferenceT &&value)
Definition Dependency.h:66
Dependency & WithType(DependencyType value)
Definition Dependency.h:46
void SetType(DependencyType value)
Definition Dependency.h:42
AWS_SYNTHETICS_API Dependency()=default
AWS_SYNTHETICS_API Dependency(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue