AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
DataResource.h
1
6#pragma once
7#include <aws/cloudtrail/CloudTrail_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace CloudTrail {
21namespace Model {
22
71 public:
72 AWS_CLOUDTRAIL_API DataResource() = default;
73 AWS_CLOUDTRAIL_API DataResource(Aws::Utils::Json::JsonView jsonValue);
74 AWS_CLOUDTRAIL_API DataResource& operator=(Aws::Utils::Json::JsonView jsonValue);
75 AWS_CLOUDTRAIL_API Aws::Utils::Json::JsonValue Jsonize() const;
76
78
87 inline const Aws::String& GetType() const { return m_type; }
88 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
89 template <typename TypeT = Aws::String>
90 void SetType(TypeT&& value) {
91 m_typeHasBeenSet = true;
92 m_type = std::forward<TypeT>(value);
93 }
94 template <typename TypeT = Aws::String>
95 DataResource& WithType(TypeT&& value) {
96 SetType(std::forward<TypeT>(value));
97 return *this;
98 }
100
102
133 inline const Aws::Vector<Aws::String>& GetValues() const { return m_values; }
134 inline bool ValuesHasBeenSet() const { return m_valuesHasBeenSet; }
135 template <typename ValuesT = Aws::Vector<Aws::String>>
136 void SetValues(ValuesT&& value) {
137 m_valuesHasBeenSet = true;
138 m_values = std::forward<ValuesT>(value);
139 }
140 template <typename ValuesT = Aws::Vector<Aws::String>>
141 DataResource& WithValues(ValuesT&& value) {
142 SetValues(std::forward<ValuesT>(value));
143 return *this;
144 }
145 template <typename ValuesT = Aws::String>
146 DataResource& AddValues(ValuesT&& value) {
147 m_valuesHasBeenSet = true;
148 m_values.emplace_back(std::forward<ValuesT>(value));
149 return *this;
150 }
152 private:
153 Aws::String m_type;
154
156 bool m_typeHasBeenSet = false;
157 bool m_valuesHasBeenSet = false;
158};
159
160} // namespace Model
161} // namespace CloudTrail
162} // namespace Aws
DataResource & AddValues(ValuesT &&value)
const Aws::String & GetType() const
AWS_CLOUDTRAIL_API DataResource(Aws::Utils::Json::JsonView jsonValue)
DataResource & WithType(TypeT &&value)
AWS_CLOUDTRAIL_API DataResource()=default
const Aws::Vector< Aws::String > & GetValues() const
DataResource & WithValues(ValuesT &&value)
AWS_CLOUDTRAIL_API DataResource & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_CLOUDTRAIL_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue