AWS SDK for C++  1.9.108
AWS SDK for C++
ListPortfoliosForProductResult.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 template<typename RESULT_TYPE>
16 class AmazonWebServiceResult;
17 
18 namespace Utils
19 {
20 namespace Json
21 {
22  class JsonValue;
23 } // namespace Json
24 } // namespace Utils
25 namespace ServiceCatalog
26 {
27 namespace Model
28 {
30  {
31  public:
35 
36 
40  inline const Aws::Vector<PortfolioDetail>& GetPortfolioDetails() const{ return m_portfolioDetails; }
41 
45  inline void SetPortfolioDetails(const Aws::Vector<PortfolioDetail>& value) { m_portfolioDetails = value; }
46 
50  inline void SetPortfolioDetails(Aws::Vector<PortfolioDetail>&& value) { m_portfolioDetails = std::move(value); }
51 
55  inline ListPortfoliosForProductResult& WithPortfolioDetails(const Aws::Vector<PortfolioDetail>& value) { SetPortfolioDetails(value); return *this;}
56 
60  inline ListPortfoliosForProductResult& WithPortfolioDetails(Aws::Vector<PortfolioDetail>&& value) { SetPortfolioDetails(std::move(value)); return *this;}
61 
65  inline ListPortfoliosForProductResult& AddPortfolioDetails(const PortfolioDetail& value) { m_portfolioDetails.push_back(value); return *this; }
66 
70  inline ListPortfoliosForProductResult& AddPortfolioDetails(PortfolioDetail&& value) { m_portfolioDetails.push_back(std::move(value)); return *this; }
71 
72 
77  inline const Aws::String& GetNextPageToken() const{ return m_nextPageToken; }
78 
83  inline void SetNextPageToken(const Aws::String& value) { m_nextPageToken = value; }
84 
89  inline void SetNextPageToken(Aws::String&& value) { m_nextPageToken = std::move(value); }
90 
95  inline void SetNextPageToken(const char* value) { m_nextPageToken.assign(value); }
96 
101  inline ListPortfoliosForProductResult& WithNextPageToken(const Aws::String& value) { SetNextPageToken(value); return *this;}
102 
107  inline ListPortfoliosForProductResult& WithNextPageToken(Aws::String&& value) { SetNextPageToken(std::move(value)); return *this;}
108 
113  inline ListPortfoliosForProductResult& WithNextPageToken(const char* value) { SetNextPageToken(value); return *this;}
114 
115  private:
116 
117  Aws::Vector<PortfolioDetail> m_portfolioDetails;
118 
119  Aws::String m_nextPageToken;
120  };
121 
122 } // namespace Model
123 } // namespace ServiceCatalog
124 } // namespace Aws
Aws::ServiceCatalog::Model::ListPortfoliosForProductResult::SetNextPageToken
void SetNextPageToken(const char *value)
Definition: ListPortfoliosForProductResult.h:95
Aws::ServiceCatalog::Model::ListPortfoliosForProductResult::WithPortfolioDetails
ListPortfoliosForProductResult & WithPortfolioDetails(Aws::Vector< PortfolioDetail > &&value)
Definition: ListPortfoliosForProductResult.h:60
Aws::ServiceCatalog::Model::ListPortfoliosForProductResult::SetNextPageToken
void SetNextPageToken(Aws::String &&value)
Definition: ListPortfoliosForProductResult.h:89
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::ServiceCatalog::Model::ListPortfoliosForProductResult::ListPortfoliosForProductResult
ListPortfoliosForProductResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::ServiceCatalog::Model::ListPortfoliosForProductResult::WithNextPageToken
ListPortfoliosForProductResult & WithNextPageToken(const Aws::String &value)
Definition: ListPortfoliosForProductResult.h:101
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::ServiceCatalog::Model::ListPortfoliosForProductResult::GetNextPageToken
const Aws::String & GetNextPageToken() const
Definition: ListPortfoliosForProductResult.h:77
Aws::ServiceCatalog::Model::ListPortfoliosForProductResult::AddPortfolioDetails
ListPortfoliosForProductResult & AddPortfolioDetails(PortfolioDetail &&value)
Definition: ListPortfoliosForProductResult.h:70
Aws::ServiceCatalog::Model::ListPortfoliosForProductResult::SetPortfolioDetails
void SetPortfolioDetails(Aws::Vector< PortfolioDetail > &&value)
Definition: ListPortfoliosForProductResult.h:50
AWS_SERVICECATALOG_API
#define AWS_SERVICECATALOG_API
Definition: ServiceCatalog_EXPORTS.h:28
AWSVector.h
Aws::ServiceCatalog::Model::ListPortfoliosForProductResult::operator=
ListPortfoliosForProductResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::ServiceCatalog::Model::ListPortfoliosForProductResult::SetNextPageToken
void SetNextPageToken(const Aws::String &value)
Definition: ListPortfoliosForProductResult.h:83
Aws::ServiceCatalog::Model::ListPortfoliosForProductResult::WithPortfolioDetails
ListPortfoliosForProductResult & WithPortfolioDetails(const Aws::Vector< PortfolioDetail > &value)
Definition: ListPortfoliosForProductResult.h:55
PortfolioDetail.h
AWSString.h
Aws::ServiceCatalog::Model::PortfolioDetail
Definition: PortfolioDetail.h:33
Aws::ServiceCatalog::Model::ListPortfoliosForProductResult::GetPortfolioDetails
const Aws::Vector< PortfolioDetail > & GetPortfolioDetails() const
Definition: ListPortfoliosForProductResult.h:40
Aws::ServiceCatalog::Model::ListPortfoliosForProductResult::ListPortfoliosForProductResult
ListPortfoliosForProductResult()
Aws::ServiceCatalog::Model::ListPortfoliosForProductResult::WithNextPageToken
ListPortfoliosForProductResult & WithNextPageToken(Aws::String &&value)
Definition: ListPortfoliosForProductResult.h:107
Aws::ServiceCatalog::Model::ListPortfoliosForProductResult::AddPortfolioDetails
ListPortfoliosForProductResult & AddPortfolioDetails(const PortfolioDetail &value)
Definition: ListPortfoliosForProductResult.h:65
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::ServiceCatalog::Model::ListPortfoliosForProductResult
Definition: ListPortfoliosForProductResult.h:30
Aws::ServiceCatalog::Model::ListPortfoliosForProductResult::SetPortfolioDetails
void SetPortfolioDetails(const Aws::Vector< PortfolioDetail > &value)
Definition: ListPortfoliosForProductResult.h:45
ServiceCatalog_EXPORTS.h
Aws::ServiceCatalog::Model::ListPortfoliosForProductResult::WithNextPageToken
ListPortfoliosForProductResult & WithNextPageToken(const char *value)
Definition: ListPortfoliosForProductResult.h:113