AWS SDK for C++  1.9.109
AWS SDK for C++
ListLongTermPricingResult.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 Snowball
26 {
27 namespace Model
28 {
30  {
31  public:
35 
36 
41  inline const Aws::Vector<LongTermPricingListEntry>& GetLongTermPricingEntries() const{ return m_longTermPricingEntries; }
42 
47  inline void SetLongTermPricingEntries(const Aws::Vector<LongTermPricingListEntry>& value) { m_longTermPricingEntries = value; }
48 
53  inline void SetLongTermPricingEntries(Aws::Vector<LongTermPricingListEntry>&& value) { m_longTermPricingEntries = std::move(value); }
54 
59  inline ListLongTermPricingResult& WithLongTermPricingEntries(const Aws::Vector<LongTermPricingListEntry>& value) { SetLongTermPricingEntries(value); return *this;}
60 
65  inline ListLongTermPricingResult& WithLongTermPricingEntries(Aws::Vector<LongTermPricingListEntry>&& value) { SetLongTermPricingEntries(std::move(value)); return *this;}
66 
71  inline ListLongTermPricingResult& AddLongTermPricingEntries(const LongTermPricingListEntry& value) { m_longTermPricingEntries.push_back(value); return *this; }
72 
77  inline ListLongTermPricingResult& AddLongTermPricingEntries(LongTermPricingListEntry&& value) { m_longTermPricingEntries.push_back(std::move(value)); return *this; }
78 
79 
84  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
85 
90  inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
91 
96  inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
97 
102  inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
103 
108  inline ListLongTermPricingResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
109 
114  inline ListLongTermPricingResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
115 
120  inline ListLongTermPricingResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
121 
122  private:
123 
124  Aws::Vector<LongTermPricingListEntry> m_longTermPricingEntries;
125 
126  Aws::String m_nextToken;
127  };
128 
129 } // namespace Model
130 } // namespace Snowball
131 } // namespace Aws
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::Snowball::Model::ListLongTermPricingResult::SetLongTermPricingEntries
void SetLongTermPricingEntries(const Aws::Vector< LongTermPricingListEntry > &value)
Definition: ListLongTermPricingResult.h:47
Aws::Snowball::Model::ListLongTermPricingResult::WithNextToken
ListLongTermPricingResult & WithNextToken(Aws::String &&value)
Definition: ListLongTermPricingResult.h:114
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::Snowball::Model::ListLongTermPricingResult::WithLongTermPricingEntries
ListLongTermPricingResult & WithLongTermPricingEntries(const Aws::Vector< LongTermPricingListEntry > &value)
Definition: ListLongTermPricingResult.h:59
Aws::Snowball::Model::ListLongTermPricingResult::operator=
ListLongTermPricingResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWSVector.h
Aws::Snowball::Model::ListLongTermPricingResult::GetNextToken
const Aws::String & GetNextToken() const
Definition: ListLongTermPricingResult.h:84
Aws::Snowball::Model::ListLongTermPricingResult::GetLongTermPricingEntries
const Aws::Vector< LongTermPricingListEntry > & GetLongTermPricingEntries() const
Definition: ListLongTermPricingResult.h:41
AWS_SNOWBALL_API
#define AWS_SNOWBALL_API
Definition: Snowball_EXPORTS.h:28
Aws::Snowball::Model::ListLongTermPricingResult::ListLongTermPricingResult
ListLongTermPricingResult()
Aws::Snowball::Model::ListLongTermPricingResult::WithNextToken
ListLongTermPricingResult & WithNextToken(const Aws::String &value)
Definition: ListLongTermPricingResult.h:108
Aws::Snowball::Model::ListLongTermPricingResult::SetLongTermPricingEntries
void SetLongTermPricingEntries(Aws::Vector< LongTermPricingListEntry > &&value)
Definition: ListLongTermPricingResult.h:53
AWSString.h
Aws::Snowball::Model::ListLongTermPricingResult::AddLongTermPricingEntries
ListLongTermPricingResult & AddLongTermPricingEntries(LongTermPricingListEntry &&value)
Definition: ListLongTermPricingResult.h:77
Aws::Snowball::Model::ListLongTermPricingResult::AddLongTermPricingEntries
ListLongTermPricingResult & AddLongTermPricingEntries(const LongTermPricingListEntry &value)
Definition: ListLongTermPricingResult.h:71
Aws::Snowball::Model::ListLongTermPricingResult::WithNextToken
ListLongTermPricingResult & WithNextToken(const char *value)
Definition: ListLongTermPricingResult.h:120
Aws
Definition: AccessManagementClient.h:15
Aws::Snowball::Model::ListLongTermPricingResult::SetNextToken
void SetNextToken(const char *value)
Definition: ListLongTermPricingResult.h:102
Aws::Snowball::Model::LongTermPricingListEntry
Definition: LongTermPricingListEntry.h:37
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Snowball_EXPORTS.h
LongTermPricingListEntry.h
Aws::Snowball::Model::ListLongTermPricingResult::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: ListLongTermPricingResult.h:96
Aws::Snowball::Model::ListLongTermPricingResult::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: ListLongTermPricingResult.h:90
Aws::Snowball::Model::ListLongTermPricingResult
Definition: ListLongTermPricingResult.h:30
Aws::Snowball::Model::ListLongTermPricingResult::WithLongTermPricingEntries
ListLongTermPricingResult & WithLongTermPricingEntries(Aws::Vector< LongTermPricingListEntry > &&value)
Definition: ListLongTermPricingResult.h:65
Aws::Snowball::Model::ListLongTermPricingResult::ListLongTermPricingResult
ListLongTermPricingResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)