AWS SDK for C++  1.9.44
AWS SDK for C++
SendAnnouncementRequest.h
Go to the documentation of this file.
1 
6 #pragma once
13 #include <utility>
14 #include <aws/core/utils/UUID.h>
15 
16 namespace Aws
17 {
18 namespace AlexaForBusiness
19 {
20 namespace Model
21 {
22 
26  {
27  public:
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.
34  inline virtual const char* GetServiceRequestName() const override { return "SendAnnouncement"; }
35 
36  Aws::String SerializePayload() const override;
37 
39 
40 
46  inline const Aws::Vector<Filter>& GetRoomFilters() const{ return m_roomFilters; }
47 
53  inline bool RoomFiltersHasBeenSet() const { return m_roomFiltersHasBeenSet; }
54 
60  inline void SetRoomFilters(const Aws::Vector<Filter>& value) { m_roomFiltersHasBeenSet = true; m_roomFilters = value; }
61 
67  inline void SetRoomFilters(Aws::Vector<Filter>&& value) { m_roomFiltersHasBeenSet = true; m_roomFilters = std::move(value); }
68 
74  inline SendAnnouncementRequest& WithRoomFilters(const Aws::Vector<Filter>& value) { SetRoomFilters(value); return *this;}
75 
81  inline SendAnnouncementRequest& WithRoomFilters(Aws::Vector<Filter>&& value) { SetRoomFilters(std::move(value)); return *this;}
82 
88  inline SendAnnouncementRequest& AddRoomFilters(const Filter& value) { m_roomFiltersHasBeenSet = true; m_roomFilters.push_back(value); return *this; }
89 
95  inline SendAnnouncementRequest& AddRoomFilters(Filter&& value) { m_roomFiltersHasBeenSet = true; m_roomFilters.push_back(std::move(value)); return *this; }
96 
97 
102  inline const Content& GetContent() const{ return m_content; }
103 
108  inline bool ContentHasBeenSet() const { return m_contentHasBeenSet; }
109 
114  inline void SetContent(const Content& value) { m_contentHasBeenSet = true; m_content = value; }
115 
120  inline void SetContent(Content&& value) { m_contentHasBeenSet = true; m_content = std::move(value); }
121 
126  inline SendAnnouncementRequest& WithContent(const Content& value) { SetContent(value); return *this;}
127 
132  inline SendAnnouncementRequest& WithContent(Content&& value) { SetContent(std::move(value)); return *this;}
133 
134 
139  inline int GetTimeToLiveInSeconds() const{ return m_timeToLiveInSeconds; }
140 
145  inline bool TimeToLiveInSecondsHasBeenSet() const { return m_timeToLiveInSecondsHasBeenSet; }
146 
151  inline void SetTimeToLiveInSeconds(int value) { m_timeToLiveInSecondsHasBeenSet = true; m_timeToLiveInSeconds = value; }
152 
157  inline SendAnnouncementRequest& WithTimeToLiveInSeconds(int value) { SetTimeToLiveInSeconds(value); return *this;}
158 
159 
164  inline const Aws::String& GetClientRequestToken() const{ return m_clientRequestToken; }
165 
170  inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; }
171 
176  inline void SetClientRequestToken(const Aws::String& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = value; }
177 
182  inline void SetClientRequestToken(Aws::String&& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = std::move(value); }
183 
188  inline void SetClientRequestToken(const char* value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken.assign(value); }
189 
194  inline SendAnnouncementRequest& WithClientRequestToken(const Aws::String& value) { SetClientRequestToken(value); return *this;}
195 
200  inline SendAnnouncementRequest& WithClientRequestToken(Aws::String&& value) { SetClientRequestToken(std::move(value)); return *this;}
201 
206  inline SendAnnouncementRequest& WithClientRequestToken(const char* value) { SetClientRequestToken(value); return *this;}
207 
208  private:
209 
210  Aws::Vector<Filter> m_roomFilters;
211  bool m_roomFiltersHasBeenSet;
212 
213  Content m_content;
214  bool m_contentHasBeenSet;
215 
216  int m_timeToLiveInSeconds;
217  bool m_timeToLiveInSecondsHasBeenSet;
218 
219  Aws::String m_clientRequestToken;
220  bool m_clientRequestTokenHasBeenSet;
221  };
222 
223 } // namespace Model
224 } // namespace AlexaForBusiness
225 } // namespace Aws
Aws::AlexaForBusiness::Model::SendAnnouncementRequest::WithClientRequestToken
SendAnnouncementRequest & WithClientRequestToken(const Aws::String &value)
Definition: SendAnnouncementRequest.h:194
Aws::AlexaForBusiness::Model::SendAnnouncementRequest::SetRoomFilters
void SetRoomFilters(Aws::Vector< Filter > &&value)
Definition: SendAnnouncementRequest.h:67
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::AlexaForBusiness::Model::SendAnnouncementRequest::ClientRequestTokenHasBeenSet
bool ClientRequestTokenHasBeenSet() const
Definition: SendAnnouncementRequest.h:170
Aws::AlexaForBusiness::Model::SendAnnouncementRequest::SetClientRequestToken
void SetClientRequestToken(Aws::String &&value)
Definition: SendAnnouncementRequest.h:182
Aws::AlexaForBusiness::Model::SendAnnouncementRequest::AddRoomFilters
SendAnnouncementRequest & AddRoomFilters(const Filter &value)
Definition: SendAnnouncementRequest.h:88
Aws::AlexaForBusiness::Model::SendAnnouncementRequest::SerializePayload
Aws::String SerializePayload() const override
Content.h
Aws::AlexaForBusiness::Model::SendAnnouncementRequest::WithRoomFilters
SendAnnouncementRequest & WithRoomFilters(Aws::Vector< Filter > &&value)
Definition: SendAnnouncementRequest.h:81
Aws::AlexaForBusiness::Model::SendAnnouncementRequest::SetTimeToLiveInSeconds
void SetTimeToLiveInSeconds(int value)
Definition: SendAnnouncementRequest.h:151
Aws::AlexaForBusiness::Model::SendAnnouncementRequest::SetContent
void SetContent(const Content &value)
Definition: SendAnnouncementRequest.h:114
Aws::AlexaForBusiness::Model::SendAnnouncementRequest::SetRoomFilters
void SetRoomFilters(const Aws::Vector< Filter > &value)
Definition: SendAnnouncementRequest.h:60
Aws::AlexaForBusiness::Model::SendAnnouncementRequest::WithClientRequestToken
SendAnnouncementRequest & WithClientRequestToken(Aws::String &&value)
Definition: SendAnnouncementRequest.h:200
Aws::AlexaForBusiness::Model::Filter
Definition: Filter.h:35
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::AlexaForBusiness::Model::SendAnnouncementRequest::WithContent
SendAnnouncementRequest & WithContent(Content &&value)
Definition: SendAnnouncementRequest.h:132
AWSVector.h
Aws::AlexaForBusiness::Model::SendAnnouncementRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: SendAnnouncementRequest.h:34
Aws::AlexaForBusiness::Model::SendAnnouncementRequest::SendAnnouncementRequest
SendAnnouncementRequest()
Filter.h
Aws::AlexaForBusiness::Model::SendAnnouncementRequest
Definition: SendAnnouncementRequest.h:26
AWS_ALEXAFORBUSINESS_API
#define AWS_ALEXAFORBUSINESS_API
Definition: AlexaForBusiness_EXPORTS.h:28
Aws::AlexaForBusiness::Model::SendAnnouncementRequest::SetContent
void SetContent(Content &&value)
Definition: SendAnnouncementRequest.h:120
Aws::AlexaForBusiness::Model::SendAnnouncementRequest::RoomFiltersHasBeenSet
bool RoomFiltersHasBeenSet() const
Definition: SendAnnouncementRequest.h:53
Aws::AlexaForBusiness::Model::SendAnnouncementRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWSString.h
Aws::AlexaForBusiness::Model::SendAnnouncementRequest::WithClientRequestToken
SendAnnouncementRequest & WithClientRequestToken(const char *value)
Definition: SendAnnouncementRequest.h:206
Aws::AlexaForBusiness::Model::SendAnnouncementRequest::GetClientRequestToken
const Aws::String & GetClientRequestToken() const
Definition: SendAnnouncementRequest.h:164
AlexaForBusiness_EXPORTS.h
Aws
Definition: AccessManagementClient.h:15
Aws::AlexaForBusiness::AlexaForBusinessRequest
Definition: AlexaForBusinessRequest.h:17
Aws::AlexaForBusiness::Model::SendAnnouncementRequest::ContentHasBeenSet
bool ContentHasBeenSet() const
Definition: SendAnnouncementRequest.h:108
Aws::AlexaForBusiness::Model::SendAnnouncementRequest::GetRoomFilters
const Aws::Vector< Filter > & GetRoomFilters() const
Definition: SendAnnouncementRequest.h:46
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::AlexaForBusiness::Model::SendAnnouncementRequest::SetClientRequestToken
void SetClientRequestToken(const char *value)
Definition: SendAnnouncementRequest.h:188
Aws::AlexaForBusiness::Model::SendAnnouncementRequest::SetClientRequestToken
void SetClientRequestToken(const Aws::String &value)
Definition: SendAnnouncementRequest.h:176
Aws::AlexaForBusiness::Model::SendAnnouncementRequest::WithRoomFilters
SendAnnouncementRequest & WithRoomFilters(const Aws::Vector< Filter > &value)
Definition: SendAnnouncementRequest.h:74
Aws::AlexaForBusiness::Model::SendAnnouncementRequest::GetTimeToLiveInSeconds
int GetTimeToLiveInSeconds() const
Definition: SendAnnouncementRequest.h:139
UUID.h
Aws::AlexaForBusiness::Model::SendAnnouncementRequest::WithContent
SendAnnouncementRequest & WithContent(const Content &value)
Definition: SendAnnouncementRequest.h:126
Aws::AlexaForBusiness::Model::SendAnnouncementRequest::WithTimeToLiveInSeconds
SendAnnouncementRequest & WithTimeToLiveInSeconds(int value)
Definition: SendAnnouncementRequest.h:157
Aws::AlexaForBusiness::Model::SendAnnouncementRequest::AddRoomFilters
SendAnnouncementRequest & AddRoomFilters(Filter &&value)
Definition: SendAnnouncementRequest.h:95
Aws::AlexaForBusiness::Model::Content
Definition: Content.h:36
Aws::AlexaForBusiness::Model::SendAnnouncementRequest::TimeToLiveInSecondsHasBeenSet
bool TimeToLiveInSecondsHasBeenSet() const
Definition: SendAnnouncementRequest.h:145
AlexaForBusinessRequest.h
Aws::AlexaForBusiness::Model::SendAnnouncementRequest::GetContent
const Content & GetContent() const
Definition: SendAnnouncementRequest.h:102