AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
UpdateAuthorizerRequest.h
1
6#pragma once
7#include <aws/iot/IoT_EXPORTS.h>
8#include <aws/iot/IoTRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <aws/iot/model/AuthorizerStatus.h>
12#include <utility>
13
14namespace Aws
15{
16namespace IoT
17{
18namespace Model
19{
20
24 {
25 public:
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "UpdateAuthorizer"; }
33
34 AWS_IOT_API Aws::String SerializePayload() const override;
35
36
38
41 inline const Aws::String& GetAuthorizerName() const{ return m_authorizerName; }
42 inline bool AuthorizerNameHasBeenSet() const { return m_authorizerNameHasBeenSet; }
43 inline void SetAuthorizerName(const Aws::String& value) { m_authorizerNameHasBeenSet = true; m_authorizerName = value; }
44 inline void SetAuthorizerName(Aws::String&& value) { m_authorizerNameHasBeenSet = true; m_authorizerName = std::move(value); }
45 inline void SetAuthorizerName(const char* value) { m_authorizerNameHasBeenSet = true; m_authorizerName.assign(value); }
46 inline UpdateAuthorizerRequest& WithAuthorizerName(const Aws::String& value) { SetAuthorizerName(value); return *this;}
47 inline UpdateAuthorizerRequest& WithAuthorizerName(Aws::String&& value) { SetAuthorizerName(std::move(value)); return *this;}
48 inline UpdateAuthorizerRequest& WithAuthorizerName(const char* value) { SetAuthorizerName(value); return *this;}
50
52
55 inline const Aws::String& GetAuthorizerFunctionArn() const{ return m_authorizerFunctionArn; }
56 inline bool AuthorizerFunctionArnHasBeenSet() const { return m_authorizerFunctionArnHasBeenSet; }
57 inline void SetAuthorizerFunctionArn(const Aws::String& value) { m_authorizerFunctionArnHasBeenSet = true; m_authorizerFunctionArn = value; }
58 inline void SetAuthorizerFunctionArn(Aws::String&& value) { m_authorizerFunctionArnHasBeenSet = true; m_authorizerFunctionArn = std::move(value); }
59 inline void SetAuthorizerFunctionArn(const char* value) { m_authorizerFunctionArnHasBeenSet = true; m_authorizerFunctionArn.assign(value); }
62 inline UpdateAuthorizerRequest& WithAuthorizerFunctionArn(const char* value) { SetAuthorizerFunctionArn(value); return *this;}
64
66
69 inline const Aws::String& GetTokenKeyName() const{ return m_tokenKeyName; }
70 inline bool TokenKeyNameHasBeenSet() const { return m_tokenKeyNameHasBeenSet; }
71 inline void SetTokenKeyName(const Aws::String& value) { m_tokenKeyNameHasBeenSet = true; m_tokenKeyName = value; }
72 inline void SetTokenKeyName(Aws::String&& value) { m_tokenKeyNameHasBeenSet = true; m_tokenKeyName = std::move(value); }
73 inline void SetTokenKeyName(const char* value) { m_tokenKeyNameHasBeenSet = true; m_tokenKeyName.assign(value); }
74 inline UpdateAuthorizerRequest& WithTokenKeyName(const Aws::String& value) { SetTokenKeyName(value); return *this;}
75 inline UpdateAuthorizerRequest& WithTokenKeyName(Aws::String&& value) { SetTokenKeyName(std::move(value)); return *this;}
76 inline UpdateAuthorizerRequest& WithTokenKeyName(const char* value) { SetTokenKeyName(value); return *this;}
78
80
83 inline const Aws::Map<Aws::String, Aws::String>& GetTokenSigningPublicKeys() const{ return m_tokenSigningPublicKeys; }
84 inline bool TokenSigningPublicKeysHasBeenSet() const { return m_tokenSigningPublicKeysHasBeenSet; }
85 inline void SetTokenSigningPublicKeys(const Aws::Map<Aws::String, Aws::String>& value) { m_tokenSigningPublicKeysHasBeenSet = true; m_tokenSigningPublicKeys = value; }
86 inline void SetTokenSigningPublicKeys(Aws::Map<Aws::String, Aws::String>&& value) { m_tokenSigningPublicKeysHasBeenSet = true; m_tokenSigningPublicKeys = std::move(value); }
89 inline UpdateAuthorizerRequest& AddTokenSigningPublicKeys(const Aws::String& key, const Aws::String& value) { m_tokenSigningPublicKeysHasBeenSet = true; m_tokenSigningPublicKeys.emplace(key, value); return *this; }
90 inline UpdateAuthorizerRequest& AddTokenSigningPublicKeys(Aws::String&& key, const Aws::String& value) { m_tokenSigningPublicKeysHasBeenSet = true; m_tokenSigningPublicKeys.emplace(std::move(key), value); return *this; }
91 inline UpdateAuthorizerRequest& AddTokenSigningPublicKeys(const Aws::String& key, Aws::String&& value) { m_tokenSigningPublicKeysHasBeenSet = true; m_tokenSigningPublicKeys.emplace(key, std::move(value)); return *this; }
92 inline UpdateAuthorizerRequest& AddTokenSigningPublicKeys(Aws::String&& key, Aws::String&& value) { m_tokenSigningPublicKeysHasBeenSet = true; m_tokenSigningPublicKeys.emplace(std::move(key), std::move(value)); return *this; }
93 inline UpdateAuthorizerRequest& AddTokenSigningPublicKeys(const char* key, Aws::String&& value) { m_tokenSigningPublicKeysHasBeenSet = true; m_tokenSigningPublicKeys.emplace(key, std::move(value)); return *this; }
94 inline UpdateAuthorizerRequest& AddTokenSigningPublicKeys(Aws::String&& key, const char* value) { m_tokenSigningPublicKeysHasBeenSet = true; m_tokenSigningPublicKeys.emplace(std::move(key), value); return *this; }
95 inline UpdateAuthorizerRequest& AddTokenSigningPublicKeys(const char* key, const char* value) { m_tokenSigningPublicKeysHasBeenSet = true; m_tokenSigningPublicKeys.emplace(key, value); return *this; }
97
99
102 inline const AuthorizerStatus& GetStatus() const{ return m_status; }
103 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
104 inline void SetStatus(const AuthorizerStatus& value) { m_statusHasBeenSet = true; m_status = value; }
105 inline void SetStatus(AuthorizerStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
106 inline UpdateAuthorizerRequest& WithStatus(const AuthorizerStatus& value) { SetStatus(value); return *this;}
107 inline UpdateAuthorizerRequest& WithStatus(AuthorizerStatus&& value) { SetStatus(std::move(value)); return *this;}
109
111
116 inline bool GetEnableCachingForHttp() const{ return m_enableCachingForHttp; }
117 inline bool EnableCachingForHttpHasBeenSet() const { return m_enableCachingForHttpHasBeenSet; }
118 inline void SetEnableCachingForHttp(bool value) { m_enableCachingForHttpHasBeenSet = true; m_enableCachingForHttp = value; }
121 private:
122
123 Aws::String m_authorizerName;
124 bool m_authorizerNameHasBeenSet = false;
125
126 Aws::String m_authorizerFunctionArn;
127 bool m_authorizerFunctionArnHasBeenSet = false;
128
129 Aws::String m_tokenKeyName;
130 bool m_tokenKeyNameHasBeenSet = false;
131
132 Aws::Map<Aws::String, Aws::String> m_tokenSigningPublicKeys;
133 bool m_tokenSigningPublicKeysHasBeenSet = false;
134
135 AuthorizerStatus m_status;
136 bool m_statusHasBeenSet = false;
137
138 bool m_enableCachingForHttp;
139 bool m_enableCachingForHttpHasBeenSet = false;
140 };
141
142} // namespace Model
143} // namespace IoT
144} // namespace Aws
UpdateAuthorizerRequest & AddTokenSigningPublicKeys(const Aws::String &key, Aws::String &&value)
UpdateAuthorizerRequest & WithAuthorizerFunctionArn(const Aws::String &value)
const Aws::String & GetAuthorizerFunctionArn() const
UpdateAuthorizerRequest & WithEnableCachingForHttp(bool value)
AWS_IOT_API Aws::String SerializePayload() const override
void SetTokenKeyName(const Aws::String &value)
UpdateAuthorizerRequest & AddTokenSigningPublicKeys(const char *key, Aws::String &&value)
UpdateAuthorizerRequest & WithTokenKeyName(const char *value)
UpdateAuthorizerRequest & WithStatus(AuthorizerStatus &&value)
void SetTokenSigningPublicKeys(Aws::Map< Aws::String, Aws::String > &&value)
UpdateAuthorizerRequest & AddTokenSigningPublicKeys(Aws::String &&key, const Aws::String &value)
UpdateAuthorizerRequest & WithAuthorizerFunctionArn(Aws::String &&value)
UpdateAuthorizerRequest & AddTokenSigningPublicKeys(const Aws::String &key, const Aws::String &value)
UpdateAuthorizerRequest & WithTokenSigningPublicKeys(Aws::Map< Aws::String, Aws::String > &&value)
UpdateAuthorizerRequest & AddTokenSigningPublicKeys(const char *key, const char *value)
UpdateAuthorizerRequest & AddTokenSigningPublicKeys(Aws::String &&key, const char *value)
UpdateAuthorizerRequest & WithAuthorizerName(const char *value)
UpdateAuthorizerRequest & WithTokenSigningPublicKeys(const Aws::Map< Aws::String, Aws::String > &value)
void SetAuthorizerFunctionArn(const Aws::String &value)
UpdateAuthorizerRequest & WithStatus(const AuthorizerStatus &value)
UpdateAuthorizerRequest & AddTokenSigningPublicKeys(Aws::String &&key, Aws::String &&value)
UpdateAuthorizerRequest & WithAuthorizerFunctionArn(const char *value)
void SetAuthorizerName(const Aws::String &value)
const Aws::Map< Aws::String, Aws::String > & GetTokenSigningPublicKeys() const
UpdateAuthorizerRequest & WithTokenKeyName(const Aws::String &value)
void SetTokenSigningPublicKeys(const Aws::Map< Aws::String, Aws::String > &value)
void SetStatus(const AuthorizerStatus &value)
UpdateAuthorizerRequest & WithAuthorizerName(Aws::String &&value)
virtual const char * GetServiceRequestName() const override
UpdateAuthorizerRequest & WithAuthorizerName(const Aws::String &value)
UpdateAuthorizerRequest & WithTokenKeyName(Aws::String &&value)
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