AWS SDK for C++  1.8.71
AWS SDK for C++
AdminRespondToAuthChallengeRequest.h
Go to the documentation of this file.
1 
6 #pragma once
14 #include <utility>
15 
16 namespace Aws
17 {
18 namespace CognitoIdentityProvider
19 {
20 namespace Model
21 {
22 
30  {
31  public:
33 
34  // Service request name is the Operation name which will send this request out,
35  // each operation should has unique request name, so that we can get operation's name from this request.
36  // Note: this is not true for response, multiple operations may have the same response name,
37  // so we can not get operation's name from response.
38  inline virtual const char* GetServiceRequestName() const override { return "AdminRespondToAuthChallenge"; }
39 
40  Aws::String SerializePayload() const override;
41 
42  Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
43 
44 
48  inline const Aws::String& GetUserPoolId() const{ return m_userPoolId; }
49 
53  inline bool UserPoolIdHasBeenSet() const { return m_userPoolIdHasBeenSet; }
54 
58  inline void SetUserPoolId(const Aws::String& value) { m_userPoolIdHasBeenSet = true; m_userPoolId = value; }
59 
63  inline void SetUserPoolId(Aws::String&& value) { m_userPoolIdHasBeenSet = true; m_userPoolId = std::move(value); }
64 
68  inline void SetUserPoolId(const char* value) { m_userPoolIdHasBeenSet = true; m_userPoolId.assign(value); }
69 
73  inline AdminRespondToAuthChallengeRequest& WithUserPoolId(const Aws::String& value) { SetUserPoolId(value); return *this;}
74 
78  inline AdminRespondToAuthChallengeRequest& WithUserPoolId(Aws::String&& value) { SetUserPoolId(std::move(value)); return *this;}
79 
83  inline AdminRespondToAuthChallengeRequest& WithUserPoolId(const char* value) { SetUserPoolId(value); return *this;}
84 
85 
89  inline const Aws::String& GetClientId() const{ return m_clientId; }
90 
94  inline bool ClientIdHasBeenSet() const { return m_clientIdHasBeenSet; }
95 
99  inline void SetClientId(const Aws::String& value) { m_clientIdHasBeenSet = true; m_clientId = value; }
100 
104  inline void SetClientId(Aws::String&& value) { m_clientIdHasBeenSet = true; m_clientId = std::move(value); }
105 
109  inline void SetClientId(const char* value) { m_clientIdHasBeenSet = true; m_clientId.assign(value); }
110 
114  inline AdminRespondToAuthChallengeRequest& WithClientId(const Aws::String& value) { SetClientId(value); return *this;}
115 
119  inline AdminRespondToAuthChallengeRequest& WithClientId(Aws::String&& value) { SetClientId(std::move(value)); return *this;}
120 
124  inline AdminRespondToAuthChallengeRequest& WithClientId(const char* value) { SetClientId(value); return *this;}
125 
126 
131  inline const ChallengeNameType& GetChallengeName() const{ return m_challengeName; }
132 
137  inline bool ChallengeNameHasBeenSet() const { return m_challengeNameHasBeenSet; }
138 
143  inline void SetChallengeName(const ChallengeNameType& value) { m_challengeNameHasBeenSet = true; m_challengeName = value; }
144 
149  inline void SetChallengeName(ChallengeNameType&& value) { m_challengeNameHasBeenSet = true; m_challengeName = std::move(value); }
150 
155  inline AdminRespondToAuthChallengeRequest& WithChallengeName(const ChallengeNameType& value) { SetChallengeName(value); return *this;}
156 
161  inline AdminRespondToAuthChallengeRequest& WithChallengeName(ChallengeNameType&& value) { SetChallengeName(std::move(value)); return *this;}
162 
163 
184  inline const Aws::Map<Aws::String, Aws::String>& GetChallengeResponses() const{ return m_challengeResponses; }
185 
206  inline bool ChallengeResponsesHasBeenSet() const { return m_challengeResponsesHasBeenSet; }
207 
228  inline void SetChallengeResponses(const Aws::Map<Aws::String, Aws::String>& value) { m_challengeResponsesHasBeenSet = true; m_challengeResponses = value; }
229 
250  inline void SetChallengeResponses(Aws::Map<Aws::String, Aws::String>&& value) { m_challengeResponsesHasBeenSet = true; m_challengeResponses = std::move(value); }
251 
272  inline AdminRespondToAuthChallengeRequest& WithChallengeResponses(const Aws::Map<Aws::String, Aws::String>& value) { SetChallengeResponses(value); return *this;}
273 
294  inline AdminRespondToAuthChallengeRequest& WithChallengeResponses(Aws::Map<Aws::String, Aws::String>&& value) { SetChallengeResponses(std::move(value)); return *this;}
295 
316  inline AdminRespondToAuthChallengeRequest& AddChallengeResponses(const Aws::String& key, const Aws::String& value) { m_challengeResponsesHasBeenSet = true; m_challengeResponses.emplace(key, value); return *this; }
317 
338  inline AdminRespondToAuthChallengeRequest& AddChallengeResponses(Aws::String&& key, const Aws::String& value) { m_challengeResponsesHasBeenSet = true; m_challengeResponses.emplace(std::move(key), value); return *this; }
339 
360  inline AdminRespondToAuthChallengeRequest& AddChallengeResponses(const Aws::String& key, Aws::String&& value) { m_challengeResponsesHasBeenSet = true; m_challengeResponses.emplace(key, std::move(value)); return *this; }
361 
382  inline AdminRespondToAuthChallengeRequest& AddChallengeResponses(Aws::String&& key, Aws::String&& value) { m_challengeResponsesHasBeenSet = true; m_challengeResponses.emplace(std::move(key), std::move(value)); return *this; }
383 
404  inline AdminRespondToAuthChallengeRequest& AddChallengeResponses(const char* key, Aws::String&& value) { m_challengeResponsesHasBeenSet = true; m_challengeResponses.emplace(key, std::move(value)); return *this; }
405 
426  inline AdminRespondToAuthChallengeRequest& AddChallengeResponses(Aws::String&& key, const char* value) { m_challengeResponsesHasBeenSet = true; m_challengeResponses.emplace(std::move(key), value); return *this; }
427 
448  inline AdminRespondToAuthChallengeRequest& AddChallengeResponses(const char* key, const char* value) { m_challengeResponsesHasBeenSet = true; m_challengeResponses.emplace(key, value); return *this; }
449 
450 
458  inline const Aws::String& GetSession() const{ return m_session; }
459 
467  inline bool SessionHasBeenSet() const { return m_sessionHasBeenSet; }
468 
476  inline void SetSession(const Aws::String& value) { m_sessionHasBeenSet = true; m_session = value; }
477 
485  inline void SetSession(Aws::String&& value) { m_sessionHasBeenSet = true; m_session = std::move(value); }
486 
494  inline void SetSession(const char* value) { m_sessionHasBeenSet = true; m_session.assign(value); }
495 
503  inline AdminRespondToAuthChallengeRequest& WithSession(const Aws::String& value) { SetSession(value); return *this;}
504 
512  inline AdminRespondToAuthChallengeRequest& WithSession(Aws::String&& value) { SetSession(std::move(value)); return *this;}
513 
521  inline AdminRespondToAuthChallengeRequest& WithSession(const char* value) { SetSession(value); return *this;}
522 
523 
528  inline const AnalyticsMetadataType& GetAnalyticsMetadata() const{ return m_analyticsMetadata; }
529 
534  inline bool AnalyticsMetadataHasBeenSet() const { return m_analyticsMetadataHasBeenSet; }
535 
540  inline void SetAnalyticsMetadata(const AnalyticsMetadataType& value) { m_analyticsMetadataHasBeenSet = true; m_analyticsMetadata = value; }
541 
546  inline void SetAnalyticsMetadata(AnalyticsMetadataType&& value) { m_analyticsMetadataHasBeenSet = true; m_analyticsMetadata = std::move(value); }
547 
552  inline AdminRespondToAuthChallengeRequest& WithAnalyticsMetadata(const AnalyticsMetadataType& value) { SetAnalyticsMetadata(value); return *this;}
553 
558  inline AdminRespondToAuthChallengeRequest& WithAnalyticsMetadata(AnalyticsMetadataType&& value) { SetAnalyticsMetadata(std::move(value)); return *this;}
559 
560 
566  inline const ContextDataType& GetContextData() const{ return m_contextData; }
567 
573  inline bool ContextDataHasBeenSet() const { return m_contextDataHasBeenSet; }
574 
580  inline void SetContextData(const ContextDataType& value) { m_contextDataHasBeenSet = true; m_contextData = value; }
581 
587  inline void SetContextData(ContextDataType&& value) { m_contextDataHasBeenSet = true; m_contextData = std::move(value); }
588 
594  inline AdminRespondToAuthChallengeRequest& WithContextData(const ContextDataType& value) { SetContextData(value); return *this;}
595 
601  inline AdminRespondToAuthChallengeRequest& WithContextData(ContextDataType&& value) { SetContextData(std::move(value)); return *this;}
602 
603 
631  inline const Aws::Map<Aws::String, Aws::String>& GetClientMetadata() const{ return m_clientMetadata; }
632 
660  inline bool ClientMetadataHasBeenSet() const { return m_clientMetadataHasBeenSet; }
661 
689  inline void SetClientMetadata(const Aws::Map<Aws::String, Aws::String>& value) { m_clientMetadataHasBeenSet = true; m_clientMetadata = value; }
690 
718  inline void SetClientMetadata(Aws::Map<Aws::String, Aws::String>&& value) { m_clientMetadataHasBeenSet = true; m_clientMetadata = std::move(value); }
719 
747  inline AdminRespondToAuthChallengeRequest& WithClientMetadata(const Aws::Map<Aws::String, Aws::String>& value) { SetClientMetadata(value); return *this;}
748 
776  inline AdminRespondToAuthChallengeRequest& WithClientMetadata(Aws::Map<Aws::String, Aws::String>&& value) { SetClientMetadata(std::move(value)); return *this;}
777 
805  inline AdminRespondToAuthChallengeRequest& AddClientMetadata(const Aws::String& key, const Aws::String& value) { m_clientMetadataHasBeenSet = true; m_clientMetadata.emplace(key, value); return *this; }
806 
834  inline AdminRespondToAuthChallengeRequest& AddClientMetadata(Aws::String&& key, const Aws::String& value) { m_clientMetadataHasBeenSet = true; m_clientMetadata.emplace(std::move(key), value); return *this; }
835 
863  inline AdminRespondToAuthChallengeRequest& AddClientMetadata(const Aws::String& key, Aws::String&& value) { m_clientMetadataHasBeenSet = true; m_clientMetadata.emplace(key, std::move(value)); return *this; }
864 
892  inline AdminRespondToAuthChallengeRequest& AddClientMetadata(Aws::String&& key, Aws::String&& value) { m_clientMetadataHasBeenSet = true; m_clientMetadata.emplace(std::move(key), std::move(value)); return *this; }
893 
921  inline AdminRespondToAuthChallengeRequest& AddClientMetadata(const char* key, Aws::String&& value) { m_clientMetadataHasBeenSet = true; m_clientMetadata.emplace(key, std::move(value)); return *this; }
922 
950  inline AdminRespondToAuthChallengeRequest& AddClientMetadata(Aws::String&& key, const char* value) { m_clientMetadataHasBeenSet = true; m_clientMetadata.emplace(std::move(key), value); return *this; }
951 
979  inline AdminRespondToAuthChallengeRequest& AddClientMetadata(const char* key, const char* value) { m_clientMetadataHasBeenSet = true; m_clientMetadata.emplace(key, value); return *this; }
980 
981  private:
982 
983  Aws::String m_userPoolId;
984  bool m_userPoolIdHasBeenSet;
985 
986  Aws::String m_clientId;
987  bool m_clientIdHasBeenSet;
988 
989  ChallengeNameType m_challengeName;
990  bool m_challengeNameHasBeenSet;
991 
992  Aws::Map<Aws::String, Aws::String> m_challengeResponses;
993  bool m_challengeResponsesHasBeenSet;
994 
995  Aws::String m_session;
996  bool m_sessionHasBeenSet;
997 
998  AnalyticsMetadataType m_analyticsMetadata;
999  bool m_analyticsMetadataHasBeenSet;
1000 
1001  ContextDataType m_contextData;
1002  bool m_contextDataHasBeenSet;
1003 
1004  Aws::Map<Aws::String, Aws::String> m_clientMetadata;
1005  bool m_clientMetadataHasBeenSet;
1006  };
1007 
1008 } // namespace Model
1009 } // namespace CognitoIdentityProvider
1010 } // namespace Aws
AdminRespondToAuthChallengeRequest & AddClientMetadata(Aws::String &&key, Aws::String &&value)
AdminRespondToAuthChallengeRequest & WithChallengeName(const ChallengeNameType &value)
AdminRespondToAuthChallengeRequest & AddChallengeResponses(const char *key, Aws::String &&value)
AdminRespondToAuthChallengeRequest & AddChallengeResponses(Aws::String &&key, Aws::String &&value)
AdminRespondToAuthChallengeRequest & AddClientMetadata(Aws::String &&key, const char *value)
AdminRespondToAuthChallengeRequest & AddChallengeResponses(const Aws::String &key, const Aws::String &value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Definition: AWSMap.h:19
AdminRespondToAuthChallengeRequest & AddClientMetadata(Aws::String &&key, const Aws::String &value)
AdminRespondToAuthChallengeRequest & WithChallengeResponses(Aws::Map< Aws::String, Aws::String > &&value)
AdminRespondToAuthChallengeRequest & WithContextData(ContextDataType &&value)
AdminRespondToAuthChallengeRequest & WithUserPoolId(Aws::String &&value)
AdminRespondToAuthChallengeRequest & AddChallengeResponses(Aws::String &&key, const char *value)
AdminRespondToAuthChallengeRequest & AddChallengeResponses(const char *key, const char *value)
AdminRespondToAuthChallengeRequest & WithSession(const Aws::String &value)
#define AWS_COGNITOIDENTITYPROVIDER_API
AdminRespondToAuthChallengeRequest & WithChallengeName(ChallengeNameType &&value)
AdminRespondToAuthChallengeRequest & AddClientMetadata(const char *key, const char *value)
AdminRespondToAuthChallengeRequest & AddClientMetadata(const Aws::String &key, Aws::String &&value)
AdminRespondToAuthChallengeRequest & WithUserPoolId(const Aws::String &value)
AdminRespondToAuthChallengeRequest & WithAnalyticsMetadata(const AnalyticsMetadataType &value)
AdminRespondToAuthChallengeRequest & WithChallengeResponses(const Aws::Map< Aws::String, Aws::String > &value)
AdminRespondToAuthChallengeRequest & WithAnalyticsMetadata(AnalyticsMetadataType &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
AdminRespondToAuthChallengeRequest & WithContextData(const ContextDataType &value)
AdminRespondToAuthChallengeRequest & WithClientMetadata(Aws::Map< Aws::String, Aws::String > &&value)
AdminRespondToAuthChallengeRequest & AddChallengeResponses(const Aws::String &key, Aws::String &&value)
AdminRespondToAuthChallengeRequest & WithClientId(const Aws::String &value)
AdminRespondToAuthChallengeRequest & AddClientMetadata(const Aws::String &key, const Aws::String &value)
AdminRespondToAuthChallengeRequest & WithClientMetadata(const Aws::Map< Aws::String, Aws::String > &value)
AdminRespondToAuthChallengeRequest & AddClientMetadata(const char *key, Aws::String &&value)
AdminRespondToAuthChallengeRequest & AddChallengeResponses(Aws::String &&key, const Aws::String &value)