AWS SDK for C++

AWS SDK for C++ Version 1.11.871

Loading...
Searching...
No Matches
PutAccountPropertiesRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/iam/IAMRequest.h>
10#include <aws/iam/IAM_EXPORTS.h>
11
12#include <utility>
13
14namespace Aws {
15namespace IAM {
16namespace Model {
17
21 public:
22 AWS_IAM_API PutAccountPropertiesRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "PutAccountProperties"; }
29
30 AWS_IAM_API Aws::String SerializePayload() const override;
31
32 protected:
33 AWS_IAM_API void DumpBodyToUrl(Aws::Http::URI& uri) const override;
34
35 public:
37
45 inline const Aws::Map<Aws::String, Aws::String>& GetProperties() const { return m_properties; }
46 inline bool PropertiesHasBeenSet() const { return m_propertiesHasBeenSet; }
47 template <typename PropertiesT = Aws::Map<Aws::String, Aws::String>>
48 void SetProperties(PropertiesT&& value) {
49 m_propertiesHasBeenSet = true;
50 m_properties = std::forward<PropertiesT>(value);
51 }
52 template <typename PropertiesT = Aws::Map<Aws::String, Aws::String>>
54 SetProperties(std::forward<PropertiesT>(value));
55 return *this;
56 }
57 template <typename PropertiesKeyT = Aws::String, typename PropertiesValueT = Aws::String>
58 PutAccountPropertiesRequest& AddProperties(PropertiesKeyT&& key, PropertiesValueT&& value) {
59 m_propertiesHasBeenSet = true;
60 m_properties.emplace(std::forward<PropertiesKeyT>(key), std::forward<PropertiesValueT>(value));
61 return *this;
62 }
64 private:
66 bool m_propertiesHasBeenSet = false;
67};
68
69} // namespace Model
70} // namespace IAM
71} // namespace Aws
AWS_IAM_API Aws::String SerializePayload() const override
AWS_IAM_API PutAccountPropertiesRequest()=default
PutAccountPropertiesRequest & WithProperties(PropertiesT &&value)
PutAccountPropertiesRequest & AddProperties(PropertiesKeyT &&key, PropertiesValueT &&value)
virtual const char * GetServiceRequestName() const override
AWS_IAM_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
const Aws::Map< Aws::String, Aws::String > & GetProperties() const
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String