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/mediapackage/MediaPackage_EXPORTS.h>
8 #include <aws/mediapackage/MediaPackageRequest.h>
9 #include <aws/core/utils/memory/stl/AWSString.h>
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace MediaPackage
15 {
16 namespace Model
17 {
18 
19   /**
20    * Configuration parameters used to update the Channel.<p><h3>See Also:</h3>   <a
21    * href="http://docs.aws.amazon.com/goto/WebAPI/mediapackage-2017-10-12/UpdateChannelRequest">AWS
22    * API Reference</a></p>
23    */
24   class AWS_MEDIAPACKAGE_API UpdateChannelRequest : public MediaPackageRequest
25   {
26   public:
27     UpdateChannelRequest();
28 
29     // Service request name is the Operation name which will send this request out,
30     // each operation should has unique request name, so that we can get operation's name from this request.
31     // Note: this is not true for response, multiple operations may have the same response name,
32     // so we can not get operation's name from response.
GetServiceRequestName()33     inline virtual const char* GetServiceRequestName() const override { return "UpdateChannel"; }
34 
35     Aws::String SerializePayload() const override;
36 
37 
38     /**
39      * A short text description of the Channel.
40      */
GetDescription()41     inline const Aws::String& GetDescription() const{ return m_description; }
42 
43     /**
44      * A short text description of the Channel.
45      */
DescriptionHasBeenSet()46     inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
47 
48     /**
49      * A short text description of the Channel.
50      */
SetDescription(const Aws::String & value)51     inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
52 
53     /**
54      * A short text description of the Channel.
55      */
SetDescription(Aws::String && value)56     inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
57 
58     /**
59      * A short text description of the Channel.
60      */
SetDescription(const char * value)61     inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
62 
63     /**
64      * A short text description of the Channel.
65      */
WithDescription(const Aws::String & value)66     inline UpdateChannelRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
67 
68     /**
69      * A short text description of the Channel.
70      */
WithDescription(Aws::String && value)71     inline UpdateChannelRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
72 
73     /**
74      * A short text description of the Channel.
75      */
WithDescription(const char * value)76     inline UpdateChannelRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
77 
78 
79     /**
80      * The ID of the Channel to update.
81      */
GetId()82     inline const Aws::String& GetId() const{ return m_id; }
83 
84     /**
85      * The ID of the Channel to update.
86      */
IdHasBeenSet()87     inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
88 
89     /**
90      * The ID of the Channel to update.
91      */
SetId(const Aws::String & value)92     inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
93 
94     /**
95      * The ID of the Channel to update.
96      */
SetId(Aws::String && value)97     inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
98 
99     /**
100      * The ID of the Channel to update.
101      */
SetId(const char * value)102     inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
103 
104     /**
105      * The ID of the Channel to update.
106      */
WithId(const Aws::String & value)107     inline UpdateChannelRequest& WithId(const Aws::String& value) { SetId(value); return *this;}
108 
109     /**
110      * The ID of the Channel to update.
111      */
WithId(Aws::String && value)112     inline UpdateChannelRequest& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
113 
114     /**
115      * The ID of the Channel to update.
116      */
WithId(const char * value)117     inline UpdateChannelRequest& WithId(const char* value) { SetId(value); return *this;}
118 
119   private:
120 
121     Aws::String m_description;
122     bool m_descriptionHasBeenSet;
123 
124     Aws::String m_id;
125     bool m_idHasBeenSet;
126   };
127 
128 } // namespace Model
129 } // namespace MediaPackage
130 } // namespace Aws
131