AWS SDK for C++

AWS SDK for C++ Version 1.11.609

Loading...
Searching...
No Matches
MediaResource.h
1
6#pragma once
7#include <aws/medialive/MediaLive_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/medialive/model/MediaResourceNeighbor.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace MediaLive
24{
25namespace Model
26{
27
34 {
35 public:
36 AWS_MEDIALIVE_API MediaResource() = default;
37 AWS_MEDIALIVE_API MediaResource(Aws::Utils::Json::JsonView jsonValue);
38 AWS_MEDIALIVE_API MediaResource& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_MEDIALIVE_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
44 inline const Aws::Vector<MediaResourceNeighbor>& GetDestinations() const { return m_destinations; }
45 inline bool DestinationsHasBeenSet() const { return m_destinationsHasBeenSet; }
46 template<typename DestinationsT = Aws::Vector<MediaResourceNeighbor>>
47 void SetDestinations(DestinationsT&& value) { m_destinationsHasBeenSet = true; m_destinations = std::forward<DestinationsT>(value); }
48 template<typename DestinationsT = Aws::Vector<MediaResourceNeighbor>>
49 MediaResource& WithDestinations(DestinationsT&& value) { SetDestinations(std::forward<DestinationsT>(value)); return *this;}
50 template<typename DestinationsT = MediaResourceNeighbor>
51 MediaResource& AddDestinations(DestinationsT&& value) { m_destinationsHasBeenSet = true; m_destinations.emplace_back(std::forward<DestinationsT>(value)); return *this; }
53
55
58 inline const Aws::String& GetName() const { return m_name; }
59 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
60 template<typename NameT = Aws::String>
61 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
62 template<typename NameT = Aws::String>
63 MediaResource& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
65
67
68 inline const Aws::Vector<MediaResourceNeighbor>& GetSources() const { return m_sources; }
69 inline bool SourcesHasBeenSet() const { return m_sourcesHasBeenSet; }
70 template<typename SourcesT = Aws::Vector<MediaResourceNeighbor>>
71 void SetSources(SourcesT&& value) { m_sourcesHasBeenSet = true; m_sources = std::forward<SourcesT>(value); }
72 template<typename SourcesT = Aws::Vector<MediaResourceNeighbor>>
73 MediaResource& WithSources(SourcesT&& value) { SetSources(std::forward<SourcesT>(value)); return *this;}
74 template<typename SourcesT = MediaResourceNeighbor>
75 MediaResource& AddSources(SourcesT&& value) { m_sourcesHasBeenSet = true; m_sources.emplace_back(std::forward<SourcesT>(value)); return *this; }
77 private:
78
80 bool m_destinationsHasBeenSet = false;
81
82 Aws::String m_name;
83 bool m_nameHasBeenSet = false;
84
86 bool m_sourcesHasBeenSet = false;
87 };
88
89} // namespace Model
90} // namespace MediaLive
91} // 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