AWS SDK for C++

AWS SDK for C++ Version 1.11.637

Loading...
Searching...
No Matches
CreateResourceSnapshotRequest.h
1
6#pragma once
7#include <aws/partnercentral-selling/PartnerCentralSelling_EXPORTS.h>
8#include <aws/partnercentral-selling/PartnerCentralSellingRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/partnercentral-selling/model/ResourceType.h>
11#include <utility>
12#include <aws/core/utils/UUID.h>
13
14namespace Aws
15{
16namespace PartnerCentralSelling
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_PARTNERCENTRALSELLING_API CreateResourceSnapshotRequest() = 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 "CreateResourceSnapshot"; }
33
34 AWS_PARTNERCENTRALSELLING_API Aws::String SerializePayload() const override;
35
36 AWS_PARTNERCENTRALSELLING_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
37
38
40
44 inline const Aws::String& GetCatalog() const { return m_catalog; }
45 inline bool CatalogHasBeenSet() const { return m_catalogHasBeenSet; }
46 template<typename CatalogT = Aws::String>
47 void SetCatalog(CatalogT&& value) { m_catalogHasBeenSet = true; m_catalog = std::forward<CatalogT>(value); }
48 template<typename CatalogT = Aws::String>
49 CreateResourceSnapshotRequest& WithCatalog(CatalogT&& value) { SetCatalog(std::forward<CatalogT>(value)); return *this;}
51
53
57 inline const Aws::String& GetEngagementIdentifier() const { return m_engagementIdentifier; }
58 inline bool EngagementIdentifierHasBeenSet() const { return m_engagementIdentifierHasBeenSet; }
59 template<typename EngagementIdentifierT = Aws::String>
60 void SetEngagementIdentifier(EngagementIdentifierT&& value) { m_engagementIdentifierHasBeenSet = true; m_engagementIdentifier = std::forward<EngagementIdentifierT>(value); }
61 template<typename EngagementIdentifierT = Aws::String>
62 CreateResourceSnapshotRequest& WithEngagementIdentifier(EngagementIdentifierT&& value) { SetEngagementIdentifier(std::forward<EngagementIdentifierT>(value)); return *this;}
64
66
71 inline ResourceType GetResourceType() const { return m_resourceType; }
72 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
73 inline void SetResourceType(ResourceType value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; }
76
78
84 inline const Aws::String& GetResourceIdentifier() const { return m_resourceIdentifier; }
85 inline bool ResourceIdentifierHasBeenSet() const { return m_resourceIdentifierHasBeenSet; }
86 template<typename ResourceIdentifierT = Aws::String>
87 void SetResourceIdentifier(ResourceIdentifierT&& value) { m_resourceIdentifierHasBeenSet = true; m_resourceIdentifier = std::forward<ResourceIdentifierT>(value); }
88 template<typename ResourceIdentifierT = Aws::String>
89 CreateResourceSnapshotRequest& WithResourceIdentifier(ResourceIdentifierT&& value) { SetResourceIdentifier(std::forward<ResourceIdentifierT>(value)); return *this;}
91
93
99 inline const Aws::String& GetResourceSnapshotTemplateIdentifier() const { return m_resourceSnapshotTemplateIdentifier; }
100 inline bool ResourceSnapshotTemplateIdentifierHasBeenSet() const { return m_resourceSnapshotTemplateIdentifierHasBeenSet; }
101 template<typename ResourceSnapshotTemplateIdentifierT = Aws::String>
102 void SetResourceSnapshotTemplateIdentifier(ResourceSnapshotTemplateIdentifierT&& value) { m_resourceSnapshotTemplateIdentifierHasBeenSet = true; m_resourceSnapshotTemplateIdentifier = std::forward<ResourceSnapshotTemplateIdentifierT>(value); }
103 template<typename ResourceSnapshotTemplateIdentifierT = Aws::String>
104 CreateResourceSnapshotRequest& WithResourceSnapshotTemplateIdentifier(ResourceSnapshotTemplateIdentifierT&& value) { SetResourceSnapshotTemplateIdentifier(std::forward<ResourceSnapshotTemplateIdentifierT>(value)); return *this;}
106
108
113 inline const Aws::String& GetClientToken() const { return m_clientToken; }
114 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
115 template<typename ClientTokenT = Aws::String>
116 void SetClientToken(ClientTokenT&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::forward<ClientTokenT>(value); }
117 template<typename ClientTokenT = Aws::String>
118 CreateResourceSnapshotRequest& WithClientToken(ClientTokenT&& value) { SetClientToken(std::forward<ClientTokenT>(value)); return *this;}
120 private:
121
122 Aws::String m_catalog;
123 bool m_catalogHasBeenSet = false;
124
125 Aws::String m_engagementIdentifier;
126 bool m_engagementIdentifierHasBeenSet = false;
127
128 ResourceType m_resourceType{ResourceType::NOT_SET};
129 bool m_resourceTypeHasBeenSet = false;
130
131 Aws::String m_resourceIdentifier;
132 bool m_resourceIdentifierHasBeenSet = false;
133
134 Aws::String m_resourceSnapshotTemplateIdentifier;
135 bool m_resourceSnapshotTemplateIdentifierHasBeenSet = false;
136
138 bool m_clientTokenHasBeenSet = true;
139 };
140
141} // namespace Model
142} // namespace PartnerCentralSelling
143} // namespace Aws
AWS_PARTNERCENTRALSELLING_API Aws::String SerializePayload() const override
CreateResourceSnapshotRequest & WithClientToken(ClientTokenT &&value)
CreateResourceSnapshotRequest & WithResourceType(ResourceType value)
AWS_PARTNERCENTRALSELLING_API CreateResourceSnapshotRequest()=default
void SetResourceSnapshotTemplateIdentifier(ResourceSnapshotTemplateIdentifierT &&value)
AWS_PARTNERCENTRALSELLING_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateResourceSnapshotRequest & WithResourceSnapshotTemplateIdentifier(ResourceSnapshotTemplateIdentifierT &&value)
CreateResourceSnapshotRequest & WithEngagementIdentifier(EngagementIdentifierT &&value)
CreateResourceSnapshotRequest & WithResourceIdentifier(ResourceIdentifierT &&value)
static Aws::Utils::UUID PseudoRandomUUID()
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String