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/amplify/Amplify_EXPORTS.h> 8 #include <aws/amplify/model/DomainAssociation.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 Amplify 24 { 25 namespace Model 26 { 27 /** 28 * <p> The result structure for the create domain association request. 29 * </p><p><h3>See Also:</h3> <a 30 * href="http://docs.aws.amazon.com/goto/WebAPI/amplify-2017-07-25/CreateDomainAssociationResult">AWS 31 * API Reference</a></p> 32 */ 33 class AWS_AMPLIFY_API CreateDomainAssociationResult 34 { 35 public: 36 CreateDomainAssociationResult(); 37 CreateDomainAssociationResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result); 38 CreateDomainAssociationResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result); 39 40 41 /** 42 * <p> Describes the structure of a domain association, which associates a custom 43 * domain with an Amplify app. </p> 44 */ GetDomainAssociation()45 inline const DomainAssociation& GetDomainAssociation() const{ return m_domainAssociation; } 46 47 /** 48 * <p> Describes the structure of a domain association, which associates a custom 49 * domain with an Amplify app. </p> 50 */ SetDomainAssociation(const DomainAssociation & value)51 inline void SetDomainAssociation(const DomainAssociation& value) { m_domainAssociation = value; } 52 53 /** 54 * <p> Describes the structure of a domain association, which associates a custom 55 * domain with an Amplify app. </p> 56 */ SetDomainAssociation(DomainAssociation && value)57 inline void SetDomainAssociation(DomainAssociation&& value) { m_domainAssociation = std::move(value); } 58 59 /** 60 * <p> Describes the structure of a domain association, which associates a custom 61 * domain with an Amplify app. </p> 62 */ WithDomainAssociation(const DomainAssociation & value)63 inline CreateDomainAssociationResult& WithDomainAssociation(const DomainAssociation& value) { SetDomainAssociation(value); return *this;} 64 65 /** 66 * <p> Describes the structure of a domain association, which associates a custom 67 * domain with an Amplify app. </p> 68 */ WithDomainAssociation(DomainAssociation && value)69 inline CreateDomainAssociationResult& WithDomainAssociation(DomainAssociation&& value) { SetDomainAssociation(std::move(value)); return *this;} 70 71 private: 72 73 DomainAssociation m_domainAssociation; 74 }; 75 76 } // namespace Model 77 } // namespace Amplify 78 } // namespace Aws 79