AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
AggregateResourceIdentifier.h
1
6#pragma once
7#include <aws/config/ConfigService_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/config/model/ResourceType.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace ConfigService
23{
24namespace Model
25{
26
35 {
36 public:
37 AWS_CONFIGSERVICE_API AggregateResourceIdentifier();
40 AWS_CONFIGSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::String& GetSourceAccountId() const{ return m_sourceAccountId; }
48 inline bool SourceAccountIdHasBeenSet() const { return m_sourceAccountIdHasBeenSet; }
49 inline void SetSourceAccountId(const Aws::String& value) { m_sourceAccountIdHasBeenSet = true; m_sourceAccountId = value; }
50 inline void SetSourceAccountId(Aws::String&& value) { m_sourceAccountIdHasBeenSet = true; m_sourceAccountId = std::move(value); }
51 inline void SetSourceAccountId(const char* value) { m_sourceAccountIdHasBeenSet = true; m_sourceAccountId.assign(value); }
53 inline AggregateResourceIdentifier& WithSourceAccountId(Aws::String&& value) { SetSourceAccountId(std::move(value)); return *this;}
54 inline AggregateResourceIdentifier& WithSourceAccountId(const char* value) { SetSourceAccountId(value); return *this;}
56
58
61 inline const Aws::String& GetSourceRegion() const{ return m_sourceRegion; }
62 inline bool SourceRegionHasBeenSet() const { return m_sourceRegionHasBeenSet; }
63 inline void SetSourceRegion(const Aws::String& value) { m_sourceRegionHasBeenSet = true; m_sourceRegion = value; }
64 inline void SetSourceRegion(Aws::String&& value) { m_sourceRegionHasBeenSet = true; m_sourceRegion = std::move(value); }
65 inline void SetSourceRegion(const char* value) { m_sourceRegionHasBeenSet = true; m_sourceRegion.assign(value); }
66 inline AggregateResourceIdentifier& WithSourceRegion(const Aws::String& value) { SetSourceRegion(value); return *this;}
67 inline AggregateResourceIdentifier& WithSourceRegion(Aws::String&& value) { SetSourceRegion(std::move(value)); return *this;}
68 inline AggregateResourceIdentifier& WithSourceRegion(const char* value) { SetSourceRegion(value); return *this;}
70
72
75 inline const Aws::String& GetResourceId() const{ return m_resourceId; }
76 inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
77 inline void SetResourceId(const Aws::String& value) { m_resourceIdHasBeenSet = true; m_resourceId = value; }
78 inline void SetResourceId(Aws::String&& value) { m_resourceIdHasBeenSet = true; m_resourceId = std::move(value); }
79 inline void SetResourceId(const char* value) { m_resourceIdHasBeenSet = true; m_resourceId.assign(value); }
80 inline AggregateResourceIdentifier& WithResourceId(const Aws::String& value) { SetResourceId(value); return *this;}
81 inline AggregateResourceIdentifier& WithResourceId(Aws::String&& value) { SetResourceId(std::move(value)); return *this;}
82 inline AggregateResourceIdentifier& WithResourceId(const char* value) { SetResourceId(value); return *this;}
84
86
89 inline const ResourceType& GetResourceType() const{ return m_resourceType; }
90 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
91 inline void SetResourceType(const ResourceType& value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; }
92 inline void SetResourceType(ResourceType&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::move(value); }
93 inline AggregateResourceIdentifier& WithResourceType(const ResourceType& value) { SetResourceType(value); return *this;}
94 inline AggregateResourceIdentifier& WithResourceType(ResourceType&& value) { SetResourceType(std::move(value)); return *this;}
96
98
101 inline const Aws::String& GetResourceName() const{ return m_resourceName; }
102 inline bool ResourceNameHasBeenSet() const { return m_resourceNameHasBeenSet; }
103 inline void SetResourceName(const Aws::String& value) { m_resourceNameHasBeenSet = true; m_resourceName = value; }
104 inline void SetResourceName(Aws::String&& value) { m_resourceNameHasBeenSet = true; m_resourceName = std::move(value); }
105 inline void SetResourceName(const char* value) { m_resourceNameHasBeenSet = true; m_resourceName.assign(value); }
106 inline AggregateResourceIdentifier& WithResourceName(const Aws::String& value) { SetResourceName(value); return *this;}
107 inline AggregateResourceIdentifier& WithResourceName(Aws::String&& value) { SetResourceName(std::move(value)); return *this;}
108 inline AggregateResourceIdentifier& WithResourceName(const char* value) { SetResourceName(value); return *this;}
110 private:
111
112 Aws::String m_sourceAccountId;
113 bool m_sourceAccountIdHasBeenSet = false;
114
115 Aws::String m_sourceRegion;
116 bool m_sourceRegionHasBeenSet = false;
117
118 Aws::String m_resourceId;
119 bool m_resourceIdHasBeenSet = false;
120
121 ResourceType m_resourceType;
122 bool m_resourceTypeHasBeenSet = false;
123
124 Aws::String m_resourceName;
125 bool m_resourceNameHasBeenSet = false;
126 };
127
128} // namespace Model
129} // namespace ConfigService
130} // namespace Aws
AggregateResourceIdentifier & WithResourceId(const char *value)
AggregateResourceIdentifier & WithSourceAccountId(const Aws::String &value)
AggregateResourceIdentifier & WithResourceId(Aws::String &&value)
AWS_CONFIGSERVICE_API AggregateResourceIdentifier(Aws::Utils::Json::JsonView jsonValue)
AggregateResourceIdentifier & WithResourceId(const Aws::String &value)
AWS_CONFIGSERVICE_API AggregateResourceIdentifier & operator=(Aws::Utils::Json::JsonView jsonValue)
AggregateResourceIdentifier & WithResourceName(const char *value)
AggregateResourceIdentifier & WithSourceAccountId(Aws::String &&value)
AggregateResourceIdentifier & WithResourceName(const Aws::String &value)
AggregateResourceIdentifier & WithSourceAccountId(const char *value)
AggregateResourceIdentifier & WithSourceRegion(const char *value)
AggregateResourceIdentifier & WithResourceType(const ResourceType &value)
AggregateResourceIdentifier & WithSourceRegion(Aws::String &&value)
AggregateResourceIdentifier & WithSourceRegion(const Aws::String &value)
AggregateResourceIdentifier & WithResourceName(Aws::String &&value)
AggregateResourceIdentifier & WithResourceType(ResourceType &&value)
AWS_CONFIGSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue