AWS SDK for C++

AWS SDK for C++ Version 1.11.744

Loading...
Searching...
No Matches
ResourceIdentifier.h
1
6#pragma once
7#include <aws/config/ConfigService_EXPORTS.h>
8#include <aws/config/model/ResourceType.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace ConfigService {
22namespace Model {
23
32 public:
33 AWS_CONFIGSERVICE_API ResourceIdentifier() = default;
34 AWS_CONFIGSERVICE_API ResourceIdentifier(Aws::Utils::Json::JsonView jsonValue);
35 AWS_CONFIGSERVICE_API ResourceIdentifier& operator=(Aws::Utils::Json::JsonView jsonValue);
36 AWS_CONFIGSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline ResourceType GetResourceType() const { return m_resourceType; }
43 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
44 inline void SetResourceType(ResourceType value) {
45 m_resourceTypeHasBeenSet = true;
46 m_resourceType = value;
47 }
49 SetResourceType(value);
50 return *this;
51 }
53
55
58 inline const Aws::String& GetResourceId() const { return m_resourceId; }
59 inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
60 template <typename ResourceIdT = Aws::String>
61 void SetResourceId(ResourceIdT&& value) {
62 m_resourceIdHasBeenSet = true;
63 m_resourceId = std::forward<ResourceIdT>(value);
64 }
65 template <typename ResourceIdT = Aws::String>
66 ResourceIdentifier& WithResourceId(ResourceIdT&& value) {
67 SetResourceId(std::forward<ResourceIdT>(value));
68 return *this;
69 }
71
73
76 inline const Aws::String& GetResourceName() const { return m_resourceName; }
77 inline bool ResourceNameHasBeenSet() const { return m_resourceNameHasBeenSet; }
78 template <typename ResourceNameT = Aws::String>
79 void SetResourceName(ResourceNameT&& value) {
80 m_resourceNameHasBeenSet = true;
81 m_resourceName = std::forward<ResourceNameT>(value);
82 }
83 template <typename ResourceNameT = Aws::String>
84 ResourceIdentifier& WithResourceName(ResourceNameT&& value) {
85 SetResourceName(std::forward<ResourceNameT>(value));
86 return *this;
87 }
89
91
94 inline const Aws::Utils::DateTime& GetResourceDeletionTime() const { return m_resourceDeletionTime; }
95 inline bool ResourceDeletionTimeHasBeenSet() const { return m_resourceDeletionTimeHasBeenSet; }
96 template <typename ResourceDeletionTimeT = Aws::Utils::DateTime>
97 void SetResourceDeletionTime(ResourceDeletionTimeT&& value) {
98 m_resourceDeletionTimeHasBeenSet = true;
99 m_resourceDeletionTime = std::forward<ResourceDeletionTimeT>(value);
100 }
101 template <typename ResourceDeletionTimeT = Aws::Utils::DateTime>
102 ResourceIdentifier& WithResourceDeletionTime(ResourceDeletionTimeT&& value) {
103 SetResourceDeletionTime(std::forward<ResourceDeletionTimeT>(value));
104 return *this;
105 }
107 private:
108 ResourceType m_resourceType{ResourceType::NOT_SET};
109
110 Aws::String m_resourceId;
111
112 Aws::String m_resourceName;
113
114 Aws::Utils::DateTime m_resourceDeletionTime{};
115 bool m_resourceTypeHasBeenSet = false;
116 bool m_resourceIdHasBeenSet = false;
117 bool m_resourceNameHasBeenSet = false;
118 bool m_resourceDeletionTimeHasBeenSet = false;
119};
120
121} // namespace Model
122} // namespace ConfigService
123} // namespace Aws
AWS_CONFIGSERVICE_API ResourceIdentifier(Aws::Utils::Json::JsonView jsonValue)
ResourceIdentifier & WithResourceType(ResourceType value)
ResourceIdentifier & WithResourceDeletionTime(ResourceDeletionTimeT &&value)
ResourceIdentifier & WithResourceName(ResourceNameT &&value)
void SetResourceDeletionTime(ResourceDeletionTimeT &&value)
AWS_CONFIGSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Utils::DateTime & GetResourceDeletionTime() const
AWS_CONFIGSERVICE_API ResourceIdentifier & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_CONFIGSERVICE_API ResourceIdentifier()=default
ResourceIdentifier & WithResourceId(ResourceIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue