AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
GetEncryptionKeyRequest.h
1
6#pragma once
7#include <aws/inspector2/Inspector2_EXPORTS.h>
8#include <aws/inspector2/Inspector2Request.h>
9#include <aws/inspector2/model/ResourceType.h>
10#include <aws/inspector2/model/ScanType.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Http
16{
17 class URI;
18} //namespace Http
19namespace Inspector2
20{
21namespace Model
22{
23
27 {
28 public:
29 AWS_INSPECTOR2_API GetEncryptionKeyRequest();
30
31 // Service request name is the Operation name which will send this request out,
32 // each operation should has unique request name, so that we can get operation's name from this request.
33 // Note: this is not true for response, multiple operations may have the same response name,
34 // so we can not get operation's name from response.
35 inline virtual const char* GetServiceRequestName() const override { return "GetEncryptionKey"; }
36
37 AWS_INSPECTOR2_API Aws::String SerializePayload() const override;
38
39 AWS_INSPECTOR2_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
40
41
43
46 inline const ResourceType& GetResourceType() const{ return m_resourceType; }
47 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
48 inline void SetResourceType(const ResourceType& value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; }
49 inline void SetResourceType(ResourceType&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::move(value); }
50 inline GetEncryptionKeyRequest& WithResourceType(const ResourceType& value) { SetResourceType(value); return *this;}
51 inline GetEncryptionKeyRequest& WithResourceType(ResourceType&& value) { SetResourceType(std::move(value)); return *this;}
53
55
58 inline const ScanType& GetScanType() const{ return m_scanType; }
59 inline bool ScanTypeHasBeenSet() const { return m_scanTypeHasBeenSet; }
60 inline void SetScanType(const ScanType& value) { m_scanTypeHasBeenSet = true; m_scanType = value; }
61 inline void SetScanType(ScanType&& value) { m_scanTypeHasBeenSet = true; m_scanType = std::move(value); }
62 inline GetEncryptionKeyRequest& WithScanType(const ScanType& value) { SetScanType(value); return *this;}
63 inline GetEncryptionKeyRequest& WithScanType(ScanType&& value) { SetScanType(std::move(value)); return *this;}
65 private:
66
67 ResourceType m_resourceType;
68 bool m_resourceTypeHasBeenSet = false;
69
70 ScanType m_scanType;
71 bool m_scanTypeHasBeenSet = false;
72 };
73
74} // namespace Model
75} // namespace Inspector2
76} // namespace Aws
GetEncryptionKeyRequest & WithResourceType(ResourceType &&value)
GetEncryptionKeyRequest & WithResourceType(const ResourceType &value)
AWS_INSPECTOR2_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
AWS_INSPECTOR2_API Aws::String SerializePayload() const override
GetEncryptionKeyRequest & WithScanType(const ScanType &value)
virtual const char * GetServiceRequestName() const override
GetEncryptionKeyRequest & WithScanType(ScanType &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String