AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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:
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 inline void SetInstanceId(const Aws::String& value) { m_instanceIdHasBeenSet = true; m_instanceId = value; }
48 inline void SetInstanceId(Aws::String&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::move(value); }
49 inline void SetInstanceId(const char* value) { m_instanceIdHasBeenSet = true; m_instanceId.assign(value); }
50 inline GetInstanceTpmEkPubRequest& WithInstanceId(const Aws::String& value) { SetInstanceId(value); return *this;}
51 inline GetInstanceTpmEkPubRequest& WithInstanceId(Aws::String&& value) { SetInstanceId(std::move(value)); return *this;}
52 inline GetInstanceTpmEkPubRequest& WithInstanceId(const char* value) { SetInstanceId(value); return *this;}
54
56
59 inline const EkPubKeyType& GetKeyType() const{ return m_keyType; }
60 inline bool KeyTypeHasBeenSet() const { return m_keyTypeHasBeenSet; }
61 inline void SetKeyType(const EkPubKeyType& value) { m_keyTypeHasBeenSet = true; m_keyType = value; }
62 inline void SetKeyType(EkPubKeyType&& value) { m_keyTypeHasBeenSet = true; m_keyType = std::move(value); }
63 inline GetInstanceTpmEkPubRequest& WithKeyType(const EkPubKeyType& value) { SetKeyType(value); return *this;}
64 inline GetInstanceTpmEkPubRequest& WithKeyType(EkPubKeyType&& value) { SetKeyType(std::move(value)); return *this;}
66
68
74 inline const EkPubKeyFormat& GetKeyFormat() const{ return m_keyFormat; }
75 inline bool KeyFormatHasBeenSet() const { return m_keyFormatHasBeenSet; }
76 inline void SetKeyFormat(const EkPubKeyFormat& value) { m_keyFormatHasBeenSet = true; m_keyFormat = value; }
77 inline void SetKeyFormat(EkPubKeyFormat&& value) { m_keyFormatHasBeenSet = true; m_keyFormat = std::move(value); }
78 inline GetInstanceTpmEkPubRequest& WithKeyFormat(const EkPubKeyFormat& value) { SetKeyFormat(value); return *this;}
79 inline GetInstanceTpmEkPubRequest& WithKeyFormat(EkPubKeyFormat&& value) { SetKeyFormat(std::move(value)); return *this;}
81
83
89 inline bool GetDryRun() const{ return m_dryRun; }
90 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
91 inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
92 inline GetInstanceTpmEkPubRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
94 private:
95
96 Aws::String m_instanceId;
97 bool m_instanceIdHasBeenSet = false;
98
99 EkPubKeyType m_keyType;
100 bool m_keyTypeHasBeenSet = false;
101
102 EkPubKeyFormat m_keyFormat;
103 bool m_keyFormatHasBeenSet = false;
104
105 bool m_dryRun;
106 bool m_dryRunHasBeenSet = false;
107 };
108
109} // namespace Model
110} // namespace EC2
111} // namespace Aws
GetInstanceTpmEkPubRequest & WithKeyType(EkPubKeyType &&value)
AWS_EC2_API Aws::String SerializePayload() const override
GetInstanceTpmEkPubRequest & WithInstanceId(Aws::String &&value)
GetInstanceTpmEkPubRequest & WithKeyType(const EkPubKeyType &value)
virtual const char * GetServiceRequestName() const override
GetInstanceTpmEkPubRequest & WithDryRun(bool value)
GetInstanceTpmEkPubRequest & WithKeyFormat(EkPubKeyFormat &&value)
GetInstanceTpmEkPubRequest & WithInstanceId(const char *value)
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
GetInstanceTpmEkPubRequest & WithInstanceId(const Aws::String &value)
GetInstanceTpmEkPubRequest & WithKeyFormat(const EkPubKeyFormat &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String