AWS SDK for C++  1.9.108
AWS SDK for C++
UpdatePortfolioShareResult.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 template<typename RESULT_TYPE>
15 class AmazonWebServiceResult;
16 
17 namespace Utils
18 {
19 namespace Json
20 {
21  class JsonValue;
22 } // namespace Json
23 } // namespace Utils
24 namespace ServiceCatalog
25 {
26 namespace Model
27 {
29  {
30  public:
34 
35 
40  inline const Aws::String& GetPortfolioShareToken() const{ return m_portfolioShareToken; }
41 
46  inline void SetPortfolioShareToken(const Aws::String& value) { m_portfolioShareToken = value; }
47 
52  inline void SetPortfolioShareToken(Aws::String&& value) { m_portfolioShareToken = std::move(value); }
53 
58  inline void SetPortfolioShareToken(const char* value) { m_portfolioShareToken.assign(value); }
59 
64  inline UpdatePortfolioShareResult& WithPortfolioShareToken(const Aws::String& value) { SetPortfolioShareToken(value); return *this;}
65 
70  inline UpdatePortfolioShareResult& WithPortfolioShareToken(Aws::String&& value) { SetPortfolioShareToken(std::move(value)); return *this;}
71 
76  inline UpdatePortfolioShareResult& WithPortfolioShareToken(const char* value) { SetPortfolioShareToken(value); return *this;}
77 
78 
84  inline const ShareStatus& GetStatus() const{ return m_status; }
85 
91  inline void SetStatus(const ShareStatus& value) { m_status = value; }
92 
98  inline void SetStatus(ShareStatus&& value) { m_status = std::move(value); }
99 
105  inline UpdatePortfolioShareResult& WithStatus(const ShareStatus& value) { SetStatus(value); return *this;}
106 
112  inline UpdatePortfolioShareResult& WithStatus(ShareStatus&& value) { SetStatus(std::move(value)); return *this;}
113 
114  private:
115 
116  Aws::String m_portfolioShareToken;
117 
118  ShareStatus m_status;
119  };
120 
121 } // namespace Model
122 } // namespace ServiceCatalog
123 } // namespace Aws
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::ServiceCatalog::Model::UpdatePortfolioShareResult::WithStatus
UpdatePortfolioShareResult & WithStatus(ShareStatus &&value)
Definition: UpdatePortfolioShareResult.h:112
Aws::ServiceCatalog::Model::UpdatePortfolioShareResult
Definition: UpdatePortfolioShareResult.h:29
Aws::ServiceCatalog::Model::UpdatePortfolioShareResult::WithStatus
UpdatePortfolioShareResult & WithStatus(const ShareStatus &value)
Definition: UpdatePortfolioShareResult.h:105
Aws::ServiceCatalog::Model::UpdatePortfolioShareResult::GetStatus
const ShareStatus & GetStatus() const
Definition: UpdatePortfolioShareResult.h:84
Aws::ServiceCatalog::Model::UpdatePortfolioShareResult::WithPortfolioShareToken
UpdatePortfolioShareResult & WithPortfolioShareToken(Aws::String &&value)
Definition: UpdatePortfolioShareResult.h:70
AWS_SERVICECATALOG_API
#define AWS_SERVICECATALOG_API
Definition: ServiceCatalog_EXPORTS.h:28
Aws::ServiceCatalog::Model::UpdatePortfolioShareResult::UpdatePortfolioShareResult
UpdatePortfolioShareResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::ServiceCatalog::Model::UpdatePortfolioShareResult::SetPortfolioShareToken
void SetPortfolioShareToken(const Aws::String &value)
Definition: UpdatePortfolioShareResult.h:46
Aws::ServiceCatalog::Model::UpdatePortfolioShareResult::SetPortfolioShareToken
void SetPortfolioShareToken(const char *value)
Definition: UpdatePortfolioShareResult.h:58
Aws::ServiceCatalog::Model::UpdatePortfolioShareResult::SetStatus
void SetStatus(ShareStatus &&value)
Definition: UpdatePortfolioShareResult.h:98
Aws::ServiceCatalog::Model::UpdatePortfolioShareResult::operator=
UpdatePortfolioShareResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::ServiceCatalog::Model::UpdatePortfolioShareResult::WithPortfolioShareToken
UpdatePortfolioShareResult & WithPortfolioShareToken(const char *value)
Definition: UpdatePortfolioShareResult.h:76
AWSString.h
Aws::ServiceCatalog::Model::UpdatePortfolioShareResult::SetStatus
void SetStatus(const ShareStatus &value)
Definition: UpdatePortfolioShareResult.h:91
Aws::ServiceCatalog::Model::ShareStatus
ShareStatus
Definition: ShareStatus.h:17
Aws::ServiceCatalog::Model::UpdatePortfolioShareResult::UpdatePortfolioShareResult
UpdatePortfolioShareResult()
ShareStatus.h
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::UpdatePortfolioShareResult::GetPortfolioShareToken
const Aws::String & GetPortfolioShareToken() const
Definition: UpdatePortfolioShareResult.h:40
ServiceCatalog_EXPORTS.h
Aws::ServiceCatalog::Model::UpdatePortfolioShareResult::WithPortfolioShareToken
UpdatePortfolioShareResult & WithPortfolioShareToken(const Aws::String &value)
Definition: UpdatePortfolioShareResult.h:64
Aws::ServiceCatalog::Model::UpdatePortfolioShareResult::SetPortfolioShareToken
void SetPortfolioShareToken(Aws::String &&value)
Definition: UpdatePortfolioShareResult.h:52