AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
CreateResourceSnapshotJobRequest.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 <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/partnercentral-selling/model/Tag.h>
13#include <utility>
14#include <aws/core/utils/UUID.h>
15
16namespace Aws
17{
18namespace PartnerCentralSelling
19{
20namespace Model
21{
22
26 {
27 public:
28 AWS_PARTNERCENTRALSELLING_API CreateResourceSnapshotJobRequest() = default;
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "CreateResourceSnapshotJob"; }
35
36 AWS_PARTNERCENTRALSELLING_API Aws::String SerializePayload() const override;
37
38 AWS_PARTNERCENTRALSELLING_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
39
40
42
46 inline const Aws::String& GetCatalog() const { return m_catalog; }
47 inline bool CatalogHasBeenSet() const { return m_catalogHasBeenSet; }
48 template<typename CatalogT = Aws::String>
49 void SetCatalog(CatalogT&& value) { m_catalogHasBeenSet = true; m_catalog = std::forward<CatalogT>(value); }
50 template<typename CatalogT = Aws::String>
51 CreateResourceSnapshotJobRequest& WithCatalog(CatalogT&& value) { SetCatalog(std::forward<CatalogT>(value)); return *this;}
53
55
59 inline const Aws::String& GetClientToken() const { return m_clientToken; }
60 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
61 template<typename ClientTokenT = Aws::String>
62 void SetClientToken(ClientTokenT&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::forward<ClientTokenT>(value); }
63 template<typename ClientTokenT = Aws::String>
64 CreateResourceSnapshotJobRequest& WithClientToken(ClientTokenT&& value) { SetClientToken(std::forward<ClientTokenT>(value)); return *this;}
66
68
72 inline const Aws::String& GetEngagementIdentifier() const { return m_engagementIdentifier; }
73 inline bool EngagementIdentifierHasBeenSet() const { return m_engagementIdentifierHasBeenSet; }
74 template<typename EngagementIdentifierT = Aws::String>
75 void SetEngagementIdentifier(EngagementIdentifierT&& value) { m_engagementIdentifierHasBeenSet = true; m_engagementIdentifier = std::forward<EngagementIdentifierT>(value); }
76 template<typename EngagementIdentifierT = Aws::String>
77 CreateResourceSnapshotJobRequest& WithEngagementIdentifier(EngagementIdentifierT&& value) { SetEngagementIdentifier(std::forward<EngagementIdentifierT>(value)); return *this;}
79
81
85 inline const Aws::String& GetResourceIdentifier() const { return m_resourceIdentifier; }
86 inline bool ResourceIdentifierHasBeenSet() const { return m_resourceIdentifierHasBeenSet; }
87 template<typename ResourceIdentifierT = Aws::String>
88 void SetResourceIdentifier(ResourceIdentifierT&& value) { m_resourceIdentifierHasBeenSet = true; m_resourceIdentifier = std::forward<ResourceIdentifierT>(value); }
89 template<typename ResourceIdentifierT = Aws::String>
90 CreateResourceSnapshotJobRequest& WithResourceIdentifier(ResourceIdentifierT&& value) { SetResourceIdentifier(std::forward<ResourceIdentifierT>(value)); return *this;}
92
94
98 inline const Aws::String& GetResourceSnapshotTemplateIdentifier() const { return m_resourceSnapshotTemplateIdentifier; }
99 inline bool ResourceSnapshotTemplateIdentifierHasBeenSet() const { return m_resourceSnapshotTemplateIdentifierHasBeenSet; }
100 template<typename ResourceSnapshotTemplateIdentifierT = Aws::String>
101 void SetResourceSnapshotTemplateIdentifier(ResourceSnapshotTemplateIdentifierT&& value) { m_resourceSnapshotTemplateIdentifierHasBeenSet = true; m_resourceSnapshotTemplateIdentifier = std::forward<ResourceSnapshotTemplateIdentifierT>(value); }
102 template<typename ResourceSnapshotTemplateIdentifierT = Aws::String>
103 CreateResourceSnapshotJobRequest& WithResourceSnapshotTemplateIdentifier(ResourceSnapshotTemplateIdentifierT&& value) { SetResourceSnapshotTemplateIdentifier(std::forward<ResourceSnapshotTemplateIdentifierT>(value)); return *this;}
105
107
111 inline ResourceType GetResourceType() const { return m_resourceType; }
112 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
113 inline void SetResourceType(ResourceType value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; }
116
118
121 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
122 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
123 template<typename TagsT = Aws::Vector<Tag>>
124 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
125 template<typename TagsT = Aws::Vector<Tag>>
126 CreateResourceSnapshotJobRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
127 template<typename TagsT = Tag>
128 CreateResourceSnapshotJobRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
130 private:
131
132 Aws::String m_catalog;
133 bool m_catalogHasBeenSet = false;
134
136 bool m_clientTokenHasBeenSet = true;
137
138 Aws::String m_engagementIdentifier;
139 bool m_engagementIdentifierHasBeenSet = false;
140
141 Aws::String m_resourceIdentifier;
142 bool m_resourceIdentifierHasBeenSet = false;
143
144 Aws::String m_resourceSnapshotTemplateIdentifier;
145 bool m_resourceSnapshotTemplateIdentifierHasBeenSet = false;
146
147 ResourceType m_resourceType{ResourceType::NOT_SET};
148 bool m_resourceTypeHasBeenSet = false;
149
150 Aws::Vector<Tag> m_tags;
151 bool m_tagsHasBeenSet = false;
152 };
153
154} // namespace Model
155} // namespace PartnerCentralSelling
156} // namespace Aws
AWS_PARTNERCENTRALSELLING_API CreateResourceSnapshotJobRequest()=default
CreateResourceSnapshotJobRequest & WithResourceType(ResourceType value)
CreateResourceSnapshotJobRequest & WithClientToken(ClientTokenT &&value)
AWS_PARTNERCENTRALSELLING_API Aws::String SerializePayload() const override
CreateResourceSnapshotJobRequest & WithResourceIdentifier(ResourceIdentifierT &&value)
void SetResourceSnapshotTemplateIdentifier(ResourceSnapshotTemplateIdentifierT &&value)
CreateResourceSnapshotJobRequest & WithEngagementIdentifier(EngagementIdentifierT &&value)
CreateResourceSnapshotJobRequest & WithResourceSnapshotTemplateIdentifier(ResourceSnapshotTemplateIdentifierT &&value)
AWS_PARTNERCENTRALSELLING_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
static Aws::Utils::UUID PseudoRandomUUID()
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