AWS SDK for C++

AWS SDK for C++ Version 1.11.929

Loading...
Searching...
No Matches
CodegenDependency.h
1
6#pragma once
7#include <aws/amplifyuibuilder/AmplifyUIBuilder_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace AmplifyUIBuilder {
20namespace Model {
21
29 public:
30 AWS_AMPLIFYUIBUILDER_API CodegenDependency() = default;
31 AWS_AMPLIFYUIBUILDER_API CodegenDependency(Aws::Utils::Json::JsonView jsonValue);
32 AWS_AMPLIFYUIBUILDER_API CodegenDependency& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_AMPLIFYUIBUILDER_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const Aws::String& GetName() const { return m_name; }
40 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
41 template <typename NameT = Aws::String>
42 void SetName(NameT&& value) {
43 m_nameHasBeenSet = true;
44 m_name = std::forward<NameT>(value);
45 }
46 template <typename NameT = Aws::String>
47 CodegenDependency& WithName(NameT&& value) {
48 SetName(std::forward<NameT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetSupportedVersion() const { return m_supportedVersion; }
58 inline bool SupportedVersionHasBeenSet() const { return m_supportedVersionHasBeenSet; }
59 template <typename SupportedVersionT = Aws::String>
60 void SetSupportedVersion(SupportedVersionT&& value) {
61 m_supportedVersionHasBeenSet = true;
62 m_supportedVersion = std::forward<SupportedVersionT>(value);
63 }
64 template <typename SupportedVersionT = Aws::String>
65 CodegenDependency& WithSupportedVersion(SupportedVersionT&& value) {
66 SetSupportedVersion(std::forward<SupportedVersionT>(value));
67 return *this;
68 }
70
72
76 inline bool GetIsSemVer() const { return m_isSemVer; }
77 inline bool IsSemVerHasBeenSet() const { return m_isSemVerHasBeenSet; }
78 inline void SetIsSemVer(bool value) {
79 m_isSemVerHasBeenSet = true;
80 m_isSemVer = value;
81 }
82 inline CodegenDependency& WithIsSemVer(bool value) {
83 SetIsSemVer(value);
84 return *this;
85 }
87
89
93 inline const Aws::String& GetReason() const { return m_reason; }
94 inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; }
95 template <typename ReasonT = Aws::String>
96 void SetReason(ReasonT&& value) {
97 m_reasonHasBeenSet = true;
98 m_reason = std::forward<ReasonT>(value);
99 }
100 template <typename ReasonT = Aws::String>
101 CodegenDependency& WithReason(ReasonT&& value) {
102 SetReason(std::forward<ReasonT>(value));
103 return *this;
104 }
106 private:
107 Aws::String m_name;
108
109 Aws::String m_supportedVersion;
110
111 bool m_isSemVer{false};
112
113 Aws::String m_reason;
114 bool m_nameHasBeenSet = false;
115 bool m_supportedVersionHasBeenSet = false;
116 bool m_isSemVerHasBeenSet = false;
117 bool m_reasonHasBeenSet = false;
118};
119
120} // namespace Model
121} // namespace AmplifyUIBuilder
122} // namespace Aws
AWS_AMPLIFYUIBUILDER_API CodegenDependency & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetSupportedVersion(SupportedVersionT &&value)
CodegenDependency & WithName(NameT &&value)
AWS_AMPLIFYUIBUILDER_API CodegenDependency()=default
AWS_AMPLIFYUIBUILDER_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_AMPLIFYUIBUILDER_API CodegenDependency(Aws::Utils::Json::JsonView jsonValue)
CodegenDependency & WithSupportedVersion(SupportedVersionT &&value)
CodegenDependency & WithReason(ReasonT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue