AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
GetInstanceTpmEkPubRequest.h
1
6#pragma once
7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/ec2/EC2Request.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/ec2/model/EkPubKeyType.h>
11#include <aws/ec2/model/EkPubKeyFormat.h>
12#include <utility>
13
14namespace Aws
15{
16namespace EC2
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_EC2_API GetInstanceTpmEkPubRequest() = 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 "GetInstanceTpmEkPub"; }
33
34 AWS_EC2_API Aws::String SerializePayload() const override;
35
36 protected:
37 AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
38
39 public:
40
42
45 inline const Aws::String& GetInstanceId() const { return m_instanceId; }
46 inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
47 template<typename InstanceIdT = Aws::String>
48 void SetInstanceId(InstanceIdT&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::forward<InstanceIdT>(value); }
49 template<typename InstanceIdT = Aws::String>
50 GetInstanceTpmEkPubRequest& WithInstanceId(InstanceIdT&& value) { SetInstanceId(std::forward<InstanceIdT>(value)); return *this;}
52
54
57 inline EkPubKeyType GetKeyType() const { return m_keyType; }
58 inline bool KeyTypeHasBeenSet() const { return m_keyTypeHasBeenSet; }
59 inline void SetKeyType(EkPubKeyType value) { m_keyTypeHasBeenSet = true; m_keyType = value; }
60 inline GetInstanceTpmEkPubRequest& WithKeyType(EkPubKeyType value) { SetKeyType(value); return *this;}
62
64
70 inline EkPubKeyFormat GetKeyFormat() const { return m_keyFormat; }
71 inline bool KeyFormatHasBeenSet() const { return m_keyFormatHasBeenSet; }
72 inline void SetKeyFormat(EkPubKeyFormat value) { m_keyFormatHasBeenSet = true; m_keyFormat = value; }
75
77
83 inline bool GetDryRun() const { return m_dryRun; }
84 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
85 inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
86 inline GetInstanceTpmEkPubRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
88 private:
89
90 Aws::String m_instanceId;
91 bool m_instanceIdHasBeenSet = false;
92
94 bool m_keyTypeHasBeenSet = false;
95
97 bool m_keyFormatHasBeenSet = false;
98
99 bool m_dryRun{false};
100 bool m_dryRunHasBeenSet = false;
101 };
102
103} // namespace Model
104} // namespace EC2
105} // namespace Aws
AWS_EC2_API Aws::String SerializePayload() const override
GetInstanceTpmEkPubRequest & WithInstanceId(InstanceIdT &&value)
GetInstanceTpmEkPubRequest & WithKeyType(EkPubKeyType value)
AWS_EC2_API GetInstanceTpmEkPubRequest()=default
virtual const char * GetServiceRequestName() const override
GetInstanceTpmEkPubRequest & WithDryRun(bool value)
GetInstanceTpmEkPubRequest & WithKeyFormat(EkPubKeyFormat value)
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String