AWS SDK for C++

AWS SDK for C++ Version 1.11.695

Loading...
Searching...
No Matches
PutEncryptionConfigRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/xray/XRayRequest.h>
9#include <aws/xray/XRay_EXPORTS.h>
10#include <aws/xray/model/EncryptionType.h>
11
12#include <utility>
13
14namespace Aws {
15namespace XRay {
16namespace Model {
17
21 public:
22 AWS_XRAY_API PutEncryptionConfigRequest() = 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 "PutEncryptionConfig"; }
29
30 AWS_XRAY_API Aws::String SerializePayload() const override;
31
33
44 inline const Aws::String& GetKeyId() const { return m_keyId; }
45 inline bool KeyIdHasBeenSet() const { return m_keyIdHasBeenSet; }
46 template <typename KeyIdT = Aws::String>
47 void SetKeyId(KeyIdT&& value) {
48 m_keyIdHasBeenSet = true;
49 m_keyId = std::forward<KeyIdT>(value);
50 }
51 template <typename KeyIdT = Aws::String>
53 SetKeyId(std::forward<KeyIdT>(value));
54 return *this;
55 }
57
59
63 inline EncryptionType GetType() const { return m_type; }
64 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
65 inline void SetType(EncryptionType value) {
66 m_typeHasBeenSet = true;
67 m_type = value;
68 }
70 SetType(value);
71 return *this;
72 }
74 private:
75 Aws::String m_keyId;
76 bool m_keyIdHasBeenSet = false;
77
79 bool m_typeHasBeenSet = false;
80};
81
82} // namespace Model
83} // namespace XRay
84} // namespace Aws
PutEncryptionConfigRequest & WithKeyId(KeyIdT &&value)
AWS_XRAY_API PutEncryptionConfigRequest()=default
AWS_XRAY_API Aws::String SerializePayload() const override
PutEncryptionConfigRequest & WithType(EncryptionType value)
virtual const char * GetServiceRequestName() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String