AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace CloudTrail
23{
24namespace Model
25{
26
75 {
76 public:
77 AWS_CLOUDTRAIL_API DataResource() = default;
78 AWS_CLOUDTRAIL_API DataResource(Aws::Utils::Json::JsonView jsonValue);
79 AWS_CLOUDTRAIL_API DataResource& operator=(Aws::Utils::Json::JsonView jsonValue);
80 AWS_CLOUDTRAIL_API Aws::Utils::Json::JsonValue Jsonize() const;
81
82
84
93 inline const Aws::String& GetType() const { return m_type; }
94 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
95 template<typename TypeT = Aws::String>
96 void SetType(TypeT&& value) { m_typeHasBeenSet = true; m_type = std::forward<TypeT>(value); }
97 template<typename TypeT = Aws::String>
98 DataResource& WithType(TypeT&& value) { SetType(std::forward<TypeT>(value)); return *this;}
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) { m_valuesHasBeenSet = true; m_values = std::forward<ValuesT>(value); }
137 template<typename ValuesT = Aws::Vector<Aws::String>>
138 DataResource& WithValues(ValuesT&& value) { SetValues(std::forward<ValuesT>(value)); return *this;}
139 template<typename ValuesT = Aws::String>
140 DataResource& AddValues(ValuesT&& value) { m_valuesHasBeenSet = true; m_values.emplace_back(std::forward<ValuesT>(value)); return *this; }
142 private:
143
144 Aws::String m_type;
145 bool m_typeHasBeenSet = false;
146
148 bool m_valuesHasBeenSet = false;
149 };
150
151} // namespace Model
152} // namespace CloudTrail
153} // 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