AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
AudienceMedia.h
1
6#pragma once
7#include <aws/mediatailor/MediaTailor_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/mediatailor/model/AlternateMedia.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 MediaTailor
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_MEDIATAILOR_API AudienceMedia();
38 AWS_MEDIATAILOR_API AudienceMedia(Aws::Utils::Json::JsonView jsonValue);
39 AWS_MEDIATAILOR_API AudienceMedia& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_MEDIATAILOR_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::Vector<AlternateMedia>& GetAlternateMedia() const{ return m_alternateMedia; }
48 inline bool AlternateMediaHasBeenSet() const { return m_alternateMediaHasBeenSet; }
49 inline void SetAlternateMedia(const Aws::Vector<AlternateMedia>& value) { m_alternateMediaHasBeenSet = true; m_alternateMedia = value; }
50 inline void SetAlternateMedia(Aws::Vector<AlternateMedia>&& value) { m_alternateMediaHasBeenSet = true; m_alternateMedia = std::move(value); }
52 inline AudienceMedia& WithAlternateMedia(Aws::Vector<AlternateMedia>&& value) { SetAlternateMedia(std::move(value)); return *this;}
53 inline AudienceMedia& AddAlternateMedia(const AlternateMedia& value) { m_alternateMediaHasBeenSet = true; m_alternateMedia.push_back(value); return *this; }
54 inline AudienceMedia& AddAlternateMedia(AlternateMedia&& value) { m_alternateMediaHasBeenSet = true; m_alternateMedia.push_back(std::move(value)); return *this; }
56
58
61 inline const Aws::String& GetAudience() const{ return m_audience; }
62 inline bool AudienceHasBeenSet() const { return m_audienceHasBeenSet; }
63 inline void SetAudience(const Aws::String& value) { m_audienceHasBeenSet = true; m_audience = value; }
64 inline void SetAudience(Aws::String&& value) { m_audienceHasBeenSet = true; m_audience = std::move(value); }
65 inline void SetAudience(const char* value) { m_audienceHasBeenSet = true; m_audience.assign(value); }
66 inline AudienceMedia& WithAudience(const Aws::String& value) { SetAudience(value); return *this;}
67 inline AudienceMedia& WithAudience(Aws::String&& value) { SetAudience(std::move(value)); return *this;}
68 inline AudienceMedia& WithAudience(const char* value) { SetAudience(value); return *this;}
70 private:
71
72 Aws::Vector<AlternateMedia> m_alternateMedia;
73 bool m_alternateMediaHasBeenSet = false;
74
75 Aws::String m_audience;
76 bool m_audienceHasBeenSet = false;
77 };
78
79} // namespace Model
80} // namespace MediaTailor
81} // namespace Aws
AudienceMedia & AddAlternateMedia(const AlternateMedia &value)
AudienceMedia & WithAudience(const char *value)
AudienceMedia & WithAudience(Aws::String &&value)
const Aws::Vector< AlternateMedia > & GetAlternateMedia() const
void SetAudience(const char *value)
void SetAlternateMedia(Aws::Vector< AlternateMedia > &&value)
AudienceMedia & WithAlternateMedia(Aws::Vector< AlternateMedia > &&value)
void SetAlternateMedia(const Aws::Vector< AlternateMedia > &value)
AWS_MEDIATAILOR_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetAudience() const
AudienceMedia & WithAudience(const Aws::String &value)
void SetAudience(const Aws::String &value)
void SetAudience(Aws::String &&value)
AWS_MEDIATAILOR_API AudienceMedia & operator=(Aws::Utils::Json::JsonView jsonValue)
AudienceMedia & AddAlternateMedia(AlternateMedia &&value)
AWS_MEDIATAILOR_API AudienceMedia(Aws::Utils::Json::JsonView jsonValue)
AudienceMedia & WithAlternateMedia(const Aws::Vector< AlternateMedia > &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue