AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
UpdateEncryptionKeyRequest.h
1
6#pragma once
7#include <aws/inspector2/Inspector2_EXPORTS.h>
8#include <aws/inspector2/Inspector2Request.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/inspector2/model/ResourceType.h>
11#include <aws/inspector2/model/ScanType.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Inspector2
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_INSPECTOR2_API UpdateEncryptionKeyRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "UpdateEncryptionKey"; }
33
34 AWS_INSPECTOR2_API Aws::String SerializePayload() const override;
35
36
38
41 inline const Aws::String& GetKmsKeyId() const { return m_kmsKeyId; }
42 inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
43 template<typename KmsKeyIdT = Aws::String>
44 void SetKmsKeyId(KmsKeyIdT&& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = std::forward<KmsKeyIdT>(value); }
45 template<typename KmsKeyIdT = Aws::String>
46 UpdateEncryptionKeyRequest& WithKmsKeyId(KmsKeyIdT&& value) { SetKmsKeyId(std::forward<KmsKeyIdT>(value)); return *this;}
48
50
53 inline ResourceType GetResourceType() const { return m_resourceType; }
54 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
55 inline void SetResourceType(ResourceType value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; }
58
60
63 inline ScanType GetScanType() const { return m_scanType; }
64 inline bool ScanTypeHasBeenSet() const { return m_scanTypeHasBeenSet; }
65 inline void SetScanType(ScanType value) { m_scanTypeHasBeenSet = true; m_scanType = value; }
66 inline UpdateEncryptionKeyRequest& WithScanType(ScanType value) { SetScanType(value); return *this;}
68 private:
69
70 Aws::String m_kmsKeyId;
71 bool m_kmsKeyIdHasBeenSet = false;
72
73 ResourceType m_resourceType{ResourceType::NOT_SET};
74 bool m_resourceTypeHasBeenSet = false;
75
76 ScanType m_scanType{ScanType::NOT_SET};
77 bool m_scanTypeHasBeenSet = false;
78 };
79
80} // namespace Model
81} // namespace Inspector2
82} // 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