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/config/ConfigService_EXPORTS.h> 8 #include <aws/config/model/StoredQuery.h> 9 #include <utility> 10 11 namespace Aws 12 { 13 template<typename RESULT_TYPE> 14 class AmazonWebServiceResult; 15 16 namespace Utils 17 { 18 namespace Json 19 { 20 class JsonValue; 21 } // namespace Json 22 } // namespace Utils 23 namespace ConfigService 24 { 25 namespace Model 26 { 27 class AWS_CONFIGSERVICE_API GetStoredQueryResult 28 { 29 public: 30 GetStoredQueryResult(); 31 GetStoredQueryResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result); 32 GetStoredQueryResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result); 33 34 35 /** 36 * <p>Returns a <code>StoredQuery</code> object.</p> 37 */ GetStoredQuery()38 inline const StoredQuery& GetStoredQuery() const{ return m_storedQuery; } 39 40 /** 41 * <p>Returns a <code>StoredQuery</code> object.</p> 42 */ SetStoredQuery(const StoredQuery & value)43 inline void SetStoredQuery(const StoredQuery& value) { m_storedQuery = value; } 44 45 /** 46 * <p>Returns a <code>StoredQuery</code> object.</p> 47 */ SetStoredQuery(StoredQuery && value)48 inline void SetStoredQuery(StoredQuery&& value) { m_storedQuery = std::move(value); } 49 50 /** 51 * <p>Returns a <code>StoredQuery</code> object.</p> 52 */ WithStoredQuery(const StoredQuery & value)53 inline GetStoredQueryResult& WithStoredQuery(const StoredQuery& value) { SetStoredQuery(value); return *this;} 54 55 /** 56 * <p>Returns a <code>StoredQuery</code> object.</p> 57 */ WithStoredQuery(StoredQuery && value)58 inline GetStoredQueryResult& WithStoredQuery(StoredQuery&& value) { SetStoredQuery(std::move(value)); return *this;} 59 60 private: 61 62 StoredQuery m_storedQuery; 63 }; 64 65 } // namespace Model 66 } // namespace ConfigService 67 } // namespace Aws 68