AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
MediaResource.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/medialive/MediaLive_EXPORTS.h>
10#include <aws/medialive/model/MediaResourceNeighbor.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace MediaLive {
22namespace Model {
23
30 public:
31 AWS_MEDIALIVE_API MediaResource() = default;
32 AWS_MEDIALIVE_API MediaResource(Aws::Utils::Json::JsonView jsonValue);
33 AWS_MEDIALIVE_API MediaResource& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_MEDIALIVE_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
38 inline const Aws::Vector<MediaResourceNeighbor>& GetDestinations() const { return m_destinations; }
39 inline bool DestinationsHasBeenSet() const { return m_destinationsHasBeenSet; }
40 template <typename DestinationsT = Aws::Vector<MediaResourceNeighbor>>
41 void SetDestinations(DestinationsT&& value) {
42 m_destinationsHasBeenSet = true;
43 m_destinations = std::forward<DestinationsT>(value);
44 }
45 template <typename DestinationsT = Aws::Vector<MediaResourceNeighbor>>
46 MediaResource& WithDestinations(DestinationsT&& value) {
47 SetDestinations(std::forward<DestinationsT>(value));
48 return *this;
49 }
50 template <typename DestinationsT = MediaResourceNeighbor>
51 MediaResource& AddDestinations(DestinationsT&& value) {
52 m_destinationsHasBeenSet = true;
53 m_destinations.emplace_back(std::forward<DestinationsT>(value));
54 return *this;
55 }
57
59
62 inline const Aws::String& GetName() const { return m_name; }
63 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
64 template <typename NameT = Aws::String>
65 void SetName(NameT&& value) {
66 m_nameHasBeenSet = true;
67 m_name = std::forward<NameT>(value);
68 }
69 template <typename NameT = Aws::String>
70 MediaResource& WithName(NameT&& value) {
71 SetName(std::forward<NameT>(value));
72 return *this;
73 }
75
77
78 inline const Aws::Vector<MediaResourceNeighbor>& GetSources() const { return m_sources; }
79 inline bool SourcesHasBeenSet() const { return m_sourcesHasBeenSet; }
80 template <typename SourcesT = Aws::Vector<MediaResourceNeighbor>>
81 void SetSources(SourcesT&& value) {
82 m_sourcesHasBeenSet = true;
83 m_sources = std::forward<SourcesT>(value);
84 }
85 template <typename SourcesT = Aws::Vector<MediaResourceNeighbor>>
86 MediaResource& WithSources(SourcesT&& value) {
87 SetSources(std::forward<SourcesT>(value));
88 return *this;
89 }
90 template <typename SourcesT = MediaResourceNeighbor>
91 MediaResource& AddSources(SourcesT&& value) {
92 m_sourcesHasBeenSet = true;
93 m_sources.emplace_back(std::forward<SourcesT>(value));
94 return *this;
95 }
97 private:
99
100 Aws::String m_name;
101
103 bool m_destinationsHasBeenSet = false;
104 bool m_nameHasBeenSet = false;
105 bool m_sourcesHasBeenSet = false;
106};
107
108} // namespace Model
109} // namespace MediaLive
110} // namespace Aws
const Aws::Vector< MediaResourceNeighbor > & GetDestinations() const
MediaResource & WithSources(SourcesT &&value)
const Aws::Vector< MediaResourceNeighbor > & GetSources() const
void SetSources(SourcesT &&value)
const Aws::String & GetName() const
MediaResource & AddSources(SourcesT &&value)
AWS_MEDIALIVE_API MediaResource()=default
AWS_MEDIALIVE_API MediaResource(Aws::Utils::Json::JsonView jsonValue)
void SetDestinations(DestinationsT &&value)
AWS_MEDIALIVE_API MediaResource & operator=(Aws::Utils::Json::JsonView jsonValue)
MediaResource & WithDestinations(DestinationsT &&value)
MediaResource & AddDestinations(DestinationsT &&value)
MediaResource & WithName(NameT &&value)
AWS_MEDIALIVE_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue