AWS SDK for C++  1.9.123
AWS SDK for C++
NonCompliantResource.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/iot/IoT_EXPORTS.h>
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace Utils
17 {
18 namespace Json
19 {
20  class JsonValue;
21  class JsonView;
22 } // namespace Json
23 } // namespace Utils
24 namespace IoT
25 {
26 namespace Model
27 {
28 
36  {
37  public:
42 
43 
47  inline const ResourceType& GetResourceType() const{ return m_resourceType; }
48 
52  inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
53 
57  inline void SetResourceType(const ResourceType& value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; }
58 
62  inline void SetResourceType(ResourceType&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::move(value); }
63 
67  inline NonCompliantResource& WithResourceType(const ResourceType& value) { SetResourceType(value); return *this;}
68 
72  inline NonCompliantResource& WithResourceType(ResourceType&& value) { SetResourceType(std::move(value)); return *this;}
73 
74 
78  inline const ResourceIdentifier& GetResourceIdentifier() const{ return m_resourceIdentifier; }
79 
83  inline bool ResourceIdentifierHasBeenSet() const { return m_resourceIdentifierHasBeenSet; }
84 
88  inline void SetResourceIdentifier(const ResourceIdentifier& value) { m_resourceIdentifierHasBeenSet = true; m_resourceIdentifier = value; }
89 
93  inline void SetResourceIdentifier(ResourceIdentifier&& value) { m_resourceIdentifierHasBeenSet = true; m_resourceIdentifier = std::move(value); }
94 
98  inline NonCompliantResource& WithResourceIdentifier(const ResourceIdentifier& value) { SetResourceIdentifier(value); return *this;}
99 
103  inline NonCompliantResource& WithResourceIdentifier(ResourceIdentifier&& value) { SetResourceIdentifier(std::move(value)); return *this;}
104 
105 
109  inline const Aws::Map<Aws::String, Aws::String>& GetAdditionalInfo() const{ return m_additionalInfo; }
110 
114  inline bool AdditionalInfoHasBeenSet() const { return m_additionalInfoHasBeenSet; }
115 
119  inline void SetAdditionalInfo(const Aws::Map<Aws::String, Aws::String>& value) { m_additionalInfoHasBeenSet = true; m_additionalInfo = value; }
120 
124  inline void SetAdditionalInfo(Aws::Map<Aws::String, Aws::String>&& value) { m_additionalInfoHasBeenSet = true; m_additionalInfo = std::move(value); }
125 
129  inline NonCompliantResource& WithAdditionalInfo(const Aws::Map<Aws::String, Aws::String>& value) { SetAdditionalInfo(value); return *this;}
130 
134  inline NonCompliantResource& WithAdditionalInfo(Aws::Map<Aws::String, Aws::String>&& value) { SetAdditionalInfo(std::move(value)); return *this;}
135 
139  inline NonCompliantResource& AddAdditionalInfo(const Aws::String& key, const Aws::String& value) { m_additionalInfoHasBeenSet = true; m_additionalInfo.emplace(key, value); return *this; }
140 
144  inline NonCompliantResource& AddAdditionalInfo(Aws::String&& key, const Aws::String& value) { m_additionalInfoHasBeenSet = true; m_additionalInfo.emplace(std::move(key), value); return *this; }
145 
149  inline NonCompliantResource& AddAdditionalInfo(const Aws::String& key, Aws::String&& value) { m_additionalInfoHasBeenSet = true; m_additionalInfo.emplace(key, std::move(value)); return *this; }
150 
154  inline NonCompliantResource& AddAdditionalInfo(Aws::String&& key, Aws::String&& value) { m_additionalInfoHasBeenSet = true; m_additionalInfo.emplace(std::move(key), std::move(value)); return *this; }
155 
159  inline NonCompliantResource& AddAdditionalInfo(const char* key, Aws::String&& value) { m_additionalInfoHasBeenSet = true; m_additionalInfo.emplace(key, std::move(value)); return *this; }
160 
164  inline NonCompliantResource& AddAdditionalInfo(Aws::String&& key, const char* value) { m_additionalInfoHasBeenSet = true; m_additionalInfo.emplace(std::move(key), value); return *this; }
165 
169  inline NonCompliantResource& AddAdditionalInfo(const char* key, const char* value) { m_additionalInfoHasBeenSet = true; m_additionalInfo.emplace(key, value); return *this; }
170 
171  private:
172 
173  ResourceType m_resourceType;
174  bool m_resourceTypeHasBeenSet;
175 
176  ResourceIdentifier m_resourceIdentifier;
177  bool m_resourceIdentifierHasBeenSet;
178 
179  Aws::Map<Aws::String, Aws::String> m_additionalInfo;
180  bool m_additionalInfoHasBeenSet;
181  };
182 
183 } // namespace Model
184 } // namespace IoT
185 } // namespace Aws
Aws::IoT::Model::NonCompliantResource::SetAdditionalInfo
void SetAdditionalInfo(const Aws::Map< Aws::String, Aws::String > &value)
Definition: NonCompliantResource.h:119
Aws::IoT::Model::NonCompliantResource::AddAdditionalInfo
NonCompliantResource & AddAdditionalInfo(const Aws::String &key, const Aws::String &value)
Definition: NonCompliantResource.h:139
Aws::IoT::Model::NonCompliantResource::WithResourceIdentifier
NonCompliantResource & WithResourceIdentifier(const ResourceIdentifier &value)
Definition: NonCompliantResource.h:98
Aws::IoT::Model::NonCompliantResource::operator=
NonCompliantResource & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::IoT::Model::ResourceIdentifier
Definition: ResourceIdentifier.h:34
Aws::IoT::Model::NonCompliantResource::WithResourceIdentifier
NonCompliantResource & WithResourceIdentifier(ResourceIdentifier &&value)
Definition: NonCompliantResource.h:103
ResourceType.h
Aws::IoT::Model::NonCompliantResource::SetAdditionalInfo
void SetAdditionalInfo(Aws::Map< Aws::String, Aws::String > &&value)
Definition: NonCompliantResource.h:124
Aws::IoT::Model::NonCompliantResource::AddAdditionalInfo
NonCompliantResource & AddAdditionalInfo(Aws::String &&key, Aws::String &&value)
Definition: NonCompliantResource.h:154
Aws::IoT::Model::NonCompliantResource::WithAdditionalInfo
NonCompliantResource & WithAdditionalInfo(Aws::Map< Aws::String, Aws::String > &&value)
Definition: NonCompliantResource.h:134
Aws::IoT::Model::NonCompliantResource::NonCompliantResource
NonCompliantResource(Aws::Utils::Json::JsonView jsonValue)
Aws::IoT::Model::NonCompliantResource::WithResourceType
NonCompliantResource & WithResourceType(const ResourceType &value)
Definition: NonCompliantResource.h:67
Aws::IoT::Model::NonCompliantResource::GetResourceType
const ResourceType & GetResourceType() const
Definition: NonCompliantResource.h:47
Aws::IoT::Model::NonCompliantResource::SetResourceIdentifier
void SetResourceIdentifier(ResourceIdentifier &&value)
Definition: NonCompliantResource.h:93
Aws::IoT::Model::NonCompliantResource::SetResourceType
void SetResourceType(ResourceType &&value)
Definition: NonCompliantResource.h:62
Aws::IoT::Model::NonCompliantResource::AddAdditionalInfo
NonCompliantResource & AddAdditionalInfo(const char *key, Aws::String &&value)
Definition: NonCompliantResource.h:159
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
Aws::IoT::Model::ResourceType
ResourceType
Definition: ResourceType.h:17
AWSString.h
Aws::IoT::Model::NonCompliantResource::WithAdditionalInfo
NonCompliantResource & WithAdditionalInfo(const Aws::Map< Aws::String, Aws::String > &value)
Definition: NonCompliantResource.h:129
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::IoT::Model::NonCompliantResource::AddAdditionalInfo
NonCompliantResource & AddAdditionalInfo(Aws::String &&key, const Aws::String &value)
Definition: NonCompliantResource.h:144
Aws::IoT::Model::NonCompliantResource::NonCompliantResource
NonCompliantResource()
Aws::IoT::Model::NonCompliantResource::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::IoT::Model::NonCompliantResource::AddAdditionalInfo
NonCompliantResource & AddAdditionalInfo(const char *key, const char *value)
Definition: NonCompliantResource.h:169
ResourceIdentifier.h
Aws::IoT::Model::NonCompliantResource::AddAdditionalInfo
NonCompliantResource & AddAdditionalInfo(const Aws::String &key, Aws::String &&value)
Definition: NonCompliantResource.h:149
Aws
Definition: AccessManagementClient.h:15
Aws::IoT::Model::NonCompliantResource::GetResourceIdentifier
const ResourceIdentifier & GetResourceIdentifier() const
Definition: NonCompliantResource.h:78
Aws::IoT::Model::NonCompliantResource::SetResourceType
void SetResourceType(const ResourceType &value)
Definition: NonCompliantResource.h:57
AWS_IOT_API
#define AWS_IOT_API
Definition: IoT_EXPORTS.h:28
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::IoT::Model::NonCompliantResource::AdditionalInfoHasBeenSet
bool AdditionalInfoHasBeenSet() const
Definition: NonCompliantResource.h:114
AWSMap.h
Aws::IoT::Model::NonCompliantResource::ResourceIdentifierHasBeenSet
bool ResourceIdentifierHasBeenSet() const
Definition: NonCompliantResource.h:83
Aws::IoT::Model::NonCompliantResource::SetResourceIdentifier
void SetResourceIdentifier(const ResourceIdentifier &value)
Definition: NonCompliantResource.h:88
Aws::IoT::Model::NonCompliantResource::AddAdditionalInfo
NonCompliantResource & AddAdditionalInfo(Aws::String &&key, const char *value)
Definition: NonCompliantResource.h:164
Aws::IoT::Model::NonCompliantResource
Definition: NonCompliantResource.h:36
Aws::Map
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Definition: AWSMap.h:19
Aws::IoT::Model::NonCompliantResource::GetAdditionalInfo
const Aws::Map< Aws::String, Aws::String > & GetAdditionalInfo() const
Definition: NonCompliantResource.h:109
IoT_EXPORTS.h
Aws::IoT::Model::NonCompliantResource::WithResourceType
NonCompliantResource & WithResourceType(ResourceType &&value)
Definition: NonCompliantResource.h:72
Aws::IoT::Model::NonCompliantResource::ResourceTypeHasBeenSet
bool ResourceTypeHasBeenSet() const
Definition: NonCompliantResource.h:52