AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename ResourceTypeT = Aws::String>
54 void SetResourceType(ResourceTypeT&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::forward<ResourceTypeT>(value); }
55 template<typename ResourceTypeT = Aws::String>
56 Resource& WithResourceType(ResourceTypeT&& value) { SetResourceType(std::forward<ResourceTypeT>(value)); return *this;}
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) { m_resourceNameHasBeenSet = true; m_resourceName = std::forward<ResourceNameT>(value); }
70 template<typename ResourceNameT = Aws::String>
71 Resource& WithResourceName(ResourceNameT&& value) { SetResourceName(std::forward<ResourceNameT>(value)); return *this;}
73 private:
74
75 Aws::String m_resourceType;
76 bool m_resourceTypeHasBeenSet = false;
77
78 Aws::String m_resourceName;
79 bool m_resourceNameHasBeenSet = false;
80 };
81
82} // namespace Model
83} // namespace CloudTrail
84} // namespace Aws
AWS_CLOUDTRAIL_API Resource()=default
Resource & WithResourceName(ResourceNameT &&value)
Definition Resource.h:71
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:52
const Aws::String & GetResourceType() const
Definition Resource.h:51
void SetResourceType(ResourceTypeT &&value)
Definition Resource.h:54
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:56
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue