AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
CreatePortfolioRequest.h
1
6#pragma once
7#include <aws/servicecatalog/ServiceCatalog_EXPORTS.h>
8#include <aws/servicecatalog/ServiceCatalogRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/servicecatalog/model/Tag.h>
12#include <utility>
13#include <aws/core/utils/UUID.h>
14
15namespace Aws
16{
17namespace ServiceCatalog
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_SERVICECATALOG_API CreatePortfolioRequest() = 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 "CreatePortfolio"; }
34
35 AWS_SERVICECATALOG_API Aws::String SerializePayload() const override;
36
37 AWS_SERVICECATALOG_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
38
39
41
45 inline const Aws::String& GetAcceptLanguage() const { return m_acceptLanguage; }
46 inline bool AcceptLanguageHasBeenSet() const { return m_acceptLanguageHasBeenSet; }
47 template<typename AcceptLanguageT = Aws::String>
48 void SetAcceptLanguage(AcceptLanguageT&& value) { m_acceptLanguageHasBeenSet = true; m_acceptLanguage = std::forward<AcceptLanguageT>(value); }
49 template<typename AcceptLanguageT = Aws::String>
50 CreatePortfolioRequest& WithAcceptLanguage(AcceptLanguageT&& value) { SetAcceptLanguage(std::forward<AcceptLanguageT>(value)); return *this;}
52
54
57 inline const Aws::String& GetDisplayName() const { return m_displayName; }
58 inline bool DisplayNameHasBeenSet() const { return m_displayNameHasBeenSet; }
59 template<typename DisplayNameT = Aws::String>
60 void SetDisplayName(DisplayNameT&& value) { m_displayNameHasBeenSet = true; m_displayName = std::forward<DisplayNameT>(value); }
61 template<typename DisplayNameT = Aws::String>
62 CreatePortfolioRequest& WithDisplayName(DisplayNameT&& value) { SetDisplayName(std::forward<DisplayNameT>(value)); return *this;}
64
66
69 inline const Aws::String& GetDescription() const { return m_description; }
70 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
71 template<typename DescriptionT = Aws::String>
72 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
73 template<typename DescriptionT = Aws::String>
74 CreatePortfolioRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
76
78
81 inline const Aws::String& GetProviderName() const { return m_providerName; }
82 inline bool ProviderNameHasBeenSet() const { return m_providerNameHasBeenSet; }
83 template<typename ProviderNameT = Aws::String>
84 void SetProviderName(ProviderNameT&& value) { m_providerNameHasBeenSet = true; m_providerName = std::forward<ProviderNameT>(value); }
85 template<typename ProviderNameT = Aws::String>
86 CreatePortfolioRequest& WithProviderName(ProviderNameT&& value) { SetProviderName(std::forward<ProviderNameT>(value)); return *this;}
88
90
93 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
94 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
95 template<typename TagsT = Aws::Vector<Tag>>
96 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
97 template<typename TagsT = Aws::Vector<Tag>>
98 CreatePortfolioRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
99 template<typename TagsT = Tag>
100 CreatePortfolioRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
102
104
109 inline const Aws::String& GetIdempotencyToken() const { return m_idempotencyToken; }
110 inline bool IdempotencyTokenHasBeenSet() const { return m_idempotencyTokenHasBeenSet; }
111 template<typename IdempotencyTokenT = Aws::String>
112 void SetIdempotencyToken(IdempotencyTokenT&& value) { m_idempotencyTokenHasBeenSet = true; m_idempotencyToken = std::forward<IdempotencyTokenT>(value); }
113 template<typename IdempotencyTokenT = Aws::String>
114 CreatePortfolioRequest& WithIdempotencyToken(IdempotencyTokenT&& value) { SetIdempotencyToken(std::forward<IdempotencyTokenT>(value)); return *this;}
116 private:
117
118 Aws::String m_acceptLanguage;
119 bool m_acceptLanguageHasBeenSet = false;
120
121 Aws::String m_displayName;
122 bool m_displayNameHasBeenSet = false;
123
124 Aws::String m_description;
125 bool m_descriptionHasBeenSet = false;
126
127 Aws::String m_providerName;
128 bool m_providerNameHasBeenSet = false;
129
130 Aws::Vector<Tag> m_tags;
131 bool m_tagsHasBeenSet = false;
132
134 bool m_idempotencyTokenHasBeenSet = true;
135 };
136
137} // namespace Model
138} // namespace ServiceCatalog
139} // namespace Aws
CreatePortfolioRequest & WithTags(TagsT &&value)
CreatePortfolioRequest & WithIdempotencyToken(IdempotencyTokenT &&value)
AWS_SERVICECATALOG_API Aws::String SerializePayload() const override
AWS_SERVICECATALOG_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreatePortfolioRequest & WithDisplayName(DisplayNameT &&value)
CreatePortfolioRequest & WithAcceptLanguage(AcceptLanguageT &&value)
CreatePortfolioRequest & WithProviderName(ProviderNameT &&value)
CreatePortfolioRequest & WithDescription(DescriptionT &&value)
AWS_SERVICECATALOG_API CreatePortfolioRequest()=default
CreatePortfolioRequest & AddTags(TagsT &&value)
virtual const char * GetServiceRequestName() 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