AWS SDK for C++  1.9.132
AWS SDK for C++
ListVolumeInitiatorsResult.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 
45  inline const Aws::Vector<Aws::String>& GetInitiators() const{ return m_initiators; }
46 
51  inline void SetInitiators(const Aws::Vector<Aws::String>& value) { m_initiators = value; }
52 
57  inline void SetInitiators(Aws::Vector<Aws::String>&& value) { m_initiators = std::move(value); }
58 
63  inline ListVolumeInitiatorsResult& WithInitiators(const Aws::Vector<Aws::String>& value) { SetInitiators(value); return *this;}
64 
69  inline ListVolumeInitiatorsResult& WithInitiators(Aws::Vector<Aws::String>&& value) { SetInitiators(std::move(value)); return *this;}
70 
75  inline ListVolumeInitiatorsResult& AddInitiators(const Aws::String& value) { m_initiators.push_back(value); return *this; }
76 
81  inline ListVolumeInitiatorsResult& AddInitiators(Aws::String&& value) { m_initiators.push_back(std::move(value)); return *this; }
82 
87  inline ListVolumeInitiatorsResult& AddInitiators(const char* value) { m_initiators.push_back(value); return *this; }
88 
89  private:
90 
91  Aws::Vector<Aws::String> m_initiators;
92  };
93 
94 } // namespace Model
95 } // namespace StorageGateway
96 } // namespace Aws
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::StorageGateway::Model::ListVolumeInitiatorsResult::AddInitiators
ListVolumeInitiatorsResult & AddInitiators(const Aws::String &value)
Definition: ListVolumeInitiatorsResult.h:75
Aws::StorageGateway::Model::ListVolumeInitiatorsResult::WithInitiators
ListVolumeInitiatorsResult & WithInitiators(Aws::Vector< Aws::String > &&value)
Definition: ListVolumeInitiatorsResult.h:69
Aws::StorageGateway::Model::ListVolumeInitiatorsResult::GetInitiators
const Aws::Vector< Aws::String > & GetInitiators() const
Definition: ListVolumeInitiatorsResult.h:45
Aws::StorageGateway::Model::ListVolumeInitiatorsResult::operator=
ListVolumeInitiatorsResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::StorageGateway::Model::ListVolumeInitiatorsResult
Definition: ListVolumeInitiatorsResult.h:34
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::StorageGateway::Model::ListVolumeInitiatorsResult::AddInitiators
ListVolumeInitiatorsResult & AddInitiators(const char *value)
Definition: ListVolumeInitiatorsResult.h:87
AWSVector.h
Aws::StorageGateway::Model::ListVolumeInitiatorsResult::ListVolumeInitiatorsResult
ListVolumeInitiatorsResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWSString.h
Aws::StorageGateway::Model::ListVolumeInitiatorsResult::AddInitiators
ListVolumeInitiatorsResult & AddInitiators(Aws::String &&value)
Definition: ListVolumeInitiatorsResult.h:81
AWS_STORAGEGATEWAY_API
#define AWS_STORAGEGATEWAY_API
Definition: StorageGateway_EXPORTS.h:28
Aws::StorageGateway::Model::ListVolumeInitiatorsResult::ListVolumeInitiatorsResult
ListVolumeInitiatorsResult()
Aws::StorageGateway::Model::ListVolumeInitiatorsResult::SetInitiators
void SetInitiators(Aws::Vector< Aws::String > &&value)
Definition: ListVolumeInitiatorsResult.h:57
Aws::StorageGateway::Model::ListVolumeInitiatorsResult::SetInitiators
void SetInitiators(const Aws::Vector< Aws::String > &value)
Definition: ListVolumeInitiatorsResult.h:51
Aws
Definition: AccessManagementClient.h:15
StorageGateway_EXPORTS.h
Aws::StorageGateway::Model::ListVolumeInitiatorsResult::WithInitiators
ListVolumeInitiatorsResult & WithInitiators(const Aws::Vector< Aws::String > &value)
Definition: ListVolumeInitiatorsResult.h:63
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97