AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 const ResourceType& GetResourceType() const{ return m_resourceType; }
49 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
50 inline void SetResourceType(const ResourceType& value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; }
51 inline void SetResourceType(ResourceType&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::move(value); }
52 inline ResourceIdentifier& WithResourceType(const ResourceType& value) { SetResourceType(value); return *this;}
53 inline ResourceIdentifier& WithResourceType(ResourceType&& value) { SetResourceType(std::move(value)); return *this;}
55
57
60 inline const Aws::String& GetResourceId() const{ return m_resourceId; }
61 inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
62 inline void SetResourceId(const Aws::String& value) { m_resourceIdHasBeenSet = true; m_resourceId = value; }
63 inline void SetResourceId(Aws::String&& value) { m_resourceIdHasBeenSet = true; m_resourceId = std::move(value); }
64 inline void SetResourceId(const char* value) { m_resourceIdHasBeenSet = true; m_resourceId.assign(value); }
65 inline ResourceIdentifier& WithResourceId(const Aws::String& value) { SetResourceId(value); return *this;}
66 inline ResourceIdentifier& WithResourceId(Aws::String&& value) { SetResourceId(std::move(value)); return *this;}
67 inline ResourceIdentifier& WithResourceId(const char* value) { SetResourceId(value); return *this;}
69
71
74 inline const Aws::String& GetResourceName() const{ return m_resourceName; }
75 inline bool ResourceNameHasBeenSet() const { return m_resourceNameHasBeenSet; }
76 inline void SetResourceName(const Aws::String& value) { m_resourceNameHasBeenSet = true; m_resourceName = value; }
77 inline void SetResourceName(Aws::String&& value) { m_resourceNameHasBeenSet = true; m_resourceName = std::move(value); }
78 inline void SetResourceName(const char* value) { m_resourceNameHasBeenSet = true; m_resourceName.assign(value); }
79 inline ResourceIdentifier& WithResourceName(const Aws::String& value) { SetResourceName(value); return *this;}
80 inline ResourceIdentifier& WithResourceName(Aws::String&& value) { SetResourceName(std::move(value)); return *this;}
81 inline ResourceIdentifier& WithResourceName(const char* value) { SetResourceName(value); return *this;}
83
85
88 inline const Aws::Utils::DateTime& GetResourceDeletionTime() const{ return m_resourceDeletionTime; }
89 inline bool ResourceDeletionTimeHasBeenSet() const { return m_resourceDeletionTimeHasBeenSet; }
90 inline void SetResourceDeletionTime(const Aws::Utils::DateTime& value) { m_resourceDeletionTimeHasBeenSet = true; m_resourceDeletionTime = value; }
91 inline void SetResourceDeletionTime(Aws::Utils::DateTime&& value) { m_resourceDeletionTimeHasBeenSet = true; m_resourceDeletionTime = std::move(value); }
95 private:
96
97 ResourceType m_resourceType;
98 bool m_resourceTypeHasBeenSet = false;
99
100 Aws::String m_resourceId;
101 bool m_resourceIdHasBeenSet = false;
102
103 Aws::String m_resourceName;
104 bool m_resourceNameHasBeenSet = false;
105
106 Aws::Utils::DateTime m_resourceDeletionTime;
107 bool m_resourceDeletionTimeHasBeenSet = false;
108 };
109
110} // namespace Model
111} // namespace ConfigService
112} // namespace Aws
AWS_CONFIGSERVICE_API ResourceIdentifier(Aws::Utils::Json::JsonView jsonValue)
ResourceIdentifier & WithResourceType(const ResourceType &value)
AWS_CONFIGSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
ResourceIdentifier & WithResourceName(const char *value)
ResourceIdentifier & WithResourceId(const char *value)
ResourceIdentifier & WithResourceType(ResourceType &&value)
void SetResourceDeletionTime(Aws::Utils::DateTime &&value)
void SetResourceDeletionTime(const Aws::Utils::DateTime &value)
ResourceIdentifier & WithResourceDeletionTime(const Aws::Utils::DateTime &value)
const Aws::Utils::DateTime & GetResourceDeletionTime() const
void SetResourceType(const ResourceType &value)
ResourceIdentifier & WithResourceName(Aws::String &&value)
ResourceIdentifier & WithResourceDeletionTime(Aws::Utils::DateTime &&value)
AWS_CONFIGSERVICE_API ResourceIdentifier & operator=(Aws::Utils::Json::JsonView jsonValue)
ResourceIdentifier & WithResourceName(const Aws::String &value)
void SetResourceName(const Aws::String &value)
ResourceIdentifier & WithResourceId(const Aws::String &value)
ResourceIdentifier & WithResourceId(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue