AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetAcceptLanguage(const Aws::String& value) { m_acceptLanguageHasBeenSet = true; m_acceptLanguage = value; }
48 inline void SetAcceptLanguage(Aws::String&& value) { m_acceptLanguageHasBeenSet = true; m_acceptLanguage = std::move(value); }
49 inline void SetAcceptLanguage(const char* value) { m_acceptLanguageHasBeenSet = true; m_acceptLanguage.assign(value); }
50 inline CreatePortfolioRequest& WithAcceptLanguage(const Aws::String& value) { SetAcceptLanguage(value); return *this;}
51 inline CreatePortfolioRequest& WithAcceptLanguage(Aws::String&& value) { SetAcceptLanguage(std::move(value)); return *this;}
52 inline CreatePortfolioRequest& WithAcceptLanguage(const char* value) { SetAcceptLanguage(value); return *this;}
54
56
59 inline const Aws::String& GetDisplayName() const{ return m_displayName; }
60 inline bool DisplayNameHasBeenSet() const { return m_displayNameHasBeenSet; }
61 inline void SetDisplayName(const Aws::String& value) { m_displayNameHasBeenSet = true; m_displayName = value; }
62 inline void SetDisplayName(Aws::String&& value) { m_displayNameHasBeenSet = true; m_displayName = std::move(value); }
63 inline void SetDisplayName(const char* value) { m_displayNameHasBeenSet = true; m_displayName.assign(value); }
64 inline CreatePortfolioRequest& WithDisplayName(const Aws::String& value) { SetDisplayName(value); return *this;}
65 inline CreatePortfolioRequest& WithDisplayName(Aws::String&& value) { SetDisplayName(std::move(value)); return *this;}
66 inline CreatePortfolioRequest& WithDisplayName(const char* value) { SetDisplayName(value); return *this;}
68
70
73 inline const Aws::String& GetDescription() const{ return m_description; }
74 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
75 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
76 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
77 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
78 inline CreatePortfolioRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
79 inline CreatePortfolioRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
80 inline CreatePortfolioRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
82
84
87 inline const Aws::String& GetProviderName() const{ return m_providerName; }
88 inline bool ProviderNameHasBeenSet() const { return m_providerNameHasBeenSet; }
89 inline void SetProviderName(const Aws::String& value) { m_providerNameHasBeenSet = true; m_providerName = value; }
90 inline void SetProviderName(Aws::String&& value) { m_providerNameHasBeenSet = true; m_providerName = std::move(value); }
91 inline void SetProviderName(const char* value) { m_providerNameHasBeenSet = true; m_providerName.assign(value); }
92 inline CreatePortfolioRequest& WithProviderName(const Aws::String& value) { SetProviderName(value); return *this;}
93 inline CreatePortfolioRequest& WithProviderName(Aws::String&& value) { SetProviderName(std::move(value)); return *this;}
94 inline CreatePortfolioRequest& WithProviderName(const char* value) { SetProviderName(value); return *this;}
96
98
101 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
102 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
103 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
104 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
105 inline CreatePortfolioRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
106 inline CreatePortfolioRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
107 inline CreatePortfolioRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
108 inline CreatePortfolioRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
110
112
117 inline const Aws::String& GetIdempotencyToken() const{ return m_idempotencyToken; }
118 inline bool IdempotencyTokenHasBeenSet() const { return m_idempotencyTokenHasBeenSet; }
119 inline void SetIdempotencyToken(const Aws::String& value) { m_idempotencyTokenHasBeenSet = true; m_idempotencyToken = value; }
120 inline void SetIdempotencyToken(Aws::String&& value) { m_idempotencyTokenHasBeenSet = true; m_idempotencyToken = std::move(value); }
121 inline void SetIdempotencyToken(const char* value) { m_idempotencyTokenHasBeenSet = true; m_idempotencyToken.assign(value); }
122 inline CreatePortfolioRequest& WithIdempotencyToken(const Aws::String& value) { SetIdempotencyToken(value); return *this;}
123 inline CreatePortfolioRequest& WithIdempotencyToken(Aws::String&& value) { SetIdempotencyToken(std::move(value)); return *this;}
124 inline CreatePortfolioRequest& WithIdempotencyToken(const char* value) { SetIdempotencyToken(value); return *this;}
126 private:
127
128 Aws::String m_acceptLanguage;
129 bool m_acceptLanguageHasBeenSet = false;
130
131 Aws::String m_displayName;
132 bool m_displayNameHasBeenSet = false;
133
134 Aws::String m_description;
135 bool m_descriptionHasBeenSet = false;
136
137 Aws::String m_providerName;
138 bool m_providerNameHasBeenSet = false;
139
140 Aws::Vector<Tag> m_tags;
141 bool m_tagsHasBeenSet = false;
142
143 Aws::String m_idempotencyToken;
144 bool m_idempotencyTokenHasBeenSet = false;
145 };
146
147} // namespace Model
148} // namespace ServiceCatalog
149} // namespace Aws
CreatePortfolioRequest & WithProviderName(Aws::String &&value)
CreatePortfolioRequest & WithIdempotencyToken(Aws::String &&value)
CreatePortfolioRequest & WithDescription(const char *value)
AWS_SERVICECATALOG_API Aws::String SerializePayload() const override
CreatePortfolioRequest & WithAcceptLanguage(const char *value)
AWS_SERVICECATALOG_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreatePortfolioRequest & WithTags(const Aws::Vector< Tag > &value)
CreatePortfolioRequest & WithAcceptLanguage(Aws::String &&value)
CreatePortfolioRequest & WithDisplayName(const Aws::String &value)
CreatePortfolioRequest & WithDescription(const Aws::String &value)
CreatePortfolioRequest & WithIdempotencyToken(const char *value)
CreatePortfolioRequest & WithTags(Aws::Vector< Tag > &&value)
CreatePortfolioRequest & WithDescription(Aws::String &&value)
CreatePortfolioRequest & WithDisplayName(Aws::String &&value)
CreatePortfolioRequest & WithDisplayName(const char *value)
CreatePortfolioRequest & WithAcceptLanguage(const Aws::String &value)
CreatePortfolioRequest & WithProviderName(const char *value)
CreatePortfolioRequest & WithProviderName(const Aws::String &value)
CreatePortfolioRequest & AddTags(const Tag &value)
virtual const char * GetServiceRequestName() const override
CreatePortfolioRequest & WithIdempotencyToken(const Aws::String &value)
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