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/lookoutvision/LookoutforVision_EXPORTS.h> 8 #include <aws/core/utils/memory/stl/AWSVector.h> 9 #include <aws/core/utils/memory/stl/AWSString.h> 10 #include <aws/lookoutvision/model/ProjectMetadata.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 LookoutforVision 26 { 27 namespace Model 28 { 29 class AWS_LOOKOUTFORVISION_API ListProjectsResult 30 { 31 public: 32 ListProjectsResult(); 33 ListProjectsResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result); 34 ListProjectsResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result); 35 36 37 /** 38 * <p>A list of projects in your AWS account.</p> 39 */ GetProjects()40 inline const Aws::Vector<ProjectMetadata>& GetProjects() const{ return m_projects; } 41 42 /** 43 * <p>A list of projects in your AWS account.</p> 44 */ SetProjects(const Aws::Vector<ProjectMetadata> & value)45 inline void SetProjects(const Aws::Vector<ProjectMetadata>& value) { m_projects = value; } 46 47 /** 48 * <p>A list of projects in your AWS account.</p> 49 */ SetProjects(Aws::Vector<ProjectMetadata> && value)50 inline void SetProjects(Aws::Vector<ProjectMetadata>&& value) { m_projects = std::move(value); } 51 52 /** 53 * <p>A list of projects in your AWS account.</p> 54 */ WithProjects(const Aws::Vector<ProjectMetadata> & value)55 inline ListProjectsResult& WithProjects(const Aws::Vector<ProjectMetadata>& value) { SetProjects(value); return *this;} 56 57 /** 58 * <p>A list of projects in your AWS account.</p> 59 */ WithProjects(Aws::Vector<ProjectMetadata> && value)60 inline ListProjectsResult& WithProjects(Aws::Vector<ProjectMetadata>&& value) { SetProjects(std::move(value)); return *this;} 61 62 /** 63 * <p>A list of projects in your AWS account.</p> 64 */ AddProjects(const ProjectMetadata & value)65 inline ListProjectsResult& AddProjects(const ProjectMetadata& value) { m_projects.push_back(value); return *this; } 66 67 /** 68 * <p>A list of projects in your AWS account.</p> 69 */ AddProjects(ProjectMetadata && value)70 inline ListProjectsResult& AddProjects(ProjectMetadata&& value) { m_projects.push_back(std::move(value)); return *this; } 71 72 73 /** 74 * <p>If the response is truncated, Amazon Lookout for Vision returns this token 75 * that you can use in the subsequent request to retrieve the next set of 76 * projects.</p> 77 */ GetNextToken()78 inline const Aws::String& GetNextToken() const{ return m_nextToken; } 79 80 /** 81 * <p>If the response is truncated, Amazon Lookout for Vision returns this token 82 * that you can use in the subsequent request to retrieve the next set of 83 * projects.</p> 84 */ SetNextToken(const Aws::String & value)85 inline void SetNextToken(const Aws::String& value) { m_nextToken = value; } 86 87 /** 88 * <p>If the response is truncated, Amazon Lookout for Vision returns this token 89 * that you can use in the subsequent request to retrieve the next set of 90 * projects.</p> 91 */ SetNextToken(Aws::String && value)92 inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); } 93 94 /** 95 * <p>If the response is truncated, Amazon Lookout for Vision returns this token 96 * that you can use in the subsequent request to retrieve the next set of 97 * projects.</p> 98 */ SetNextToken(const char * value)99 inline void SetNextToken(const char* value) { m_nextToken.assign(value); } 100 101 /** 102 * <p>If the response is truncated, Amazon Lookout for Vision returns this token 103 * that you can use in the subsequent request to retrieve the next set of 104 * projects.</p> 105 */ WithNextToken(const Aws::String & value)106 inline ListProjectsResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;} 107 108 /** 109 * <p>If the response is truncated, Amazon Lookout for Vision returns this token 110 * that you can use in the subsequent request to retrieve the next set of 111 * projects.</p> 112 */ WithNextToken(Aws::String && value)113 inline ListProjectsResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;} 114 115 /** 116 * <p>If the response is truncated, Amazon Lookout for Vision returns this token 117 * that you can use in the subsequent request to retrieve the next set of 118 * projects.</p> 119 */ WithNextToken(const char * value)120 inline ListProjectsResult& WithNextToken(const char* value) { SetNextToken(value); return *this;} 121 122 private: 123 124 Aws::Vector<ProjectMetadata> m_projects; 125 126 Aws::String m_nextToken; 127 }; 128 129 } // namespace Model 130 } // namespace LookoutforVision 131 } // namespace Aws 132