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/chime/Chime_EXPORTS.h>
8 #include <aws/chime/ChimeRequest.h>
9 #include <aws/core/utils/memory/stl/AWSString.h>
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Chime
15 {
16 namespace Model
17 {
18 
19   /**
20    */
21   class AWS_CHIME_API CreateChannelBanRequest : public ChimeRequest
22   {
23   public:
24     CreateChannelBanRequest();
25 
26     // Service request name is the Operation name which will send this request out,
27     // each operation should has unique request name, so that we can get operation's name from this request.
28     // Note: this is not true for response, multiple operations may have the same response name,
29     // so we can not get operation's name from response.
GetServiceRequestName()30     inline virtual const char* GetServiceRequestName() const override { return "CreateChannelBan"; }
31 
32     Aws::String SerializePayload() const override;
33 
34     Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
35 
36 
37     /**
38      * <p>The ARN of the ban request.</p>
39      */
GetChannelArn()40     inline const Aws::String& GetChannelArn() const{ return m_channelArn; }
41 
42     /**
43      * <p>The ARN of the ban request.</p>
44      */
ChannelArnHasBeenSet()45     inline bool ChannelArnHasBeenSet() const { return m_channelArnHasBeenSet; }
46 
47     /**
48      * <p>The ARN of the ban request.</p>
49      */
SetChannelArn(const Aws::String & value)50     inline void SetChannelArn(const Aws::String& value) { m_channelArnHasBeenSet = true; m_channelArn = value; }
51 
52     /**
53      * <p>The ARN of the ban request.</p>
54      */
SetChannelArn(Aws::String && value)55     inline void SetChannelArn(Aws::String&& value) { m_channelArnHasBeenSet = true; m_channelArn = std::move(value); }
56 
57     /**
58      * <p>The ARN of the ban request.</p>
59      */
SetChannelArn(const char * value)60     inline void SetChannelArn(const char* value) { m_channelArnHasBeenSet = true; m_channelArn.assign(value); }
61 
62     /**
63      * <p>The ARN of the ban request.</p>
64      */
WithChannelArn(const Aws::String & value)65     inline CreateChannelBanRequest& WithChannelArn(const Aws::String& value) { SetChannelArn(value); return *this;}
66 
67     /**
68      * <p>The ARN of the ban request.</p>
69      */
WithChannelArn(Aws::String && value)70     inline CreateChannelBanRequest& WithChannelArn(Aws::String&& value) { SetChannelArn(std::move(value)); return *this;}
71 
72     /**
73      * <p>The ARN of the ban request.</p>
74      */
WithChannelArn(const char * value)75     inline CreateChannelBanRequest& WithChannelArn(const char* value) { SetChannelArn(value); return *this;}
76 
77 
78     /**
79      * <p>The ARN of the member being banned.</p>
80      */
GetMemberArn()81     inline const Aws::String& GetMemberArn() const{ return m_memberArn; }
82 
83     /**
84      * <p>The ARN of the member being banned.</p>
85      */
MemberArnHasBeenSet()86     inline bool MemberArnHasBeenSet() const { return m_memberArnHasBeenSet; }
87 
88     /**
89      * <p>The ARN of the member being banned.</p>
90      */
SetMemberArn(const Aws::String & value)91     inline void SetMemberArn(const Aws::String& value) { m_memberArnHasBeenSet = true; m_memberArn = value; }
92 
93     /**
94      * <p>The ARN of the member being banned.</p>
95      */
SetMemberArn(Aws::String && value)96     inline void SetMemberArn(Aws::String&& value) { m_memberArnHasBeenSet = true; m_memberArn = std::move(value); }
97 
98     /**
99      * <p>The ARN of the member being banned.</p>
100      */
SetMemberArn(const char * value)101     inline void SetMemberArn(const char* value) { m_memberArnHasBeenSet = true; m_memberArn.assign(value); }
102 
103     /**
104      * <p>The ARN of the member being banned.</p>
105      */
WithMemberArn(const Aws::String & value)106     inline CreateChannelBanRequest& WithMemberArn(const Aws::String& value) { SetMemberArn(value); return *this;}
107 
108     /**
109      * <p>The ARN of the member being banned.</p>
110      */
WithMemberArn(Aws::String && value)111     inline CreateChannelBanRequest& WithMemberArn(Aws::String&& value) { SetMemberArn(std::move(value)); return *this;}
112 
113     /**
114      * <p>The ARN of the member being banned.</p>
115      */
WithMemberArn(const char * value)116     inline CreateChannelBanRequest& WithMemberArn(const char* value) { SetMemberArn(value); return *this;}
117 
118 
119     /**
120      * <p>The <code>AppInstanceUserArn</code> of the user that makes the API call.</p>
121      */
GetChimeBearer()122     inline const Aws::String& GetChimeBearer() const{ return m_chimeBearer; }
123 
124     /**
125      * <p>The <code>AppInstanceUserArn</code> of the user that makes the API call.</p>
126      */
ChimeBearerHasBeenSet()127     inline bool ChimeBearerHasBeenSet() const { return m_chimeBearerHasBeenSet; }
128 
129     /**
130      * <p>The <code>AppInstanceUserArn</code> of the user that makes the API call.</p>
131      */
SetChimeBearer(const Aws::String & value)132     inline void SetChimeBearer(const Aws::String& value) { m_chimeBearerHasBeenSet = true; m_chimeBearer = value; }
133 
134     /**
135      * <p>The <code>AppInstanceUserArn</code> of the user that makes the API call.</p>
136      */
SetChimeBearer(Aws::String && value)137     inline void SetChimeBearer(Aws::String&& value) { m_chimeBearerHasBeenSet = true; m_chimeBearer = std::move(value); }
138 
139     /**
140      * <p>The <code>AppInstanceUserArn</code> of the user that makes the API call.</p>
141      */
SetChimeBearer(const char * value)142     inline void SetChimeBearer(const char* value) { m_chimeBearerHasBeenSet = true; m_chimeBearer.assign(value); }
143 
144     /**
145      * <p>The <code>AppInstanceUserArn</code> of the user that makes the API call.</p>
146      */
WithChimeBearer(const Aws::String & value)147     inline CreateChannelBanRequest& WithChimeBearer(const Aws::String& value) { SetChimeBearer(value); return *this;}
148 
149     /**
150      * <p>The <code>AppInstanceUserArn</code> of the user that makes the API call.</p>
151      */
WithChimeBearer(Aws::String && value)152     inline CreateChannelBanRequest& WithChimeBearer(Aws::String&& value) { SetChimeBearer(std::move(value)); return *this;}
153 
154     /**
155      * <p>The <code>AppInstanceUserArn</code> of the user that makes the API call.</p>
156      */
WithChimeBearer(const char * value)157     inline CreateChannelBanRequest& WithChimeBearer(const char* value) { SetChimeBearer(value); return *this;}
158 
159   private:
160 
161     Aws::String m_channelArn;
162     bool m_channelArnHasBeenSet;
163 
164     Aws::String m_memberArn;
165     bool m_memberArnHasBeenSet;
166 
167     Aws::String m_chimeBearer;
168     bool m_chimeBearerHasBeenSet;
169   };
170 
171 } // namespace Model
172 } // namespace Chime
173 } // namespace Aws
174