AWS SDK for C++  1.9.126
AWS SDK for C++
DescribeChapCredentialsResult.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 StorageGateway
25 {
26 namespace Model
27 {
34  {
35  public:
39 
40 
55  inline const Aws::Vector<ChapInfo>& GetChapCredentials() const{ return m_chapCredentials; }
56 
71  inline void SetChapCredentials(const Aws::Vector<ChapInfo>& value) { m_chapCredentials = value; }
72 
87  inline void SetChapCredentials(Aws::Vector<ChapInfo>&& value) { m_chapCredentials = std::move(value); }
88 
103  inline DescribeChapCredentialsResult& WithChapCredentials(const Aws::Vector<ChapInfo>& value) { SetChapCredentials(value); return *this;}
104 
119  inline DescribeChapCredentialsResult& WithChapCredentials(Aws::Vector<ChapInfo>&& value) { SetChapCredentials(std::move(value)); return *this;}
120 
135  inline DescribeChapCredentialsResult& AddChapCredentials(const ChapInfo& value) { m_chapCredentials.push_back(value); return *this; }
136 
151  inline DescribeChapCredentialsResult& AddChapCredentials(ChapInfo&& value) { m_chapCredentials.push_back(std::move(value)); return *this; }
152 
153  private:
154 
155  Aws::Vector<ChapInfo> m_chapCredentials;
156  };
157 
158 } // namespace Model
159 } // namespace StorageGateway
160 } // namespace Aws
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::StorageGateway::Model::DescribeChapCredentialsResult::AddChapCredentials
DescribeChapCredentialsResult & AddChapCredentials(const ChapInfo &value)
Definition: DescribeChapCredentialsResult.h:135
Aws::StorageGateway::Model::ChapInfo
Definition: ChapInfo.h:34
Aws::StorageGateway::Model::DescribeChapCredentialsResult::WithChapCredentials
DescribeChapCredentialsResult & WithChapCredentials(const Aws::Vector< ChapInfo > &value)
Definition: DescribeChapCredentialsResult.h:103
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::StorageGateway::Model::DescribeChapCredentialsResult::GetChapCredentials
const Aws::Vector< ChapInfo > & GetChapCredentials() const
Definition: DescribeChapCredentialsResult.h:55
Aws::StorageGateway::Model::DescribeChapCredentialsResult::SetChapCredentials
void SetChapCredentials(const Aws::Vector< ChapInfo > &value)
Definition: DescribeChapCredentialsResult.h:71
AWSVector.h
Aws::StorageGateway::Model::DescribeChapCredentialsResult::DescribeChapCredentialsResult
DescribeChapCredentialsResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::StorageGateway::Model::DescribeChapCredentialsResult::SetChapCredentials
void SetChapCredentials(Aws::Vector< ChapInfo > &&value)
Definition: DescribeChapCredentialsResult.h:87
Aws::StorageGateway::Model::DescribeChapCredentialsResult::WithChapCredentials
DescribeChapCredentialsResult & WithChapCredentials(Aws::Vector< ChapInfo > &&value)
Definition: DescribeChapCredentialsResult.h:119
ChapInfo.h
AWS_STORAGEGATEWAY_API
#define AWS_STORAGEGATEWAY_API
Definition: StorageGateway_EXPORTS.h:28
Aws
Definition: AccessManagementClient.h:15
StorageGateway_EXPORTS.h
Aws::StorageGateway::Model::DescribeChapCredentialsResult::AddChapCredentials
DescribeChapCredentialsResult & AddChapCredentials(ChapInfo &&value)
Definition: DescribeChapCredentialsResult.h:151
Aws::StorageGateway::Model::DescribeChapCredentialsResult
Definition: DescribeChapCredentialsResult.h:34
Aws::StorageGateway::Model::DescribeChapCredentialsResult::operator=
DescribeChapCredentialsResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::StorageGateway::Model::DescribeChapCredentialsResult::DescribeChapCredentialsResult
DescribeChapCredentialsResult()