AWS SDK for C++  1.9.40
AWS SDK for C++
AssociateProductWithPortfolioRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace ServiceCatalog
15 {
16 namespace Model
17 {
18 
22  {
23  public:
25 
26  // Service request name is the Operation name which will send this request out,
27  // each operation should has unique request name, so that we can get operation's name from this request.
28  // Note: this is not true for response, multiple operations may have the same response name,
29  // so we can not get operation's name from response.
30  inline virtual const char* GetServiceRequestName() const override { return "AssociateProductWithPortfolio"; }
31 
32  Aws::String SerializePayload() const override;
33 
35 
36 
42  inline const Aws::String& GetAcceptLanguage() const{ return m_acceptLanguage; }
43 
49  inline bool AcceptLanguageHasBeenSet() const { return m_acceptLanguageHasBeenSet; }
50 
56  inline void SetAcceptLanguage(const Aws::String& value) { m_acceptLanguageHasBeenSet = true; m_acceptLanguage = value; }
57 
63  inline void SetAcceptLanguage(Aws::String&& value) { m_acceptLanguageHasBeenSet = true; m_acceptLanguage = std::move(value); }
64 
70  inline void SetAcceptLanguage(const char* value) { m_acceptLanguageHasBeenSet = true; m_acceptLanguage.assign(value); }
71 
77  inline AssociateProductWithPortfolioRequest& WithAcceptLanguage(const Aws::String& value) { SetAcceptLanguage(value); return *this;}
78 
84  inline AssociateProductWithPortfolioRequest& WithAcceptLanguage(Aws::String&& value) { SetAcceptLanguage(std::move(value)); return *this;}
85 
91  inline AssociateProductWithPortfolioRequest& WithAcceptLanguage(const char* value) { SetAcceptLanguage(value); return *this;}
92 
93 
97  inline const Aws::String& GetProductId() const{ return m_productId; }
98 
102  inline bool ProductIdHasBeenSet() const { return m_productIdHasBeenSet; }
103 
107  inline void SetProductId(const Aws::String& value) { m_productIdHasBeenSet = true; m_productId = value; }
108 
112  inline void SetProductId(Aws::String&& value) { m_productIdHasBeenSet = true; m_productId = std::move(value); }
113 
117  inline void SetProductId(const char* value) { m_productIdHasBeenSet = true; m_productId.assign(value); }
118 
122  inline AssociateProductWithPortfolioRequest& WithProductId(const Aws::String& value) { SetProductId(value); return *this;}
123 
127  inline AssociateProductWithPortfolioRequest& WithProductId(Aws::String&& value) { SetProductId(std::move(value)); return *this;}
128 
132  inline AssociateProductWithPortfolioRequest& WithProductId(const char* value) { SetProductId(value); return *this;}
133 
134 
138  inline const Aws::String& GetPortfolioId() const{ return m_portfolioId; }
139 
143  inline bool PortfolioIdHasBeenSet() const { return m_portfolioIdHasBeenSet; }
144 
148  inline void SetPortfolioId(const Aws::String& value) { m_portfolioIdHasBeenSet = true; m_portfolioId = value; }
149 
153  inline void SetPortfolioId(Aws::String&& value) { m_portfolioIdHasBeenSet = true; m_portfolioId = std::move(value); }
154 
158  inline void SetPortfolioId(const char* value) { m_portfolioIdHasBeenSet = true; m_portfolioId.assign(value); }
159 
163  inline AssociateProductWithPortfolioRequest& WithPortfolioId(const Aws::String& value) { SetPortfolioId(value); return *this;}
164 
168  inline AssociateProductWithPortfolioRequest& WithPortfolioId(Aws::String&& value) { SetPortfolioId(std::move(value)); return *this;}
169 
173  inline AssociateProductWithPortfolioRequest& WithPortfolioId(const char* value) { SetPortfolioId(value); return *this;}
174 
175 
179  inline const Aws::String& GetSourcePortfolioId() const{ return m_sourcePortfolioId; }
180 
184  inline bool SourcePortfolioIdHasBeenSet() const { return m_sourcePortfolioIdHasBeenSet; }
185 
189  inline void SetSourcePortfolioId(const Aws::String& value) { m_sourcePortfolioIdHasBeenSet = true; m_sourcePortfolioId = value; }
190 
194  inline void SetSourcePortfolioId(Aws::String&& value) { m_sourcePortfolioIdHasBeenSet = true; m_sourcePortfolioId = std::move(value); }
195 
199  inline void SetSourcePortfolioId(const char* value) { m_sourcePortfolioIdHasBeenSet = true; m_sourcePortfolioId.assign(value); }
200 
204  inline AssociateProductWithPortfolioRequest& WithSourcePortfolioId(const Aws::String& value) { SetSourcePortfolioId(value); return *this;}
205 
209  inline AssociateProductWithPortfolioRequest& WithSourcePortfolioId(Aws::String&& value) { SetSourcePortfolioId(std::move(value)); return *this;}
210 
214  inline AssociateProductWithPortfolioRequest& WithSourcePortfolioId(const char* value) { SetSourcePortfolioId(value); return *this;}
215 
216  private:
217 
218  Aws::String m_acceptLanguage;
219  bool m_acceptLanguageHasBeenSet;
220 
221  Aws::String m_productId;
222  bool m_productIdHasBeenSet;
223 
224  Aws::String m_portfolioId;
225  bool m_portfolioIdHasBeenSet;
226 
227  Aws::String m_sourcePortfolioId;
228  bool m_sourcePortfolioIdHasBeenSet;
229  };
230 
231 } // namespace Model
232 } // namespace ServiceCatalog
233 } // namespace Aws
Aws::ServiceCatalog::Model::AssociateProductWithPortfolioRequest::SetPortfolioId
void SetPortfolioId(Aws::String &&value)
Definition: AssociateProductWithPortfolioRequest.h:153
Aws::ServiceCatalog::Model::AssociateProductWithPortfolioRequest::SetSourcePortfolioId
void SetSourcePortfolioId(Aws::String &&value)
Definition: AssociateProductWithPortfolioRequest.h:194
Aws::ServiceCatalog::Model::AssociateProductWithPortfolioRequest::WithPortfolioId
AssociateProductWithPortfolioRequest & WithPortfolioId(const Aws::String &value)
Definition: AssociateProductWithPortfolioRequest.h:163
Aws::ServiceCatalog::Model::AssociateProductWithPortfolioRequest::SetProductId
void SetProductId(const char *value)
Definition: AssociateProductWithPortfolioRequest.h:117
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::ServiceCatalog::Model::AssociateProductWithPortfolioRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: AssociateProductWithPortfolioRequest.h:30
ServiceCatalogRequest.h
Aws::ServiceCatalog::Model::AssociateProductWithPortfolioRequest::SetAcceptLanguage
void SetAcceptLanguage(const Aws::String &value)
Definition: AssociateProductWithPortfolioRequest.h:56
Aws::ServiceCatalog::Model::AssociateProductWithPortfolioRequest::SetProductId
void SetProductId(Aws::String &&value)
Definition: AssociateProductWithPortfolioRequest.h:112
Aws::ServiceCatalog::Model::AssociateProductWithPortfolioRequest::SourcePortfolioIdHasBeenSet
bool SourcePortfolioIdHasBeenSet() const
Definition: AssociateProductWithPortfolioRequest.h:184
Aws::ServiceCatalog::Model::AssociateProductWithPortfolioRequest::WithAcceptLanguage
AssociateProductWithPortfolioRequest & WithAcceptLanguage(const Aws::String &value)
Definition: AssociateProductWithPortfolioRequest.h:77
AWS_SERVICECATALOG_API
#define AWS_SERVICECATALOG_API
Definition: ServiceCatalog_EXPORTS.h:28
Aws::ServiceCatalog::Model::AssociateProductWithPortfolioRequest::SetSourcePortfolioId
void SetSourcePortfolioId(const char *value)
Definition: AssociateProductWithPortfolioRequest.h:199
Aws::ServiceCatalog::Model::AssociateProductWithPortfolioRequest::WithAcceptLanguage
AssociateProductWithPortfolioRequest & WithAcceptLanguage(const char *value)
Definition: AssociateProductWithPortfolioRequest.h:91
Aws::ServiceCatalog::Model::AssociateProductWithPortfolioRequest::SetPortfolioId
void SetPortfolioId(const Aws::String &value)
Definition: AssociateProductWithPortfolioRequest.h:148
Aws::ServiceCatalog::Model::AssociateProductWithPortfolioRequest::WithProductId
AssociateProductWithPortfolioRequest & WithProductId(const char *value)
Definition: AssociateProductWithPortfolioRequest.h:132
Aws::ServiceCatalog::Model::AssociateProductWithPortfolioRequest::GetAcceptLanguage
const Aws::String & GetAcceptLanguage() const
Definition: AssociateProductWithPortfolioRequest.h:42
Aws::ServiceCatalog::Model::AssociateProductWithPortfolioRequest::GetPortfolioId
const Aws::String & GetPortfolioId() const
Definition: AssociateProductWithPortfolioRequest.h:138
Aws::ServiceCatalog::ServiceCatalogRequest
Definition: ServiceCatalogRequest.h:17
AWSString.h
Aws::ServiceCatalog::Model::AssociateProductWithPortfolioRequest::GetProductId
const Aws::String & GetProductId() const
Definition: AssociateProductWithPortfolioRequest.h:97
Aws::ServiceCatalog::Model::AssociateProductWithPortfolioRequest::SetAcceptLanguage
void SetAcceptLanguage(const char *value)
Definition: AssociateProductWithPortfolioRequest.h:70
Aws::ServiceCatalog::Model::AssociateProductWithPortfolioRequest
Definition: AssociateProductWithPortfolioRequest.h:22
Aws::ServiceCatalog::Model::AssociateProductWithPortfolioRequest::SetPortfolioId
void SetPortfolioId(const char *value)
Definition: AssociateProductWithPortfolioRequest.h:158
Aws::ServiceCatalog::Model::AssociateProductWithPortfolioRequest::SetAcceptLanguage
void SetAcceptLanguage(Aws::String &&value)
Definition: AssociateProductWithPortfolioRequest.h:63
Aws::ServiceCatalog::Model::AssociateProductWithPortfolioRequest::WithProductId
AssociateProductWithPortfolioRequest & WithProductId(const Aws::String &value)
Definition: AssociateProductWithPortfolioRequest.h:122
Aws::ServiceCatalog::Model::AssociateProductWithPortfolioRequest::GetSourcePortfolioId
const Aws::String & GetSourcePortfolioId() const
Definition: AssociateProductWithPortfolioRequest.h:179
Aws::ServiceCatalog::Model::AssociateProductWithPortfolioRequest::WithPortfolioId
AssociateProductWithPortfolioRequest & WithPortfolioId(Aws::String &&value)
Definition: AssociateProductWithPortfolioRequest.h:168
Aws::ServiceCatalog::Model::AssociateProductWithPortfolioRequest::WithSourcePortfolioId
AssociateProductWithPortfolioRequest & WithSourcePortfolioId(const char *value)
Definition: AssociateProductWithPortfolioRequest.h:214
Aws
Definition: AccessManagementClient.h:15
Aws::ServiceCatalog::Model::AssociateProductWithPortfolioRequest::WithAcceptLanguage
AssociateProductWithPortfolioRequest & WithAcceptLanguage(Aws::String &&value)
Definition: AssociateProductWithPortfolioRequest.h:84
Aws::ServiceCatalog::Model::AssociateProductWithPortfolioRequest::WithSourcePortfolioId
AssociateProductWithPortfolioRequest & WithSourcePortfolioId(const Aws::String &value)
Definition: AssociateProductWithPortfolioRequest.h:204
Aws::ServiceCatalog::Model::AssociateProductWithPortfolioRequest::WithSourcePortfolioId
AssociateProductWithPortfolioRequest & WithSourcePortfolioId(Aws::String &&value)
Definition: AssociateProductWithPortfolioRequest.h:209
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::ServiceCatalog::Model::AssociateProductWithPortfolioRequest::AcceptLanguageHasBeenSet
bool AcceptLanguageHasBeenSet() const
Definition: AssociateProductWithPortfolioRequest.h:49
Aws::ServiceCatalog::Model::AssociateProductWithPortfolioRequest::SetSourcePortfolioId
void SetSourcePortfolioId(const Aws::String &value)
Definition: AssociateProductWithPortfolioRequest.h:189
Aws::ServiceCatalog::Model::AssociateProductWithPortfolioRequest::WithProductId
AssociateProductWithPortfolioRequest & WithProductId(Aws::String &&value)
Definition: AssociateProductWithPortfolioRequest.h:127
Aws::ServiceCatalog::Model::AssociateProductWithPortfolioRequest::WithPortfolioId
AssociateProductWithPortfolioRequest & WithPortfolioId(const char *value)
Definition: AssociateProductWithPortfolioRequest.h:173
Aws::ServiceCatalog::Model::AssociateProductWithPortfolioRequest::SetProductId
void SetProductId(const Aws::String &value)
Definition: AssociateProductWithPortfolioRequest.h:107
Aws::ServiceCatalog::Model::AssociateProductWithPortfolioRequest::AssociateProductWithPortfolioRequest
AssociateProductWithPortfolioRequest()
ServiceCatalog_EXPORTS.h
Aws::ServiceCatalog::Model::AssociateProductWithPortfolioRequest::ProductIdHasBeenSet
bool ProductIdHasBeenSet() const
Definition: AssociateProductWithPortfolioRequest.h:102
Aws::ServiceCatalog::Model::AssociateProductWithPortfolioRequest::PortfolioIdHasBeenSet
bool PortfolioIdHasBeenSet() const
Definition: AssociateProductWithPortfolioRequest.h:143
Aws::ServiceCatalog::Model::AssociateProductWithPortfolioRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::ServiceCatalog::Model::AssociateProductWithPortfolioRequest::SerializePayload
Aws::String SerializePayload() const override