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/pinpoint/Pinpoint_EXPORTS.h>
8 #include <aws/core/utils/memory/stl/AWSVector.h>
9 #include <aws/core/utils/memory/stl/AWSString.h>
10 #include <aws/pinpoint/model/ExportJobResponse.h>
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Utils
16 {
17 namespace Json
18 {
19   class JsonValue;
20   class JsonView;
21 } // namespace Json
22 } // namespace Utils
23 namespace Pinpoint
24 {
25 namespace Model
26 {
27 
28   /**
29    * <p>Provides information about all the export jobs that are associated with an
30    * application or segment. An export job is a job that exports endpoint definitions
31    * to a file.</p><p><h3>See Also:</h3>   <a
32    * href="http://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/ExportJobsResponse">AWS
33    * API Reference</a></p>
34    */
35   class AWS_PINPOINT_API ExportJobsResponse
36   {
37   public:
38     ExportJobsResponse();
39     ExportJobsResponse(Aws::Utils::Json::JsonView jsonValue);
40     ExportJobsResponse& operator=(Aws::Utils::Json::JsonView jsonValue);
41     Aws::Utils::Json::JsonValue Jsonize() const;
42 
43 
44     /**
45      * <p>An array of responses, one for each export job that's associated with the
46      * application (Export Jobs resource) or segment (Segment Export Jobs
47      * resource).</p>
48      */
GetItem()49     inline const Aws::Vector<ExportJobResponse>& GetItem() const{ return m_item; }
50 
51     /**
52      * <p>An array of responses, one for each export job that's associated with the
53      * application (Export Jobs resource) or segment (Segment Export Jobs
54      * resource).</p>
55      */
ItemHasBeenSet()56     inline bool ItemHasBeenSet() const { return m_itemHasBeenSet; }
57 
58     /**
59      * <p>An array of responses, one for each export job that's associated with the
60      * application (Export Jobs resource) or segment (Segment Export Jobs
61      * resource).</p>
62      */
SetItem(const Aws::Vector<ExportJobResponse> & value)63     inline void SetItem(const Aws::Vector<ExportJobResponse>& value) { m_itemHasBeenSet = true; m_item = value; }
64 
65     /**
66      * <p>An array of responses, one for each export job that's associated with the
67      * application (Export Jobs resource) or segment (Segment Export Jobs
68      * resource).</p>
69      */
SetItem(Aws::Vector<ExportJobResponse> && value)70     inline void SetItem(Aws::Vector<ExportJobResponse>&& value) { m_itemHasBeenSet = true; m_item = std::move(value); }
71 
72     /**
73      * <p>An array of responses, one for each export job that's associated with the
74      * application (Export Jobs resource) or segment (Segment Export Jobs
75      * resource).</p>
76      */
WithItem(const Aws::Vector<ExportJobResponse> & value)77     inline ExportJobsResponse& WithItem(const Aws::Vector<ExportJobResponse>& value) { SetItem(value); return *this;}
78 
79     /**
80      * <p>An array of responses, one for each export job that's associated with the
81      * application (Export Jobs resource) or segment (Segment Export Jobs
82      * resource).</p>
83      */
WithItem(Aws::Vector<ExportJobResponse> && value)84     inline ExportJobsResponse& WithItem(Aws::Vector<ExportJobResponse>&& value) { SetItem(std::move(value)); return *this;}
85 
86     /**
87      * <p>An array of responses, one for each export job that's associated with the
88      * application (Export Jobs resource) or segment (Segment Export Jobs
89      * resource).</p>
90      */
AddItem(const ExportJobResponse & value)91     inline ExportJobsResponse& AddItem(const ExportJobResponse& value) { m_itemHasBeenSet = true; m_item.push_back(value); return *this; }
92 
93     /**
94      * <p>An array of responses, one for each export job that's associated with the
95      * application (Export Jobs resource) or segment (Segment Export Jobs
96      * resource).</p>
97      */
AddItem(ExportJobResponse && value)98     inline ExportJobsResponse& AddItem(ExportJobResponse&& value) { m_itemHasBeenSet = true; m_item.push_back(std::move(value)); return *this; }
99 
100 
101     /**
102      * <p>The string to use in a subsequent request to get the next page of results in
103      * a paginated response. This value is null if there are no additional pages.</p>
104      */
GetNextToken()105     inline const Aws::String& GetNextToken() const{ return m_nextToken; }
106 
107     /**
108      * <p>The string to use in a subsequent request to get the next page of results in
109      * a paginated response. This value is null if there are no additional pages.</p>
110      */
NextTokenHasBeenSet()111     inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
112 
113     /**
114      * <p>The string to use in a subsequent request to get the next page of results in
115      * a paginated response. This value is null if there are no additional pages.</p>
116      */
SetNextToken(const Aws::String & value)117     inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
118 
119     /**
120      * <p>The string to use in a subsequent request to get the next page of results in
121      * a paginated response. This value is null if there are no additional pages.</p>
122      */
SetNextToken(Aws::String && value)123     inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
124 
125     /**
126      * <p>The string to use in a subsequent request to get the next page of results in
127      * a paginated response. This value is null if there are no additional pages.</p>
128      */
SetNextToken(const char * value)129     inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
130 
131     /**
132      * <p>The string to use in a subsequent request to get the next page of results in
133      * a paginated response. This value is null if there are no additional pages.</p>
134      */
WithNextToken(const Aws::String & value)135     inline ExportJobsResponse& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
136 
137     /**
138      * <p>The string to use in a subsequent request to get the next page of results in
139      * a paginated response. This value is null if there are no additional pages.</p>
140      */
WithNextToken(Aws::String && value)141     inline ExportJobsResponse& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
142 
143     /**
144      * <p>The string to use in a subsequent request to get the next page of results in
145      * a paginated response. This value is null if there are no additional pages.</p>
146      */
WithNextToken(const char * value)147     inline ExportJobsResponse& WithNextToken(const char* value) { SetNextToken(value); return *this;}
148 
149   private:
150 
151     Aws::Vector<ExportJobResponse> m_item;
152     bool m_itemHasBeenSet;
153 
154     Aws::String m_nextToken;
155     bool m_nextTokenHasBeenSet;
156   };
157 
158 } // namespace Model
159 } // namespace Pinpoint
160 } // namespace Aws
161