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/pinpoint/Pinpoint_EXPORTS.h>
8 #include <aws/pinpoint/model/ButtonAction.h>
9 #include <aws/core/utils/memory/stl/AWSString.h>
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Json
17 {
18   class JsonValue;
19   class JsonView;
20 } // namespace Json
21 } // namespace Utils
22 namespace Pinpoint
23 {
24 namespace Model
25 {
26 
27   /**
28    * <p>Override button configuration.</p><p><h3>See Also:</h3>   <a
29    * href="http://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/OverrideButtonConfiguration">AWS
30    * API Reference</a></p>
31    */
32   class AWS_PINPOINT_API OverrideButtonConfiguration
33   {
34   public:
35     OverrideButtonConfiguration();
36     OverrideButtonConfiguration(Aws::Utils::Json::JsonView jsonValue);
37     OverrideButtonConfiguration& operator=(Aws::Utils::Json::JsonView jsonValue);
38     Aws::Utils::Json::JsonValue Jsonize() const;
39 
40 
41     /**
42      * <p>Action triggered by the button.</p>
43      */
GetButtonAction()44     inline const ButtonAction& GetButtonAction() const{ return m_buttonAction; }
45 
46     /**
47      * <p>Action triggered by the button.</p>
48      */
ButtonActionHasBeenSet()49     inline bool ButtonActionHasBeenSet() const { return m_buttonActionHasBeenSet; }
50 
51     /**
52      * <p>Action triggered by the button.</p>
53      */
SetButtonAction(const ButtonAction & value)54     inline void SetButtonAction(const ButtonAction& value) { m_buttonActionHasBeenSet = true; m_buttonAction = value; }
55 
56     /**
57      * <p>Action triggered by the button.</p>
58      */
SetButtonAction(ButtonAction && value)59     inline void SetButtonAction(ButtonAction&& value) { m_buttonActionHasBeenSet = true; m_buttonAction = std::move(value); }
60 
61     /**
62      * <p>Action triggered by the button.</p>
63      */
WithButtonAction(const ButtonAction & value)64     inline OverrideButtonConfiguration& WithButtonAction(const ButtonAction& value) { SetButtonAction(value); return *this;}
65 
66     /**
67      * <p>Action triggered by the button.</p>
68      */
WithButtonAction(ButtonAction && value)69     inline OverrideButtonConfiguration& WithButtonAction(ButtonAction&& value) { SetButtonAction(std::move(value)); return *this;}
70 
71 
72     /**
73      * <p>Button destination.</p>
74      */
GetLink()75     inline const Aws::String& GetLink() const{ return m_link; }
76 
77     /**
78      * <p>Button destination.</p>
79      */
LinkHasBeenSet()80     inline bool LinkHasBeenSet() const { return m_linkHasBeenSet; }
81 
82     /**
83      * <p>Button destination.</p>
84      */
SetLink(const Aws::String & value)85     inline void SetLink(const Aws::String& value) { m_linkHasBeenSet = true; m_link = value; }
86 
87     /**
88      * <p>Button destination.</p>
89      */
SetLink(Aws::String && value)90     inline void SetLink(Aws::String&& value) { m_linkHasBeenSet = true; m_link = std::move(value); }
91 
92     /**
93      * <p>Button destination.</p>
94      */
SetLink(const char * value)95     inline void SetLink(const char* value) { m_linkHasBeenSet = true; m_link.assign(value); }
96 
97     /**
98      * <p>Button destination.</p>
99      */
WithLink(const Aws::String & value)100     inline OverrideButtonConfiguration& WithLink(const Aws::String& value) { SetLink(value); return *this;}
101 
102     /**
103      * <p>Button destination.</p>
104      */
WithLink(Aws::String && value)105     inline OverrideButtonConfiguration& WithLink(Aws::String&& value) { SetLink(std::move(value)); return *this;}
106 
107     /**
108      * <p>Button destination.</p>
109      */
WithLink(const char * value)110     inline OverrideButtonConfiguration& WithLink(const char* value) { SetLink(value); return *this;}
111 
112   private:
113 
114     ButtonAction m_buttonAction;
115     bool m_buttonActionHasBeenSet;
116 
117     Aws::String m_link;
118     bool m_linkHasBeenSet;
119   };
120 
121 } // namespace Model
122 } // namespace Pinpoint
123 } // namespace Aws
124