AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
Resource.h
1
6#pragma once
7#include <aws/cloudtrail/CloudTrail_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace CloudTrail {
20namespace Model {
21
28class Resource {
29 public:
30 AWS_CLOUDTRAIL_API Resource() = default;
31 AWS_CLOUDTRAIL_API Resource(Aws::Utils::Json::JsonView jsonValue);
32 AWS_CLOUDTRAIL_API Resource& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_CLOUDTRAIL_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
45 inline const Aws::String& GetResourceType() const { return m_resourceType; }
46 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
47 template <typename ResourceTypeT = Aws::String>
48 void SetResourceType(ResourceTypeT&& value) {
49 m_resourceTypeHasBeenSet = true;
50 m_resourceType = std::forward<ResourceTypeT>(value);
51 }
52 template <typename ResourceTypeT = Aws::String>
53 Resource& WithResourceType(ResourceTypeT&& value) {
54 SetResourceType(std::forward<ResourceTypeT>(value));
55 return *this;
56 }
58
60
66 inline const Aws::String& GetResourceName() const { return m_resourceName; }
67 inline bool ResourceNameHasBeenSet() const { return m_resourceNameHasBeenSet; }
68 template <typename ResourceNameT = Aws::String>
69 void SetResourceName(ResourceNameT&& value) {
70 m_resourceNameHasBeenSet = true;
71 m_resourceName = std::forward<ResourceNameT>(value);
72 }
73 template <typename ResourceNameT = Aws::String>
74 Resource& WithResourceName(ResourceNameT&& value) {
75 SetResourceName(std::forward<ResourceNameT>(value));
76 return *this;
77 }
79 private:
80 Aws::String m_resourceType;
81
82 Aws::String m_resourceName;
83 bool m_resourceTypeHasBeenSet = false;
84 bool m_resourceNameHasBeenSet = false;
85};
86
87} // namespace Model
88} // namespace CloudTrail
89} // namespace Aws
AWS_CLOUDTRAIL_API Resource()=default
Resource & WithResourceName(ResourceNameT &&value)
Definition Resource.h:74
void SetResourceName(ResourceNameT &&value)
Definition Resource.h:69
AWS_CLOUDTRAIL_API Resource & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetResourceName() const
Definition Resource.h:66
bool ResourceTypeHasBeenSet() const
Definition Resource.h:46
const Aws::String & GetResourceType() const
Definition Resource.h:45
void SetResourceType(ResourceTypeT &&value)
Definition Resource.h:48
AWS_CLOUDTRAIL_API Resource(Aws::Utils::Json::JsonView jsonValue)
AWS_CLOUDTRAIL_API Aws::Utils::Json::JsonValue Jsonize() const
bool ResourceNameHasBeenSet() const
Definition Resource.h:67
Resource & WithResourceType(ResourceTypeT &&value)
Definition Resource.h:53
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue