1 /**
2  * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3  * SPDX-License-Identifier: Apache-2.0.
4  */
5 
6 #pragma once
7 #include <aws/xray/XRay_EXPORTS.h>
8 #include <aws/core/utils/memory/stl/AWSVector.h>
9 #include <aws/core/utils/memory/stl/AWSString.h>
10 #include <aws/xray/model/Service.h>
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 XRay
26 {
27 namespace Model
28 {
29   class AWS_XRAY_API GetTraceGraphResult
30   {
31   public:
32     GetTraceGraphResult();
33     GetTraceGraphResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
34     GetTraceGraphResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
35 
36 
37     /**
38      * <p>The services that have processed one of the specified requests.</p>
39      */
GetServices()40     inline const Aws::Vector<Service>& GetServices() const{ return m_services; }
41 
42     /**
43      * <p>The services that have processed one of the specified requests.</p>
44      */
SetServices(const Aws::Vector<Service> & value)45     inline void SetServices(const Aws::Vector<Service>& value) { m_services = value; }
46 
47     /**
48      * <p>The services that have processed one of the specified requests.</p>
49      */
SetServices(Aws::Vector<Service> && value)50     inline void SetServices(Aws::Vector<Service>&& value) { m_services = std::move(value); }
51 
52     /**
53      * <p>The services that have processed one of the specified requests.</p>
54      */
WithServices(const Aws::Vector<Service> & value)55     inline GetTraceGraphResult& WithServices(const Aws::Vector<Service>& value) { SetServices(value); return *this;}
56 
57     /**
58      * <p>The services that have processed one of the specified requests.</p>
59      */
WithServices(Aws::Vector<Service> && value)60     inline GetTraceGraphResult& WithServices(Aws::Vector<Service>&& value) { SetServices(std::move(value)); return *this;}
61 
62     /**
63      * <p>The services that have processed one of the specified requests.</p>
64      */
AddServices(const Service & value)65     inline GetTraceGraphResult& AddServices(const Service& value) { m_services.push_back(value); return *this; }
66 
67     /**
68      * <p>The services that have processed one of the specified requests.</p>
69      */
AddServices(Service && value)70     inline GetTraceGraphResult& AddServices(Service&& value) { m_services.push_back(std::move(value)); return *this; }
71 
72 
73     /**
74      * <p>Pagination token.</p>
75      */
GetNextToken()76     inline const Aws::String& GetNextToken() const{ return m_nextToken; }
77 
78     /**
79      * <p>Pagination token.</p>
80      */
SetNextToken(const Aws::String & value)81     inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
82 
83     /**
84      * <p>Pagination token.</p>
85      */
SetNextToken(Aws::String && value)86     inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
87 
88     /**
89      * <p>Pagination token.</p>
90      */
SetNextToken(const char * value)91     inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
92 
93     /**
94      * <p>Pagination token.</p>
95      */
WithNextToken(const Aws::String & value)96     inline GetTraceGraphResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
97 
98     /**
99      * <p>Pagination token.</p>
100      */
WithNextToken(Aws::String && value)101     inline GetTraceGraphResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
102 
103     /**
104      * <p>Pagination token.</p>
105      */
WithNextToken(const char * value)106     inline GetTraceGraphResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
107 
108   private:
109 
110     Aws::Vector<Service> m_services;
111 
112     Aws::String m_nextToken;
113   };
114 
115 } // namespace Model
116 } // namespace XRay
117 } // namespace Aws
118