AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
RouterSettings.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/RouterDestinationSettings.h>
11#include <aws/medialive/model/RouterEncryptionType.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace MediaLive {
23namespace Model {
24
32 public:
33 AWS_MEDIALIVE_API RouterSettings() = default;
34 AWS_MEDIALIVE_API RouterSettings(Aws::Utils::Json::JsonView jsonValue);
36 AWS_MEDIALIVE_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
43 inline const Aws::Vector<RouterDestinationSettings>& GetDestinations() const { return m_destinations; }
44 inline bool DestinationsHasBeenSet() const { return m_destinationsHasBeenSet; }
45 template <typename DestinationsT = Aws::Vector<RouterDestinationSettings>>
46 void SetDestinations(DestinationsT&& value) {
47 m_destinationsHasBeenSet = true;
48 m_destinations = std::forward<DestinationsT>(value);
49 }
50 template <typename DestinationsT = Aws::Vector<RouterDestinationSettings>>
51 RouterSettings& WithDestinations(DestinationsT&& value) {
52 SetDestinations(std::forward<DestinationsT>(value));
53 return *this;
54 }
55 template <typename DestinationsT = RouterDestinationSettings>
56 RouterSettings& AddDestinations(DestinationsT&& value) {
57 m_destinationsHasBeenSet = true;
58 m_destinations.emplace_back(std::forward<DestinationsT>(value));
59 return *this;
60 }
62
64
65 inline RouterEncryptionType GetEncryptionType() const { return m_encryptionType; }
66 inline bool EncryptionTypeHasBeenSet() const { return m_encryptionTypeHasBeenSet; }
68 m_encryptionTypeHasBeenSet = true;
69 m_encryptionType = value;
70 }
72 SetEncryptionType(value);
73 return *this;
74 }
76
78
81 inline const Aws::String& GetSecretArn() const { return m_secretArn; }
82 inline bool SecretArnHasBeenSet() const { return m_secretArnHasBeenSet; }
83 template <typename SecretArnT = Aws::String>
84 void SetSecretArn(SecretArnT&& value) {
85 m_secretArnHasBeenSet = true;
86 m_secretArn = std::forward<SecretArnT>(value);
87 }
88 template <typename SecretArnT = Aws::String>
89 RouterSettings& WithSecretArn(SecretArnT&& value) {
90 SetSecretArn(std::forward<SecretArnT>(value));
91 return *this;
92 }
94 private:
96
98
99 Aws::String m_secretArn;
100 bool m_destinationsHasBeenSet = false;
101 bool m_encryptionTypeHasBeenSet = false;
102 bool m_secretArnHasBeenSet = false;
103};
104
105} // namespace Model
106} // namespace MediaLive
107} // namespace Aws
RouterSettings & WithSecretArn(SecretArnT &&value)
AWS_MEDIALIVE_API RouterSettings & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_MEDIALIVE_API RouterSettings()=default
void SetDestinations(DestinationsT &&value)
AWS_MEDIALIVE_API Aws::Utils::Json::JsonValue Jsonize() const
void SetEncryptionType(RouterEncryptionType value)
RouterEncryptionType GetEncryptionType() const
RouterSettings & WithEncryptionType(RouterEncryptionType value)
AWS_MEDIALIVE_API RouterSettings(Aws::Utils::Json::JsonView jsonValue)
RouterSettings & AddDestinations(DestinationsT &&value)
void SetSecretArn(SecretArnT &&value)
RouterSettings & WithDestinations(DestinationsT &&value)
const Aws::String & GetSecretArn() const
const Aws::Vector< RouterDestinationSettings > & GetDestinations() 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