AWS SDK for C++

AWS SDK for C++ Version 1.11.612

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
58 inline const Aws::String& GetClientToken() const { return m_clientToken; }
59 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
60 template<typename ClientTokenT = Aws::String>
61 void SetClientToken(ClientTokenT&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::forward<ClientTokenT>(value); }
62 template<typename ClientTokenT = Aws::String>
63 CreateResourceSnapshotRequest& WithClientToken(ClientTokenT&& value) { SetClientToken(std::forward<ClientTokenT>(value)); return *this;}
65
67
71 inline const Aws::String& GetEngagementIdentifier() const { return m_engagementIdentifier; }
72 inline bool EngagementIdentifierHasBeenSet() const { return m_engagementIdentifierHasBeenSet; }
73 template<typename EngagementIdentifierT = Aws::String>
74 void SetEngagementIdentifier(EngagementIdentifierT&& value) { m_engagementIdentifierHasBeenSet = true; m_engagementIdentifier = std::forward<EngagementIdentifierT>(value); }
75 template<typename EngagementIdentifierT = Aws::String>
76 CreateResourceSnapshotRequest& WithEngagementIdentifier(EngagementIdentifierT&& value) { SetEngagementIdentifier(std::forward<EngagementIdentifierT>(value)); return *this;}
78
80
86 inline const Aws::String& GetResourceIdentifier() const { return m_resourceIdentifier; }
87 inline bool ResourceIdentifierHasBeenSet() const { return m_resourceIdentifierHasBeenSet; }
88 template<typename ResourceIdentifierT = Aws::String>
89 void SetResourceIdentifier(ResourceIdentifierT&& value) { m_resourceIdentifierHasBeenSet = true; m_resourceIdentifier = std::forward<ResourceIdentifierT>(value); }
90 template<typename ResourceIdentifierT = Aws::String>
91 CreateResourceSnapshotRequest& WithResourceIdentifier(ResourceIdentifierT&& value) { SetResourceIdentifier(std::forward<ResourceIdentifierT>(value)); return *this;}
93
95
101 inline const Aws::String& GetResourceSnapshotTemplateIdentifier() const { return m_resourceSnapshotTemplateIdentifier; }
102 inline bool ResourceSnapshotTemplateIdentifierHasBeenSet() const { return m_resourceSnapshotTemplateIdentifierHasBeenSet; }
103 template<typename ResourceSnapshotTemplateIdentifierT = Aws::String>
104 void SetResourceSnapshotTemplateIdentifier(ResourceSnapshotTemplateIdentifierT&& value) { m_resourceSnapshotTemplateIdentifierHasBeenSet = true; m_resourceSnapshotTemplateIdentifier = std::forward<ResourceSnapshotTemplateIdentifierT>(value); }
105 template<typename ResourceSnapshotTemplateIdentifierT = Aws::String>
106 CreateResourceSnapshotRequest& WithResourceSnapshotTemplateIdentifier(ResourceSnapshotTemplateIdentifierT&& value) { SetResourceSnapshotTemplateIdentifier(std::forward<ResourceSnapshotTemplateIdentifierT>(value)); return *this;}
108
110
115 inline ResourceType GetResourceType() const { return m_resourceType; }
116 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
117 inline void SetResourceType(ResourceType value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; }
120 private:
121
122 Aws::String m_catalog;
123 bool m_catalogHasBeenSet = false;
124
126 bool m_clientTokenHasBeenSet = true;
127
128 Aws::String m_engagementIdentifier;
129 bool m_engagementIdentifierHasBeenSet = false;
130
131 Aws::String m_resourceIdentifier;
132 bool m_resourceIdentifierHasBeenSet = false;
133
134 Aws::String m_resourceSnapshotTemplateIdentifier;
135 bool m_resourceSnapshotTemplateIdentifierHasBeenSet = false;
136
137 ResourceType m_resourceType{ResourceType::NOT_SET};
138 bool m_resourceTypeHasBeenSet = false;
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