AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetKmsKeyId(const Aws::String& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = value; }
44 inline void SetKmsKeyId(Aws::String&& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = std::move(value); }
45 inline void SetKmsKeyId(const char* value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId.assign(value); }
46 inline UpdateEncryptionKeyRequest& WithKmsKeyId(const Aws::String& value) { SetKmsKeyId(value); return *this;}
47 inline UpdateEncryptionKeyRequest& WithKmsKeyId(Aws::String&& value) { SetKmsKeyId(std::move(value)); return *this;}
48 inline UpdateEncryptionKeyRequest& WithKmsKeyId(const char* value) { SetKmsKeyId(value); return *this;}
50
52
55 inline const ResourceType& GetResourceType() const{ return m_resourceType; }
56 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
57 inline void SetResourceType(const ResourceType& value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; }
58 inline void SetResourceType(ResourceType&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::move(value); }
59 inline UpdateEncryptionKeyRequest& WithResourceType(const ResourceType& value) { SetResourceType(value); return *this;}
60 inline UpdateEncryptionKeyRequest& WithResourceType(ResourceType&& value) { SetResourceType(std::move(value)); return *this;}
62
64
67 inline const ScanType& GetScanType() const{ return m_scanType; }
68 inline bool ScanTypeHasBeenSet() const { return m_scanTypeHasBeenSet; }
69 inline void SetScanType(const ScanType& value) { m_scanTypeHasBeenSet = true; m_scanType = value; }
70 inline void SetScanType(ScanType&& value) { m_scanTypeHasBeenSet = true; m_scanType = std::move(value); }
71 inline UpdateEncryptionKeyRequest& WithScanType(const ScanType& value) { SetScanType(value); return *this;}
72 inline UpdateEncryptionKeyRequest& WithScanType(ScanType&& value) { SetScanType(std::move(value)); return *this;}
74 private:
75
76 Aws::String m_kmsKeyId;
77 bool m_kmsKeyIdHasBeenSet = false;
78
79 ResourceType m_resourceType;
80 bool m_resourceTypeHasBeenSet = false;
81
82 ScanType m_scanType;
83 bool m_scanTypeHasBeenSet = false;
84 };
85
86} // namespace Model
87} // namespace Inspector2
88} // namespace Aws
UpdateEncryptionKeyRequest & WithKmsKeyId(Aws::String &&value)
UpdateEncryptionKeyRequest & WithKmsKeyId(const char *value)
UpdateEncryptionKeyRequest & WithScanType(const ScanType &value)
virtual const char * GetServiceRequestName() const override
UpdateEncryptionKeyRequest & WithScanType(ScanType &&value)
AWS_INSPECTOR2_API Aws::String SerializePayload() const override
UpdateEncryptionKeyRequest & WithKmsKeyId(const Aws::String &value)
UpdateEncryptionKeyRequest & WithResourceType(ResourceType &&value)
UpdateEncryptionKeyRequest & WithResourceType(const ResourceType &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String