AWS SDK for C++

AWS SDK for C++ Version 1.11.741

Loading...
Searching...
No Matches
AdditionalResources.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSVector.h>
8#include <aws/wellarchitected/WellArchitected_EXPORTS.h>
9#include <aws/wellarchitected/model/AdditionalResourceType.h>
10#include <aws/wellarchitected/model/ChoiceContent.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace WellArchitected {
22namespace Model {
23
32 public:
33 AWS_WELLARCHITECTED_API AdditionalResources() = default;
34 AWS_WELLARCHITECTED_API AdditionalResources(Aws::Utils::Json::JsonView jsonValue);
35 AWS_WELLARCHITECTED_API AdditionalResources& operator=(Aws::Utils::Json::JsonView jsonValue);
36 AWS_WELLARCHITECTED_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline AdditionalResourceType GetType() const { return m_type; }
43 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
44 inline void SetType(AdditionalResourceType value) {
45 m_typeHasBeenSet = true;
46 m_type = value;
47 }
49 SetType(value);
50 return *this;
51 }
53
55
59 inline const Aws::Vector<ChoiceContent>& GetContent() const { return m_content; }
60 inline bool ContentHasBeenSet() const { return m_contentHasBeenSet; }
61 template <typename ContentT = Aws::Vector<ChoiceContent>>
62 void SetContent(ContentT&& value) {
63 m_contentHasBeenSet = true;
64 m_content = std::forward<ContentT>(value);
65 }
66 template <typename ContentT = Aws::Vector<ChoiceContent>>
67 AdditionalResources& WithContent(ContentT&& value) {
68 SetContent(std::forward<ContentT>(value));
69 return *this;
70 }
71 template <typename ContentT = ChoiceContent>
72 AdditionalResources& AddContent(ContentT&& value) {
73 m_contentHasBeenSet = true;
74 m_content.emplace_back(std::forward<ContentT>(value));
75 return *this;
76 }
78 private:
80
82 bool m_typeHasBeenSet = false;
83 bool m_contentHasBeenSet = false;
84};
85
86} // namespace Model
87} // namespace WellArchitected
88} // namespace Aws
AWS_WELLARCHITECTED_API AdditionalResources()=default
AdditionalResources & WithType(AdditionalResourceType value)
AdditionalResources & AddContent(ContentT &&value)
AdditionalResources & WithContent(ContentT &&value)
AWS_WELLARCHITECTED_API AdditionalResources(Aws::Utils::Json::JsonView jsonValue)
AWS_WELLARCHITECTED_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Vector< ChoiceContent > & GetContent() const
AWS_WELLARCHITECTED_API AdditionalResources & operator=(Aws::Utils::Json::JsonView jsonValue)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue