AWS SDK for C++  1.8.152
AWS SDK for C++
GetDifferencesResult.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 CodeCommit
26 {
27 namespace Model
28 {
30  {
31  public:
35 
36 
41  inline const Aws::Vector<Difference>& GetDifferences() const{ return m_differences; }
42 
47  inline void SetDifferences(const Aws::Vector<Difference>& value) { m_differences = value; }
48 
53  inline void SetDifferences(Aws::Vector<Difference>&& value) { m_differences = std::move(value); }
54 
59  inline GetDifferencesResult& WithDifferences(const Aws::Vector<Difference>& value) { SetDifferences(value); return *this;}
60 
65  inline GetDifferencesResult& WithDifferences(Aws::Vector<Difference>&& value) { SetDifferences(std::move(value)); return *this;}
66 
71  inline GetDifferencesResult& AddDifferences(const Difference& value) { m_differences.push_back(value); return *this; }
72 
77  inline GetDifferencesResult& AddDifferences(Difference&& value) { m_differences.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 GetDifferencesResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
109 
114  inline GetDifferencesResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
115 
120  inline GetDifferencesResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
121 
122  private:
123 
124  Aws::Vector<Difference> m_differences;
125 
126  Aws::String m_nextToken;
127  };
128 
129 } // namespace Model
130 } // namespace CodeCommit
131 } // namespace Aws
Aws::CodeCommit::Model::GetDifferencesResult::operator=
GetDifferencesResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::CodeCommit::Model::GetDifferencesResult
Definition: GetDifferencesResult.h:30
CodeCommit_EXPORTS.h
Aws::CodeCommit::Model::GetDifferencesResult::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: GetDifferencesResult.h:96
Aws::CodeCommit::Model::GetDifferencesResult::WithDifferences
GetDifferencesResult & WithDifferences(Aws::Vector< Difference > &&value)
Definition: GetDifferencesResult.h:65
Aws::CodeCommit::Model::GetDifferencesResult::GetDifferencesResult
GetDifferencesResult()
Aws::CodeCommit::Model::GetDifferencesResult::GetDifferencesResult
GetDifferencesResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Difference.h
Aws::CodeCommit::Model::GetDifferencesResult::AddDifferences
GetDifferencesResult & AddDifferences(Difference &&value)
Definition: GetDifferencesResult.h:77
Aws::CodeCommit::Model::GetDifferencesResult::AddDifferences
GetDifferencesResult & AddDifferences(const Difference &value)
Definition: GetDifferencesResult.h:71
AWSVector.h
Aws::CodeCommit::Model::GetDifferencesResult::WithNextToken
GetDifferencesResult & WithNextToken(Aws::String &&value)
Definition: GetDifferencesResult.h:114
Aws::CodeCommit::Model::GetDifferencesResult::SetDifferences
void SetDifferences(Aws::Vector< Difference > &&value)
Definition: GetDifferencesResult.h:53
Aws::CodeCommit::Model::GetDifferencesResult::WithDifferences
GetDifferencesResult & WithDifferences(const Aws::Vector< Difference > &value)
Definition: GetDifferencesResult.h:59
Aws::CodeCommit::Model::Difference
Definition: Difference.h:34
Aws::CodeCommit::Model::GetDifferencesResult::GetNextToken
const Aws::String & GetNextToken() const
Definition: GetDifferencesResult.h:84
Aws::CodeCommit::Model::GetDifferencesResult::SetDifferences
void SetDifferences(const Aws::Vector< Difference > &value)
Definition: GetDifferencesResult.h:47
AWSString.h
Aws::CodeCommit::Model::GetDifferencesResult::WithNextToken
GetDifferencesResult & WithNextToken(const char *value)
Definition: GetDifferencesResult.h:120
AWS_CODECOMMIT_API
#define AWS_CODECOMMIT_API
Definition: CodeCommit_EXPORTS.h:28
Aws::CodeCommit::Model::GetDifferencesResult::SetNextToken
void SetNextToken(const char *value)
Definition: GetDifferencesResult.h:102
Aws::CodeCommit::Model::GetDifferencesResult::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: GetDifferencesResult.h:90
Aws::CodeCommit::Model::GetDifferencesResult::WithNextToken
GetDifferencesResult & WithNextToken(const Aws::String &value)
Definition: GetDifferencesResult.h:108
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::CodeCommit::Model::GetDifferencesResult::GetDifferences
const Aws::Vector< Difference > & GetDifferences() const
Definition: GetDifferencesResult.h:41