AWS SDK for C++

AWS SDK for C++ Version 1.11.942

Loading...
Searching...
No Matches
RevokeApiKeyRequest.h
1
6#pragma once
7#include <aws/amplifygen3/AmplifyGen3Request.h>
8#include <aws/amplifygen3/AmplifyGen3_EXPORTS.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10
11#include <utility>
12
13namespace Aws {
14namespace AmplifyGen3 {
15namespace Model {
16
20 public:
21 AWS_AMPLIFYGEN3_API RevokeApiKeyRequest() = default;
22
23 // Service request name is the Operation name which will send this request out,
24 // each operation should has unique request name, so that we can get operation's name from this request.
25 // Note: this is not true for response, multiple operations may have the same response name,
26 // so we can not get operation's name from response.
27 inline virtual const char* GetServiceRequestName() const override { return "RevokeApiKey"; }
28
29 AWS_AMPLIFYGEN3_API Aws::String SerializePayload() const override;
30
32
35 inline const Aws::String& GetBranchArn() const { return m_branchArn; }
36 inline bool BranchArnHasBeenSet() const { return m_branchArnHasBeenSet; }
37 template <typename BranchArnT = Aws::String>
38 void SetBranchArn(BranchArnT&& value) {
39 m_branchArnHasBeenSet = true;
40 m_branchArn = std::forward<BranchArnT>(value);
41 }
42 template <typename BranchArnT = Aws::String>
43 RevokeApiKeyRequest& WithBranchArn(BranchArnT&& value) {
44 SetBranchArn(std::forward<BranchArnT>(value));
45 return *this;
46 }
48
50
53 inline const Aws::String& GetApiKeyId() const { return m_apiKeyId; }
54 inline bool ApiKeyIdHasBeenSet() const { return m_apiKeyIdHasBeenSet; }
55 template <typename ApiKeyIdT = Aws::String>
56 void SetApiKeyId(ApiKeyIdT&& value) {
57 m_apiKeyIdHasBeenSet = true;
58 m_apiKeyId = std::forward<ApiKeyIdT>(value);
59 }
60 template <typename ApiKeyIdT = Aws::String>
61 RevokeApiKeyRequest& WithApiKeyId(ApiKeyIdT&& value) {
62 SetApiKeyId(std::forward<ApiKeyIdT>(value));
63 return *this;
64 }
66 private:
67 Aws::String m_branchArn;
68
69 Aws::String m_apiKeyId;
70 bool m_branchArnHasBeenSet = false;
71 bool m_apiKeyIdHasBeenSet = false;
72};
73
74} // namespace Model
75} // namespace AmplifyGen3
76} // namespace Aws
AWS_AMPLIFYGEN3_API RevokeApiKeyRequest()=default
RevokeApiKeyRequest & WithApiKeyId(ApiKeyIdT &&value)
AWS_AMPLIFYGEN3_API Aws::String SerializePayload() const override
RevokeApiKeyRequest & WithBranchArn(BranchArnT &&value)
virtual const char * GetServiceRequestName() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String