AWS SDK for C++

AWS SDK for C++ Version 1.11.860

Loading...
Searching...
No Matches
TemplateGroup.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/elementalinference/ElementalInference_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace ElementalInference {
21namespace Model {
22
31 public:
32 AWS_ELEMENTALINFERENCE_API TemplateGroup() = default;
33 AWS_ELEMENTALINFERENCE_API TemplateGroup(Aws::Utils::Json::JsonView jsonValue);
34 AWS_ELEMENTALINFERENCE_API TemplateGroup& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_ELEMENTALINFERENCE_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::String& GetName() const { return m_name; }
42 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
43 template <typename NameT = Aws::String>
44 void SetName(NameT&& value) {
45 m_nameHasBeenSet = true;
46 m_name = std::forward<NameT>(value);
47 }
48 template <typename NameT = Aws::String>
49 TemplateGroup& WithName(NameT&& value) {
50 SetName(std::forward<NameT>(value));
51 return *this;
52 }
54
56
62 inline const Aws::Vector<Aws::String>& GetTemplateUris() const { return m_templateUris; }
63 inline bool TemplateUrisHasBeenSet() const { return m_templateUrisHasBeenSet; }
64 template <typename TemplateUrisT = Aws::Vector<Aws::String>>
65 void SetTemplateUris(TemplateUrisT&& value) {
66 m_templateUrisHasBeenSet = true;
67 m_templateUris = std::forward<TemplateUrisT>(value);
68 }
69 template <typename TemplateUrisT = Aws::Vector<Aws::String>>
70 TemplateGroup& WithTemplateUris(TemplateUrisT&& value) {
71 SetTemplateUris(std::forward<TemplateUrisT>(value));
72 return *this;
73 }
74 template <typename TemplateUrisT = Aws::String>
75 TemplateGroup& AddTemplateUris(TemplateUrisT&& value) {
76 m_templateUrisHasBeenSet = true;
77 m_templateUris.emplace_back(std::forward<TemplateUrisT>(value));
78 return *this;
79 }
81 private:
82 Aws::String m_name;
83
84 Aws::Vector<Aws::String> m_templateUris;
85 bool m_nameHasBeenSet = false;
86 bool m_templateUrisHasBeenSet = false;
87};
88
89} // namespace Model
90} // namespace ElementalInference
91} // namespace Aws
void SetTemplateUris(TemplateUrisT &&value)
TemplateGroup & WithTemplateUris(TemplateUrisT &&value)
AWS_ELEMENTALINFERENCE_API TemplateGroup(Aws::Utils::Json::JsonView jsonValue)
TemplateGroup & WithName(NameT &&value)
const Aws::Vector< Aws::String > & GetTemplateUris() const
AWS_ELEMENTALINFERENCE_API TemplateGroup()=default
TemplateGroup & AddTemplateUris(TemplateUrisT &&value)
AWS_ELEMENTALINFERENCE_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_ELEMENTALINFERENCE_API TemplateGroup & 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