AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
StartCompositionRequest.h
1
6#pragma once
7#include <aws/ivs-realtime/Ivsrealtime_EXPORTS.h>
8#include <aws/ivs-realtime/IvsrealtimeRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/ivs-realtime/model/LayoutConfiguration.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/core/utils/memory/stl/AWSMap.h>
13#include <aws/ivs-realtime/model/DestinationConfiguration.h>
14#include <utility>
15#include <aws/core/utils/UUID.h>
16
17namespace Aws
18{
19namespace ivsrealtime
20{
21namespace Model
22{
23
27 {
28 public:
29 AWS_IVSREALTIME_API StartCompositionRequest() = default;
30
31 // Service request name is the Operation name which will send this request out,
32 // each operation should has unique request name, so that we can get operation's name from this request.
33 // Note: this is not true for response, multiple operations may have the same response name,
34 // so we can not get operation's name from response.
35 inline virtual const char* GetServiceRequestName() const override { return "StartComposition"; }
36
37 AWS_IVSREALTIME_API Aws::String SerializePayload() const override;
38
39
41
44 inline const Aws::String& GetStageArn() const { return m_stageArn; }
45 inline bool StageArnHasBeenSet() const { return m_stageArnHasBeenSet; }
46 template<typename StageArnT = Aws::String>
47 void SetStageArn(StageArnT&& value) { m_stageArnHasBeenSet = true; m_stageArn = std::forward<StageArnT>(value); }
48 template<typename StageArnT = Aws::String>
49 StartCompositionRequest& WithStageArn(StageArnT&& value) { SetStageArn(std::forward<StageArnT>(value)); return *this;}
51
53
56 inline const Aws::String& GetIdempotencyToken() const { return m_idempotencyToken; }
57 inline bool IdempotencyTokenHasBeenSet() const { return m_idempotencyTokenHasBeenSet; }
58 template<typename IdempotencyTokenT = Aws::String>
59 void SetIdempotencyToken(IdempotencyTokenT&& value) { m_idempotencyTokenHasBeenSet = true; m_idempotencyToken = std::forward<IdempotencyTokenT>(value); }
60 template<typename IdempotencyTokenT = Aws::String>
61 StartCompositionRequest& WithIdempotencyToken(IdempotencyTokenT&& value) { SetIdempotencyToken(std::forward<IdempotencyTokenT>(value)); return *this;}
63
65
68 inline const LayoutConfiguration& GetLayout() const { return m_layout; }
69 inline bool LayoutHasBeenSet() const { return m_layoutHasBeenSet; }
70 template<typename LayoutT = LayoutConfiguration>
71 void SetLayout(LayoutT&& value) { m_layoutHasBeenSet = true; m_layout = std::forward<LayoutT>(value); }
72 template<typename LayoutT = LayoutConfiguration>
73 StartCompositionRequest& WithLayout(LayoutT&& value) { SetLayout(std::forward<LayoutT>(value)); return *this;}
75
77
80 inline const Aws::Vector<DestinationConfiguration>& GetDestinations() const { return m_destinations; }
81 inline bool DestinationsHasBeenSet() const { return m_destinationsHasBeenSet; }
82 template<typename DestinationsT = Aws::Vector<DestinationConfiguration>>
83 void SetDestinations(DestinationsT&& value) { m_destinationsHasBeenSet = true; m_destinations = std::forward<DestinationsT>(value); }
84 template<typename DestinationsT = Aws::Vector<DestinationConfiguration>>
85 StartCompositionRequest& WithDestinations(DestinationsT&& value) { SetDestinations(std::forward<DestinationsT>(value)); return *this;}
86 template<typename DestinationsT = DestinationConfiguration>
87 StartCompositionRequest& AddDestinations(DestinationsT&& value) { m_destinationsHasBeenSet = true; m_destinations.emplace_back(std::forward<DestinationsT>(value)); return *this; }
89
91
100 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
101 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
102 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
103 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
104 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
105 StartCompositionRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
106 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
107 StartCompositionRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
108 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
109 }
111 private:
112
113 Aws::String m_stageArn;
114 bool m_stageArnHasBeenSet = false;
115
117 bool m_idempotencyTokenHasBeenSet = true;
118
119 LayoutConfiguration m_layout;
120 bool m_layoutHasBeenSet = false;
121
123 bool m_destinationsHasBeenSet = false;
124
126 bool m_tagsHasBeenSet = false;
127 };
128
129} // namespace Model
130} // namespace ivsrealtime
131} // namespace Aws
static Aws::Utils::UUID PseudoRandomUUID()
StartCompositionRequest & WithStageArn(StageArnT &&value)
StartCompositionRequest & WithTags(TagsT &&value)
StartCompositionRequest & WithLayout(LayoutT &&value)
StartCompositionRequest & AddDestinations(DestinationsT &&value)
StartCompositionRequest & WithDestinations(DestinationsT &&value)
StartCompositionRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
const Aws::Vector< DestinationConfiguration > & GetDestinations() const
StartCompositionRequest & WithIdempotencyToken(IdempotencyTokenT &&value)
virtual const char * GetServiceRequestName() const override
AWS_IVSREALTIME_API StartCompositionRequest()=default
const Aws::Map< Aws::String, Aws::String > & GetTags() const
AWS_IVSREALTIME_API Aws::String SerializePayload() const override
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector