AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
PutEncryptionConfigRequest.h
1
6#pragma once
7#include <aws/xray/XRay_EXPORTS.h>
8#include <aws/xray/XRayRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/xray/model/EncryptionType.h>
11#include <utility>
12
13namespace Aws
14{
15namespace XRay
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_XRAY_API PutEncryptionConfigRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "PutEncryptionConfig"; }
32
33 AWS_XRAY_API Aws::String SerializePayload() const override;
34
35
37
48 inline const Aws::String& GetKeyId() const { return m_keyId; }
49 inline bool KeyIdHasBeenSet() const { return m_keyIdHasBeenSet; }
50 template<typename KeyIdT = Aws::String>
51 void SetKeyId(KeyIdT&& value) { m_keyIdHasBeenSet = true; m_keyId = std::forward<KeyIdT>(value); }
52 template<typename KeyIdT = Aws::String>
53 PutEncryptionConfigRequest& WithKeyId(KeyIdT&& value) { SetKeyId(std::forward<KeyIdT>(value)); return *this;}
55
57
61 inline EncryptionType GetType() const { return m_type; }
62 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
63 inline void SetType(EncryptionType value) { m_typeHasBeenSet = true; m_type = value; }
64 inline PutEncryptionConfigRequest& WithType(EncryptionType value) { SetType(value); return *this;}
66 private:
67
68 Aws::String m_keyId;
69 bool m_keyIdHasBeenSet = false;
70
72 bool m_typeHasBeenSet = false;
73 };
74
75} // namespace Model
76} // namespace XRay
77} // 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