AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateGatewayRequest.h
1
6#pragma once
7#include <aws/backup-gateway/BackupGateway_EXPORTS.h>
8#include <aws/backup-gateway/BackupGatewayRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/backup-gateway/model/GatewayType.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/backup-gateway/model/Tag.h>
13#include <utility>
14
15namespace Aws
16{
17namespace BackupGateway
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_BACKUPGATEWAY_API CreateGatewayRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "CreateGateway"; }
34
35 AWS_BACKUPGATEWAY_API Aws::String SerializePayload() const override;
36
37 AWS_BACKUPGATEWAY_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
38
39
41
44 inline const Aws::String& GetActivationKey() const { return m_activationKey; }
45 inline bool ActivationKeyHasBeenSet() const { return m_activationKeyHasBeenSet; }
46 template<typename ActivationKeyT = Aws::String>
47 void SetActivationKey(ActivationKeyT&& value) { m_activationKeyHasBeenSet = true; m_activationKey = std::forward<ActivationKeyT>(value); }
48 template<typename ActivationKeyT = Aws::String>
49 CreateGatewayRequest& WithActivationKey(ActivationKeyT&& value) { SetActivationKey(std::forward<ActivationKeyT>(value)); return *this;}
51
53
56 inline const Aws::String& GetGatewayDisplayName() const { return m_gatewayDisplayName; }
57 inline bool GatewayDisplayNameHasBeenSet() const { return m_gatewayDisplayNameHasBeenSet; }
58 template<typename GatewayDisplayNameT = Aws::String>
59 void SetGatewayDisplayName(GatewayDisplayNameT&& value) { m_gatewayDisplayNameHasBeenSet = true; m_gatewayDisplayName = std::forward<GatewayDisplayNameT>(value); }
60 template<typename GatewayDisplayNameT = Aws::String>
61 CreateGatewayRequest& WithGatewayDisplayName(GatewayDisplayNameT&& value) { SetGatewayDisplayName(std::forward<GatewayDisplayNameT>(value)); return *this;}
63
65
68 inline GatewayType GetGatewayType() const { return m_gatewayType; }
69 inline bool GatewayTypeHasBeenSet() const { return m_gatewayTypeHasBeenSet; }
70 inline void SetGatewayType(GatewayType value) { m_gatewayTypeHasBeenSet = true; m_gatewayType = value; }
71 inline CreateGatewayRequest& WithGatewayType(GatewayType value) { SetGatewayType(value); return *this;}
73
75
79 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
80 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
81 template<typename TagsT = Aws::Vector<Tag>>
82 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
83 template<typename TagsT = Aws::Vector<Tag>>
84 CreateGatewayRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
85 template<typename TagsT = Tag>
86 CreateGatewayRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
88 private:
89
90 Aws::String m_activationKey;
91 bool m_activationKeyHasBeenSet = false;
92
93 Aws::String m_gatewayDisplayName;
94 bool m_gatewayDisplayNameHasBeenSet = false;
95
96 GatewayType m_gatewayType{GatewayType::NOT_SET};
97 bool m_gatewayTypeHasBeenSet = false;
98
99 Aws::Vector<Tag> m_tags;
100 bool m_tagsHasBeenSet = false;
101 };
102
103} // namespace Model
104} // namespace BackupGateway
105} // namespace Aws
virtual const char * GetServiceRequestName() const override
CreateGatewayRequest & AddTags(TagsT &&value)
AWS_BACKUPGATEWAY_API CreateGatewayRequest()=default
AWS_BACKUPGATEWAY_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
void SetGatewayDisplayName(GatewayDisplayNameT &&value)
CreateGatewayRequest & WithTags(TagsT &&value)
CreateGatewayRequest & WithGatewayDisplayName(GatewayDisplayNameT &&value)
CreateGatewayRequest & WithGatewayType(GatewayType value)
CreateGatewayRequest & WithActivationKey(ActivationKeyT &&value)
AWS_BACKUPGATEWAY_API Aws::String SerializePayload() const override
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector