AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
UpdateEncryptionKeyRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/inspector2/Inspector2Request.h>
9#include <aws/inspector2/Inspector2_EXPORTS.h>
10#include <aws/inspector2/model/ResourceType.h>
11#include <aws/inspector2/model/ScanType.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Inspector2 {
17namespace Model {
18
22 public:
23 AWS_INSPECTOR2_API UpdateEncryptionKeyRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "UpdateEncryptionKey"; }
30
31 AWS_INSPECTOR2_API Aws::String SerializePayload() const override;
32
34
37 inline const Aws::String& GetKmsKeyId() const { return m_kmsKeyId; }
38 inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
39 template <typename KmsKeyIdT = Aws::String>
40 void SetKmsKeyId(KmsKeyIdT&& value) {
41 m_kmsKeyIdHasBeenSet = true;
42 m_kmsKeyId = std::forward<KmsKeyIdT>(value);
43 }
44 template <typename KmsKeyIdT = Aws::String>
46 SetKmsKeyId(std::forward<KmsKeyIdT>(value));
47 return *this;
48 }
50
52
55 inline ScanType GetScanType() const { return m_scanType; }
56 inline bool ScanTypeHasBeenSet() const { return m_scanTypeHasBeenSet; }
57 inline void SetScanType(ScanType value) {
58 m_scanTypeHasBeenSet = true;
59 m_scanType = value;
60 }
62 SetScanType(value);
63 return *this;
64 }
66
68
71 inline ResourceType GetResourceType() const { return m_resourceType; }
72 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
73 inline void SetResourceType(ResourceType value) {
74 m_resourceTypeHasBeenSet = true;
75 m_resourceType = value;
76 }
78 SetResourceType(value);
79 return *this;
80 }
82 private:
83 Aws::String m_kmsKeyId;
84
85 ScanType m_scanType{ScanType::NOT_SET};
86
87 ResourceType m_resourceType{ResourceType::NOT_SET};
88 bool m_kmsKeyIdHasBeenSet = false;
89 bool m_scanTypeHasBeenSet = false;
90 bool m_resourceTypeHasBeenSet = false;
91};
92
93} // namespace Model
94} // namespace Inspector2
95} // namespace Aws
virtual const char * GetServiceRequestName() const override
UpdateEncryptionKeyRequest & WithResourceType(ResourceType value)
AWS_INSPECTOR2_API Aws::String SerializePayload() const override
AWS_INSPECTOR2_API UpdateEncryptionKeyRequest()=default
UpdateEncryptionKeyRequest & WithScanType(ScanType value)
UpdateEncryptionKeyRequest & WithKmsKeyId(KmsKeyIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String