/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include #include namespace Aws { namespace AlexaForBusiness { namespace Model { /** */ class SendAnnouncementRequest : public AlexaForBusinessRequest { public: AWS_ALEXAFORBUSINESS_API SendAnnouncementRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "SendAnnouncement"; } AWS_ALEXAFORBUSINESS_API Aws::String SerializePayload() const override; AWS_ALEXAFORBUSINESS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The filters to use to send an announcement to a specified list of rooms. The * supported filter keys are RoomName, ProfileName, RoomArn, and ProfileArn. To * send to all rooms, specify an empty RoomFilters list.

*/ inline const Aws::Vector& GetRoomFilters() const{ return m_roomFilters; } /** *

The filters to use to send an announcement to a specified list of rooms. The * supported filter keys are RoomName, ProfileName, RoomArn, and ProfileArn. To * send to all rooms, specify an empty RoomFilters list.

*/ inline bool RoomFiltersHasBeenSet() const { return m_roomFiltersHasBeenSet; } /** *

The filters to use to send an announcement to a specified list of rooms. The * supported filter keys are RoomName, ProfileName, RoomArn, and ProfileArn. To * send to all rooms, specify an empty RoomFilters list.

*/ inline void SetRoomFilters(const Aws::Vector& value) { m_roomFiltersHasBeenSet = true; m_roomFilters = value; } /** *

The filters to use to send an announcement to a specified list of rooms. The * supported filter keys are RoomName, ProfileName, RoomArn, and ProfileArn. To * send to all rooms, specify an empty RoomFilters list.

*/ inline void SetRoomFilters(Aws::Vector&& value) { m_roomFiltersHasBeenSet = true; m_roomFilters = std::move(value); } /** *

The filters to use to send an announcement to a specified list of rooms. The * supported filter keys are RoomName, ProfileName, RoomArn, and ProfileArn. To * send to all rooms, specify an empty RoomFilters list.

*/ inline SendAnnouncementRequest& WithRoomFilters(const Aws::Vector& value) { SetRoomFilters(value); return *this;} /** *

The filters to use to send an announcement to a specified list of rooms. The * supported filter keys are RoomName, ProfileName, RoomArn, and ProfileArn. To * send to all rooms, specify an empty RoomFilters list.

*/ inline SendAnnouncementRequest& WithRoomFilters(Aws::Vector&& value) { SetRoomFilters(std::move(value)); return *this;} /** *

The filters to use to send an announcement to a specified list of rooms. The * supported filter keys are RoomName, ProfileName, RoomArn, and ProfileArn. To * send to all rooms, specify an empty RoomFilters list.

*/ inline SendAnnouncementRequest& AddRoomFilters(const Filter& value) { m_roomFiltersHasBeenSet = true; m_roomFilters.push_back(value); return *this; } /** *

The filters to use to send an announcement to a specified list of rooms. The * supported filter keys are RoomName, ProfileName, RoomArn, and ProfileArn. To * send to all rooms, specify an empty RoomFilters list.

*/ inline SendAnnouncementRequest& AddRoomFilters(Filter&& value) { m_roomFiltersHasBeenSet = true; m_roomFilters.push_back(std::move(value)); return *this; } /** *

The announcement content. This can contain only one of the three possible * announcement types (text, SSML or audio).

*/ inline const Content& GetContent() const{ return m_content; } /** *

The announcement content. This can contain only one of the three possible * announcement types (text, SSML or audio).

*/ inline bool ContentHasBeenSet() const { return m_contentHasBeenSet; } /** *

The announcement content. This can contain only one of the three possible * announcement types (text, SSML or audio).

*/ inline void SetContent(const Content& value) { m_contentHasBeenSet = true; m_content = value; } /** *

The announcement content. This can contain only one of the three possible * announcement types (text, SSML or audio).

*/ inline void SetContent(Content&& value) { m_contentHasBeenSet = true; m_content = std::move(value); } /** *

The announcement content. This can contain only one of the three possible * announcement types (text, SSML or audio).

*/ inline SendAnnouncementRequest& WithContent(const Content& value) { SetContent(value); return *this;} /** *

The announcement content. This can contain only one of the three possible * announcement types (text, SSML or audio).

*/ inline SendAnnouncementRequest& WithContent(Content&& value) { SetContent(std::move(value)); return *this;} /** *

The time to live for an announcement. Default is 300. If delivery doesn't * occur within this time, the announcement is not delivered.

*/ inline int GetTimeToLiveInSeconds() const{ return m_timeToLiveInSeconds; } /** *

The time to live for an announcement. Default is 300. If delivery doesn't * occur within this time, the announcement is not delivered.

*/ inline bool TimeToLiveInSecondsHasBeenSet() const { return m_timeToLiveInSecondsHasBeenSet; } /** *

The time to live for an announcement. Default is 300. If delivery doesn't * occur within this time, the announcement is not delivered.

*/ inline void SetTimeToLiveInSeconds(int value) { m_timeToLiveInSecondsHasBeenSet = true; m_timeToLiveInSeconds = value; } /** *

The time to live for an announcement. Default is 300. If delivery doesn't * occur within this time, the announcement is not delivered.

*/ inline SendAnnouncementRequest& WithTimeToLiveInSeconds(int value) { SetTimeToLiveInSeconds(value); return *this;} /** *

The unique, user-specified identifier for the request that ensures * idempotency.

*/ inline const Aws::String& GetClientRequestToken() const{ return m_clientRequestToken; } /** *

The unique, user-specified identifier for the request that ensures * idempotency.

*/ inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; } /** *

The unique, user-specified identifier for the request that ensures * idempotency.

*/ inline void SetClientRequestToken(const Aws::String& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = value; } /** *

The unique, user-specified identifier for the request that ensures * idempotency.

*/ inline void SetClientRequestToken(Aws::String&& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = std::move(value); } /** *

The unique, user-specified identifier for the request that ensures * idempotency.

*/ inline void SetClientRequestToken(const char* value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken.assign(value); } /** *

The unique, user-specified identifier for the request that ensures * idempotency.

*/ inline SendAnnouncementRequest& WithClientRequestToken(const Aws::String& value) { SetClientRequestToken(value); return *this;} /** *

The unique, user-specified identifier for the request that ensures * idempotency.

*/ inline SendAnnouncementRequest& WithClientRequestToken(Aws::String&& value) { SetClientRequestToken(std::move(value)); return *this;} /** *

The unique, user-specified identifier for the request that ensures * idempotency.

*/ inline SendAnnouncementRequest& WithClientRequestToken(const char* value) { SetClientRequestToken(value); return *this;} private: Aws::Vector m_roomFilters; bool m_roomFiltersHasBeenSet = false; Content m_content; bool m_contentHasBeenSet = false; int m_timeToLiveInSeconds; bool m_timeToLiveInSecondsHasBeenSet = false; Aws::String m_clientRequestToken; bool m_clientRequestTokenHasBeenSet = false; }; } // namespace Model } // namespace AlexaForBusiness } // namespace Aws