AWS SDK for C++  1.9.108
AWS SDK for C++
ShareDetails.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Utils
16 {
17 namespace Json
18 {
19  class JsonValue;
20  class JsonView;
21 } // namespace Json
22 } // namespace Utils
23 namespace ServiceCatalog
24 {
25 namespace Model
26 {
27 
35  {
36  public:
41 
42 
46  inline const Aws::Vector<Aws::String>& GetSuccessfulShares() const{ return m_successfulShares; }
47 
51  inline bool SuccessfulSharesHasBeenSet() const { return m_successfulSharesHasBeenSet; }
52 
56  inline void SetSuccessfulShares(const Aws::Vector<Aws::String>& value) { m_successfulSharesHasBeenSet = true; m_successfulShares = value; }
57 
61  inline void SetSuccessfulShares(Aws::Vector<Aws::String>&& value) { m_successfulSharesHasBeenSet = true; m_successfulShares = std::move(value); }
62 
66  inline ShareDetails& WithSuccessfulShares(const Aws::Vector<Aws::String>& value) { SetSuccessfulShares(value); return *this;}
67 
71  inline ShareDetails& WithSuccessfulShares(Aws::Vector<Aws::String>&& value) { SetSuccessfulShares(std::move(value)); return *this;}
72 
76  inline ShareDetails& AddSuccessfulShares(const Aws::String& value) { m_successfulSharesHasBeenSet = true; m_successfulShares.push_back(value); return *this; }
77 
81  inline ShareDetails& AddSuccessfulShares(Aws::String&& value) { m_successfulSharesHasBeenSet = true; m_successfulShares.push_back(std::move(value)); return *this; }
82 
86  inline ShareDetails& AddSuccessfulShares(const char* value) { m_successfulSharesHasBeenSet = true; m_successfulShares.push_back(value); return *this; }
87 
88 
92  inline const Aws::Vector<ShareError>& GetShareErrors() const{ return m_shareErrors; }
93 
97  inline bool ShareErrorsHasBeenSet() const { return m_shareErrorsHasBeenSet; }
98 
102  inline void SetShareErrors(const Aws::Vector<ShareError>& value) { m_shareErrorsHasBeenSet = true; m_shareErrors = value; }
103 
107  inline void SetShareErrors(Aws::Vector<ShareError>&& value) { m_shareErrorsHasBeenSet = true; m_shareErrors = std::move(value); }
108 
112  inline ShareDetails& WithShareErrors(const Aws::Vector<ShareError>& value) { SetShareErrors(value); return *this;}
113 
117  inline ShareDetails& WithShareErrors(Aws::Vector<ShareError>&& value) { SetShareErrors(std::move(value)); return *this;}
118 
122  inline ShareDetails& AddShareErrors(const ShareError& value) { m_shareErrorsHasBeenSet = true; m_shareErrors.push_back(value); return *this; }
123 
127  inline ShareDetails& AddShareErrors(ShareError&& value) { m_shareErrorsHasBeenSet = true; m_shareErrors.push_back(std::move(value)); return *this; }
128 
129  private:
130 
131  Aws::Vector<Aws::String> m_successfulShares;
132  bool m_successfulSharesHasBeenSet;
133 
134  Aws::Vector<ShareError> m_shareErrors;
135  bool m_shareErrorsHasBeenSet;
136  };
137 
138 } // namespace Model
139 } // namespace ServiceCatalog
140 } // namespace Aws
Aws::ServiceCatalog::Model::ShareDetails::GetSuccessfulShares
const Aws::Vector< Aws::String > & GetSuccessfulShares() const
Definition: ShareDetails.h:46
Aws::ServiceCatalog::Model::ShareDetails::SetShareErrors
void SetShareErrors(const Aws::Vector< ShareError > &value)
Definition: ShareDetails.h:102
Aws::ServiceCatalog::Model::ShareDetails::SetSuccessfulShares
void SetSuccessfulShares(const Aws::Vector< Aws::String > &value)
Definition: ShareDetails.h:56
Aws::ServiceCatalog::Model::ShareDetails::SuccessfulSharesHasBeenSet
bool SuccessfulSharesHasBeenSet() const
Definition: ShareDetails.h:51
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::ServiceCatalog::Model::ShareDetails::operator=
ShareDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_SERVICECATALOG_API
#define AWS_SERVICECATALOG_API
Definition: ServiceCatalog_EXPORTS.h:28
Aws::ServiceCatalog::Model::ShareDetails::ShareErrorsHasBeenSet
bool ShareErrorsHasBeenSet() const
Definition: ShareDetails.h:97
AWSVector.h
Aws::ServiceCatalog::Model::ShareDetails::AddShareErrors
ShareDetails & AddShareErrors(const ShareError &value)
Definition: ShareDetails.h:122
Aws::ServiceCatalog::Model::ShareDetails::WithShareErrors
ShareDetails & WithShareErrors(const Aws::Vector< ShareError > &value)
Definition: ShareDetails.h:112
Aws::ServiceCatalog::Model::ShareDetails::AddSuccessfulShares
ShareDetails & AddSuccessfulShares(const char *value)
Definition: ShareDetails.h:86
Aws::ServiceCatalog::Model::ShareDetails::SetShareErrors
void SetShareErrors(Aws::Vector< ShareError > &&value)
Definition: ShareDetails.h:107
Aws::ServiceCatalog::Model::ShareError
Definition: ShareError.h:34
Aws::ServiceCatalog::Model::ShareDetails
Definition: ShareDetails.h:35
Aws::ServiceCatalog::Model::ShareDetails::AddSuccessfulShares
ShareDetails & AddSuccessfulShares(Aws::String &&value)
Definition: ShareDetails.h:81
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::ServiceCatalog::Model::ShareDetails::GetShareErrors
const Aws::Vector< ShareError > & GetShareErrors() const
Definition: ShareDetails.h:92
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::ServiceCatalog::Model::ShareDetails::WithSuccessfulShares
ShareDetails & WithSuccessfulShares(Aws::Vector< Aws::String > &&value)
Definition: ShareDetails.h:71
Aws::ServiceCatalog::Model::ShareDetails::WithSuccessfulShares
ShareDetails & WithSuccessfulShares(const Aws::Vector< Aws::String > &value)
Definition: ShareDetails.h:66
ShareError.h
Aws::ServiceCatalog::Model::ShareDetails::AddShareErrors
ShareDetails & AddShareErrors(ShareError &&value)
Definition: ShareDetails.h:127
Aws
Definition: AccessManagementClient.h:15
Aws::ServiceCatalog::Model::ShareDetails::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::ServiceCatalog::Model::ShareDetails::ShareDetails
ShareDetails()
Aws::ServiceCatalog::Model::ShareDetails::WithShareErrors
ShareDetails & WithShareErrors(Aws::Vector< ShareError > &&value)
Definition: ShareDetails.h:117
Aws::ServiceCatalog::Model::ShareDetails::ShareDetails
ShareDetails(Aws::Utils::Json::JsonView jsonValue)
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::ServiceCatalog::Model::ShareDetails::AddSuccessfulShares
ShareDetails & AddSuccessfulShares(const Aws::String &value)
Definition: ShareDetails.h:76
ServiceCatalog_EXPORTS.h
Aws::ServiceCatalog::Model::ShareDetails::SetSuccessfulShares
void SetSuccessfulShares(Aws::Vector< Aws::String > &&value)
Definition: ShareDetails.h:61