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/lightsail/Lightsail_EXPORTS.h>
8 #include <aws/core/utils/memory/stl/AWSVector.h>
9 #include <aws/lightsail/model/CertificateSummary.h>
10 #include <utility>
11 
12 namespace Aws
13 {
14 template<typename RESULT_TYPE>
15 class AmazonWebServiceResult;
16 
17 namespace Utils
18 {
19 namespace Json
20 {
21   class JsonValue;
22 } // namespace Json
23 } // namespace Utils
24 namespace Lightsail
25 {
26 namespace Model
27 {
28   class AWS_LIGHTSAIL_API GetCertificatesResult
29   {
30   public:
31     GetCertificatesResult();
32     GetCertificatesResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
33     GetCertificatesResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
34 
35 
36     /**
37      * <p>An object that describes certificates.</p>
38      */
GetCertificates()39     inline const Aws::Vector<CertificateSummary>& GetCertificates() const{ return m_certificates; }
40 
41     /**
42      * <p>An object that describes certificates.</p>
43      */
SetCertificates(const Aws::Vector<CertificateSummary> & value)44     inline void SetCertificates(const Aws::Vector<CertificateSummary>& value) { m_certificates = value; }
45 
46     /**
47      * <p>An object that describes certificates.</p>
48      */
SetCertificates(Aws::Vector<CertificateSummary> && value)49     inline void SetCertificates(Aws::Vector<CertificateSummary>&& value) { m_certificates = std::move(value); }
50 
51     /**
52      * <p>An object that describes certificates.</p>
53      */
WithCertificates(const Aws::Vector<CertificateSummary> & value)54     inline GetCertificatesResult& WithCertificates(const Aws::Vector<CertificateSummary>& value) { SetCertificates(value); return *this;}
55 
56     /**
57      * <p>An object that describes certificates.</p>
58      */
WithCertificates(Aws::Vector<CertificateSummary> && value)59     inline GetCertificatesResult& WithCertificates(Aws::Vector<CertificateSummary>&& value) { SetCertificates(std::move(value)); return *this;}
60 
61     /**
62      * <p>An object that describes certificates.</p>
63      */
AddCertificates(const CertificateSummary & value)64     inline GetCertificatesResult& AddCertificates(const CertificateSummary& value) { m_certificates.push_back(value); return *this; }
65 
66     /**
67      * <p>An object that describes certificates.</p>
68      */
AddCertificates(CertificateSummary && value)69     inline GetCertificatesResult& AddCertificates(CertificateSummary&& value) { m_certificates.push_back(std::move(value)); return *this; }
70 
71   private:
72 
73     Aws::Vector<CertificateSummary> m_certificates;
74   };
75 
76 } // namespace Model
77 } // namespace Lightsail
78 } // namespace Aws
79