AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetDestinations(const Aws::Vector<MediaResourceNeighbor>& value) { m_destinationsHasBeenSet = true; m_destinations = value; }
47 inline void SetDestinations(Aws::Vector<MediaResourceNeighbor>&& value) { m_destinationsHasBeenSet = true; m_destinations = std::move(value); }
49 inline MediaResource& WithDestinations(Aws::Vector<MediaResourceNeighbor>&& value) { SetDestinations(std::move(value)); return *this;}
50 inline MediaResource& AddDestinations(const MediaResourceNeighbor& value) { m_destinationsHasBeenSet = true; m_destinations.push_back(value); return *this; }
51 inline MediaResource& AddDestinations(MediaResourceNeighbor&& value) { m_destinationsHasBeenSet = true; m_destinations.push_back(std::move(value)); return *this; }
53
55
58 inline const Aws::String& GetName() const{ return m_name; }
59 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
60 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
61 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
62 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
63 inline MediaResource& WithName(const Aws::String& value) { SetName(value); return *this;}
64 inline MediaResource& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
65 inline MediaResource& WithName(const char* value) { SetName(value); return *this;}
67
69
70 inline const Aws::Vector<MediaResourceNeighbor>& GetSources() const{ return m_sources; }
71 inline bool SourcesHasBeenSet() const { return m_sourcesHasBeenSet; }
72 inline void SetSources(const Aws::Vector<MediaResourceNeighbor>& value) { m_sourcesHasBeenSet = true; m_sources = value; }
73 inline void SetSources(Aws::Vector<MediaResourceNeighbor>&& value) { m_sourcesHasBeenSet = true; m_sources = std::move(value); }
74 inline MediaResource& WithSources(const Aws::Vector<MediaResourceNeighbor>& value) { SetSources(value); return *this;}
75 inline MediaResource& WithSources(Aws::Vector<MediaResourceNeighbor>&& value) { SetSources(std::move(value)); return *this;}
76 inline MediaResource& AddSources(const MediaResourceNeighbor& value) { m_sourcesHasBeenSet = true; m_sources.push_back(value); return *this; }
77 inline MediaResource& AddSources(MediaResourceNeighbor&& value) { m_sourcesHasBeenSet = true; m_sources.push_back(std::move(value)); return *this; }
79 private:
80
82 bool m_destinationsHasBeenSet = false;
83
84 Aws::String m_name;
85 bool m_nameHasBeenSet = false;
86
88 bool m_sourcesHasBeenSet = false;
89 };
90
91} // namespace Model
92} // namespace MediaLive
93} // namespace Aws
const Aws::Vector< MediaResourceNeighbor > & GetDestinations() const
MediaResource & WithSources(Aws::Vector< MediaResourceNeighbor > &&value)
MediaResource & WithSources(const Aws::Vector< MediaResourceNeighbor > &value)
MediaResource & WithName(const char *value)
const Aws::Vector< MediaResourceNeighbor > & GetSources() const
void SetName(const Aws::String &value)
MediaResource & WithName(const Aws::String &value)
void SetDestinations(const Aws::Vector< MediaResourceNeighbor > &value)
MediaResource & AddSources(const MediaResourceNeighbor &value)
void SetName(const char *value)
MediaResource & AddSources(MediaResourceNeighbor &&value)
MediaResource & WithDestinations(const Aws::Vector< MediaResourceNeighbor > &value)
void SetDestinations(Aws::Vector< MediaResourceNeighbor > &&value)
MediaResource & WithDestinations(Aws::Vector< MediaResourceNeighbor > &&value)
MediaResource & WithName(Aws::String &&value)
const Aws::String & GetName() const
void SetSources(const Aws::Vector< MediaResourceNeighbor > &value)
MediaResource & AddDestinations(MediaResourceNeighbor &&value)
void SetSources(Aws::Vector< MediaResourceNeighbor > &&value)
void SetName(Aws::String &&value)
AWS_MEDIALIVE_API MediaResource(Aws::Utils::Json::JsonView jsonValue)
MediaResource & AddDestinations(const MediaResourceNeighbor &value)
AWS_MEDIALIVE_API MediaResource & operator=(Aws::Utils::Json::JsonView jsonValue)
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