AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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
94 inline const Aws::String& GetType() const{ return m_type; }
95 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
96 inline void SetType(const Aws::String& value) { m_typeHasBeenSet = true; m_type = value; }
97 inline void SetType(Aws::String&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
98 inline void SetType(const char* value) { m_typeHasBeenSet = true; m_type.assign(value); }
99 inline DataResource& WithType(const Aws::String& value) { SetType(value); return *this;}
100 inline DataResource& WithType(Aws::String&& value) { SetType(std::move(value)); return *this;}
101 inline DataResource& WithType(const char* value) { SetType(value); return *this;}
103
105
136 inline const Aws::Vector<Aws::String>& GetValues() const{ return m_values; }
137 inline bool ValuesHasBeenSet() const { return m_valuesHasBeenSet; }
138 inline void SetValues(const Aws::Vector<Aws::String>& value) { m_valuesHasBeenSet = true; m_values = value; }
139 inline void SetValues(Aws::Vector<Aws::String>&& value) { m_valuesHasBeenSet = true; m_values = std::move(value); }
140 inline DataResource& WithValues(const Aws::Vector<Aws::String>& value) { SetValues(value); return *this;}
141 inline DataResource& WithValues(Aws::Vector<Aws::String>&& value) { SetValues(std::move(value)); return *this;}
142 inline DataResource& AddValues(const Aws::String& value) { m_valuesHasBeenSet = true; m_values.push_back(value); return *this; }
143 inline DataResource& AddValues(Aws::String&& value) { m_valuesHasBeenSet = true; m_values.push_back(std::move(value)); return *this; }
144 inline DataResource& AddValues(const char* value) { m_valuesHasBeenSet = true; m_values.push_back(value); return *this; }
146 private:
147
148 Aws::String m_type;
149 bool m_typeHasBeenSet = false;
150
152 bool m_valuesHasBeenSet = false;
153 };
154
155} // namespace Model
156} // namespace CloudTrail
157} // namespace Aws
DataResource & AddValues(const char *value)
DataResource & AddValues(const Aws::String &value)
const Aws::String & GetType() const
AWS_CLOUDTRAIL_API DataResource(Aws::Utils::Json::JsonView jsonValue)
DataResource & WithValues(const Aws::Vector< Aws::String > &value)
DataResource & WithValues(Aws::Vector< Aws::String > &&value)
DataResource & WithType(const char *value)
void SetValues(Aws::Vector< Aws::String > &&value)
DataResource & AddValues(Aws::String &&value)
const Aws::Vector< Aws::String > & GetValues() const
void SetType(const char *value)
void SetType(Aws::String &&value)
AWS_CLOUDTRAIL_API DataResource & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetValues(const Aws::Vector< Aws::String > &value)
DataResource & WithType(const Aws::String &value)
AWS_CLOUDTRAIL_API Aws::Utils::Json::JsonValue Jsonize() const
DataResource & WithType(Aws::String &&value)
void SetType(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue