AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace CloudTrail
22{
23namespace Model
24{
25
33 {
34 public:
35 AWS_CLOUDTRAIL_API Resource();
36 AWS_CLOUDTRAIL_API Resource(Aws::Utils::Json::JsonView jsonValue);
37 AWS_CLOUDTRAIL_API Resource& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_CLOUDTRAIL_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
51 inline const Aws::String& GetResourceType() const{ return m_resourceType; }
52 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
53 inline void SetResourceType(const Aws::String& value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; }
54 inline void SetResourceType(Aws::String&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::move(value); }
55 inline void SetResourceType(const char* value) { m_resourceTypeHasBeenSet = true; m_resourceType.assign(value); }
56 inline Resource& WithResourceType(const Aws::String& value) { SetResourceType(value); return *this;}
57 inline Resource& WithResourceType(Aws::String&& value) { SetResourceType(std::move(value)); return *this;}
58 inline Resource& WithResourceType(const char* value) { SetResourceType(value); return *this;}
60
62
68 inline const Aws::String& GetResourceName() const{ return m_resourceName; }
69 inline bool ResourceNameHasBeenSet() const { return m_resourceNameHasBeenSet; }
70 inline void SetResourceName(const Aws::String& value) { m_resourceNameHasBeenSet = true; m_resourceName = value; }
71 inline void SetResourceName(Aws::String&& value) { m_resourceNameHasBeenSet = true; m_resourceName = std::move(value); }
72 inline void SetResourceName(const char* value) { m_resourceNameHasBeenSet = true; m_resourceName.assign(value); }
73 inline Resource& WithResourceName(const Aws::String& value) { SetResourceName(value); return *this;}
74 inline Resource& WithResourceName(Aws::String&& value) { SetResourceName(std::move(value)); return *this;}
75 inline Resource& WithResourceName(const char* value) { SetResourceName(value); return *this;}
77 private:
78
79 Aws::String m_resourceType;
80 bool m_resourceTypeHasBeenSet = false;
81
82 Aws::String m_resourceName;
83 bool m_resourceNameHasBeenSet = false;
84 };
85
86} // namespace Model
87} // namespace CloudTrail
88} // namespace Aws
void SetResourceName(const char *value)
Definition Resource.h:72
Resource & WithResourceName(const char *value)
Definition Resource.h:75
Resource & WithResourceName(Aws::String &&value)
Definition Resource.h:74
Resource & WithResourceType(const char *value)
Definition Resource.h:58
AWS_CLOUDTRAIL_API Resource()
AWS_CLOUDTRAIL_API Resource & operator=(Aws::Utils::Json::JsonView jsonValue)
Resource & WithResourceType(const Aws::String &value)
Definition Resource.h:56
Resource & WithResourceType(Aws::String &&value)
Definition Resource.h:57
const Aws::String & GetResourceName() const
Definition Resource.h:68
bool ResourceTypeHasBeenSet() const
Definition Resource.h:52
void SetResourceType(Aws::String &&value)
Definition Resource.h:54
const Aws::String & GetResourceType() const
Definition Resource.h:51
void SetResourceName(Aws::String &&value)
Definition Resource.h:71
void SetResourceType(const Aws::String &value)
Definition Resource.h:53
void SetResourceType(const char *value)
Definition Resource.h:55
AWS_CLOUDTRAIL_API Resource(Aws::Utils::Json::JsonView jsonValue)
Resource & WithResourceName(const Aws::String &value)
Definition Resource.h:73
void SetResourceName(const Aws::String &value)
Definition Resource.h:70
AWS_CLOUDTRAIL_API Aws::Utils::Json::JsonValue Jsonize() const
bool ResourceNameHasBeenSet() const
Definition Resource.h:69
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue