AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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/memory/stl/AWSString.h>
10#include <aws/core/utils/DateTime.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace ConfigService
24{
25namespace Model
26{
27
36 {
37 public:
38 AWS_CONFIGSERVICE_API ResourceIdentifier() = default;
39 AWS_CONFIGSERVICE_API ResourceIdentifier(Aws::Utils::Json::JsonView jsonValue);
40 AWS_CONFIGSERVICE_API ResourceIdentifier& operator=(Aws::Utils::Json::JsonView jsonValue);
41 AWS_CONFIGSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline ResourceType GetResourceType() const { return m_resourceType; }
49 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
50 inline void SetResourceType(ResourceType value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; }
51 inline ResourceIdentifier& WithResourceType(ResourceType value) { SetResourceType(value); return *this;}
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) { m_resourceIdHasBeenSet = true; m_resourceId = std::forward<ResourceIdT>(value); }
62 template<typename ResourceIdT = Aws::String>
63 ResourceIdentifier& WithResourceId(ResourceIdT&& value) { SetResourceId(std::forward<ResourceIdT>(value)); return *this;}
65
67
70 inline const Aws::String& GetResourceName() const { return m_resourceName; }
71 inline bool ResourceNameHasBeenSet() const { return m_resourceNameHasBeenSet; }
72 template<typename ResourceNameT = Aws::String>
73 void SetResourceName(ResourceNameT&& value) { m_resourceNameHasBeenSet = true; m_resourceName = std::forward<ResourceNameT>(value); }
74 template<typename ResourceNameT = Aws::String>
75 ResourceIdentifier& WithResourceName(ResourceNameT&& value) { SetResourceName(std::forward<ResourceNameT>(value)); return *this;}
77
79
82 inline const Aws::Utils::DateTime& GetResourceDeletionTime() const { return m_resourceDeletionTime; }
83 inline bool ResourceDeletionTimeHasBeenSet() const { return m_resourceDeletionTimeHasBeenSet; }
84 template<typename ResourceDeletionTimeT = Aws::Utils::DateTime>
85 void SetResourceDeletionTime(ResourceDeletionTimeT&& value) { m_resourceDeletionTimeHasBeenSet = true; m_resourceDeletionTime = std::forward<ResourceDeletionTimeT>(value); }
86 template<typename ResourceDeletionTimeT = Aws::Utils::DateTime>
87 ResourceIdentifier& WithResourceDeletionTime(ResourceDeletionTimeT&& value) { SetResourceDeletionTime(std::forward<ResourceDeletionTimeT>(value)); return *this;}
89 private:
90
91 ResourceType m_resourceType{ResourceType::NOT_SET};
92 bool m_resourceTypeHasBeenSet = false;
93
94 Aws::String m_resourceId;
95 bool m_resourceIdHasBeenSet = false;
96
97 Aws::String m_resourceName;
98 bool m_resourceNameHasBeenSet = false;
99
100 Aws::Utils::DateTime m_resourceDeletionTime{};
101 bool m_resourceDeletionTimeHasBeenSet = false;
102 };
103
104} // namespace Model
105} // namespace ConfigService
106} // 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