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/AmplifyRequest.h>
9 #include <aws/core/utils/memory/stl/AWSString.h>
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Amplify
15 {
16 namespace Model
17 {
18 
19   /**
20    * <p> The request structure for the get domain association request. </p><p><h3>See
21    * Also:</h3>   <a
22    * href="http://docs.aws.amazon.com/goto/WebAPI/amplify-2017-07-25/GetDomainAssociationRequest">AWS
23    * API Reference</a></p>
24    */
25   class AWS_AMPLIFY_API GetDomainAssociationRequest : public AmplifyRequest
26   {
27   public:
28     GetDomainAssociationRequest();
29 
30     // Service request name is the Operation name which will send this request out,
31     // each operation should has unique request name, so that we can get operation's name from this request.
32     // Note: this is not true for response, multiple operations may have the same response name,
33     // so we can not get operation's name from response.
GetServiceRequestName()34     inline virtual const char* GetServiceRequestName() const override { return "GetDomainAssociation"; }
35 
36     Aws::String SerializePayload() const override;
37 
38 
39     /**
40      * <p> The unique id for an Amplify app. </p>
41      */
GetAppId()42     inline const Aws::String& GetAppId() const{ return m_appId; }
43 
44     /**
45      * <p> The unique id for an Amplify app. </p>
46      */
AppIdHasBeenSet()47     inline bool AppIdHasBeenSet() const { return m_appIdHasBeenSet; }
48 
49     /**
50      * <p> The unique id for an Amplify app. </p>
51      */
SetAppId(const Aws::String & value)52     inline void SetAppId(const Aws::String& value) { m_appIdHasBeenSet = true; m_appId = value; }
53 
54     /**
55      * <p> The unique id for an Amplify app. </p>
56      */
SetAppId(Aws::String && value)57     inline void SetAppId(Aws::String&& value) { m_appIdHasBeenSet = true; m_appId = std::move(value); }
58 
59     /**
60      * <p> The unique id for an Amplify app. </p>
61      */
SetAppId(const char * value)62     inline void SetAppId(const char* value) { m_appIdHasBeenSet = true; m_appId.assign(value); }
63 
64     /**
65      * <p> The unique id for an Amplify app. </p>
66      */
WithAppId(const Aws::String & value)67     inline GetDomainAssociationRequest& WithAppId(const Aws::String& value) { SetAppId(value); return *this;}
68 
69     /**
70      * <p> The unique id for an Amplify app. </p>
71      */
WithAppId(Aws::String && value)72     inline GetDomainAssociationRequest& WithAppId(Aws::String&& value) { SetAppId(std::move(value)); return *this;}
73 
74     /**
75      * <p> The unique id for an Amplify app. </p>
76      */
WithAppId(const char * value)77     inline GetDomainAssociationRequest& WithAppId(const char* value) { SetAppId(value); return *this;}
78 
79 
80     /**
81      * <p> The name of the domain. </p>
82      */
GetDomainName()83     inline const Aws::String& GetDomainName() const{ return m_domainName; }
84 
85     /**
86      * <p> The name of the domain. </p>
87      */
DomainNameHasBeenSet()88     inline bool DomainNameHasBeenSet() const { return m_domainNameHasBeenSet; }
89 
90     /**
91      * <p> The name of the domain. </p>
92      */
SetDomainName(const Aws::String & value)93     inline void SetDomainName(const Aws::String& value) { m_domainNameHasBeenSet = true; m_domainName = value; }
94 
95     /**
96      * <p> The name of the domain. </p>
97      */
SetDomainName(Aws::String && value)98     inline void SetDomainName(Aws::String&& value) { m_domainNameHasBeenSet = true; m_domainName = std::move(value); }
99 
100     /**
101      * <p> The name of the domain. </p>
102      */
SetDomainName(const char * value)103     inline void SetDomainName(const char* value) { m_domainNameHasBeenSet = true; m_domainName.assign(value); }
104 
105     /**
106      * <p> The name of the domain. </p>
107      */
WithDomainName(const Aws::String & value)108     inline GetDomainAssociationRequest& WithDomainName(const Aws::String& value) { SetDomainName(value); return *this;}
109 
110     /**
111      * <p> The name of the domain. </p>
112      */
WithDomainName(Aws::String && value)113     inline GetDomainAssociationRequest& WithDomainName(Aws::String&& value) { SetDomainName(std::move(value)); return *this;}
114 
115     /**
116      * <p> The name of the domain. </p>
117      */
WithDomainName(const char * value)118     inline GetDomainAssociationRequest& WithDomainName(const char* value) { SetDomainName(value); return *this;}
119 
120   private:
121 
122     Aws::String m_appId;
123     bool m_appIdHasBeenSet;
124 
125     Aws::String m_domainName;
126     bool m_domainNameHasBeenSet;
127   };
128 
129 } // namespace Model
130 } // namespace Amplify
131 } // namespace Aws
132