AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
AdditionalResources.h
1
6#pragma once
7#include <aws/wellarchitected/WellArchitected_EXPORTS.h>
8#include <aws/wellarchitected/model/AdditionalResourceType.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/wellarchitected/model/ChoiceContent.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 WellArchitected
24{
25namespace Model
26{
27
36 {
37 public:
38 AWS_WELLARCHITECTED_API AdditionalResources() = default;
39 AWS_WELLARCHITECTED_API AdditionalResources(Aws::Utils::Json::JsonView jsonValue);
40 AWS_WELLARCHITECTED_API AdditionalResources& operator=(Aws::Utils::Json::JsonView jsonValue);
41 AWS_WELLARCHITECTED_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline AdditionalResourceType GetType() const { return m_type; }
49 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
50 inline void SetType(AdditionalResourceType value) { m_typeHasBeenSet = true; m_type = value; }
51 inline AdditionalResources& WithType(AdditionalResourceType value) { SetType(value); return *this;}
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) { m_contentHasBeenSet = true; m_content = std::forward<ContentT>(value); }
63 template<typename ContentT = Aws::Vector<ChoiceContent>>
64 AdditionalResources& WithContent(ContentT&& value) { SetContent(std::forward<ContentT>(value)); return *this;}
65 template<typename ContentT = ChoiceContent>
66 AdditionalResources& AddContent(ContentT&& value) { m_contentHasBeenSet = true; m_content.emplace_back(std::forward<ContentT>(value)); return *this; }
68 private:
69
71 bool m_typeHasBeenSet = false;
72
74 bool m_contentHasBeenSet = false;
75 };
76
77} // namespace Model
78} // namespace WellArchitected
79} // 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