AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateAliasRequest.h
1
6#pragma once
7#include <aws/kms/KMS_EXPORTS.h>
8#include <aws/kms/KMSRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace KMS
15{
16namespace Model
17{
18
22 {
23 public:
24 AWS_KMS_API CreateAliasRequest();
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "CreateAlias"; }
31
32 AWS_KMS_API Aws::String SerializePayload() const override;
33
35
36
38
50 inline const Aws::String& GetAliasName() const{ return m_aliasName; }
51 inline bool AliasNameHasBeenSet() const { return m_aliasNameHasBeenSet; }
52 inline void SetAliasName(const Aws::String& value) { m_aliasNameHasBeenSet = true; m_aliasName = value; }
53 inline void SetAliasName(Aws::String&& value) { m_aliasNameHasBeenSet = true; m_aliasName = std::move(value); }
54 inline void SetAliasName(const char* value) { m_aliasNameHasBeenSet = true; m_aliasName.assign(value); }
55 inline CreateAliasRequest& WithAliasName(const Aws::String& value) { SetAliasName(value); return *this;}
56 inline CreateAliasRequest& WithAliasName(Aws::String&& value) { SetAliasName(std::move(value)); return *this;}
57 inline CreateAliasRequest& WithAliasName(const char* value) { SetAliasName(value); return *this;}
59
61
77 inline const Aws::String& GetTargetKeyId() const{ return m_targetKeyId; }
78 inline bool TargetKeyIdHasBeenSet() const { return m_targetKeyIdHasBeenSet; }
79 inline void SetTargetKeyId(const Aws::String& value) { m_targetKeyIdHasBeenSet = true; m_targetKeyId = value; }
80 inline void SetTargetKeyId(Aws::String&& value) { m_targetKeyIdHasBeenSet = true; m_targetKeyId = std::move(value); }
81 inline void SetTargetKeyId(const char* value) { m_targetKeyIdHasBeenSet = true; m_targetKeyId.assign(value); }
82 inline CreateAliasRequest& WithTargetKeyId(const Aws::String& value) { SetTargetKeyId(value); return *this;}
83 inline CreateAliasRequest& WithTargetKeyId(Aws::String&& value) { SetTargetKeyId(std::move(value)); return *this;}
84 inline CreateAliasRequest& WithTargetKeyId(const char* value) { SetTargetKeyId(value); return *this;}
86 private:
87
88 Aws::String m_aliasName;
89 bool m_aliasNameHasBeenSet = false;
90
91 Aws::String m_targetKeyId;
92 bool m_targetKeyIdHasBeenSet = false;
93 };
94
95} // namespace Model
96} // namespace KMS
97} // namespace Aws
CreateAliasRequest & WithTargetKeyId(Aws::String &&value)
AWS_KMS_API Aws::String SerializePayload() const override
CreateAliasRequest & WithTargetKeyId(const char *value)
CreateAliasRequest & WithAliasName(const char *value)
AWS_KMS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
void SetTargetKeyId(const Aws::String &value)
CreateAliasRequest & WithAliasName(const Aws::String &value)
const Aws::String & GetAliasName() const
void SetAliasName(Aws::String &&value)
virtual const char * GetServiceRequestName() const override
CreateAliasRequest & WithAliasName(Aws::String &&value)
const Aws::String & GetTargetKeyId() const
void SetTargetKeyId(Aws::String &&value)
void SetAliasName(const Aws::String &value)
CreateAliasRequest & WithTargetKeyId(const Aws::String &value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String