AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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:
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 inline void SetKeyId(const Aws::String& value) { m_keyIdHasBeenSet = true; m_keyId = value; }
51 inline void SetKeyId(Aws::String&& value) { m_keyIdHasBeenSet = true; m_keyId = std::move(value); }
52 inline void SetKeyId(const char* value) { m_keyIdHasBeenSet = true; m_keyId.assign(value); }
53 inline PutEncryptionConfigRequest& WithKeyId(const Aws::String& value) { SetKeyId(value); return *this;}
54 inline PutEncryptionConfigRequest& WithKeyId(Aws::String&& value) { SetKeyId(std::move(value)); return *this;}
55 inline PutEncryptionConfigRequest& WithKeyId(const char* value) { SetKeyId(value); return *this;}
57
59
63 inline const EncryptionType& GetType() const{ return m_type; }
64 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
65 inline void SetType(const EncryptionType& value) { m_typeHasBeenSet = true; m_type = value; }
66 inline void SetType(EncryptionType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
67 inline PutEncryptionConfigRequest& WithType(const EncryptionType& value) { SetType(value); return *this;}
68 inline PutEncryptionConfigRequest& WithType(EncryptionType&& value) { SetType(std::move(value)); return *this;}
70 private:
71
72 Aws::String m_keyId;
73 bool m_keyIdHasBeenSet = false;
74
75 EncryptionType m_type;
76 bool m_typeHasBeenSet = false;
77 };
78
79} // namespace Model
80} // namespace XRay
81} // namespace Aws
PutEncryptionConfigRequest & WithType(const EncryptionType &value)
PutEncryptionConfigRequest & WithType(EncryptionType &&value)
PutEncryptionConfigRequest & WithKeyId(Aws::String &&value)
AWS_XRAY_API Aws::String SerializePayload() const override
virtual const char * GetServiceRequestName() const override
PutEncryptionConfigRequest & WithKeyId(const char *value)
PutEncryptionConfigRequest & WithKeyId(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String