AWS SDK for C++

AWS SDK for C++ Version 1.11.944

Loading...
Searching...
No Matches
PidMapRule.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/mediaconnect/MediaConnect_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace MediaConnect {
20namespace Model {
21
29 public:
30 AWS_MEDIACONNECT_API PidMapRule() = default;
31 AWS_MEDIACONNECT_API PidMapRule(Aws::Utils::Json::JsonView jsonValue);
32 AWS_MEDIACONNECT_API PidMapRule& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_MEDIACONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
40 inline const Aws::String& GetMatchExpression() const { return m_matchExpression; }
41 inline bool MatchExpressionHasBeenSet() const { return m_matchExpressionHasBeenSet; }
42 template <typename MatchExpressionT = Aws::String>
43 void SetMatchExpression(MatchExpressionT&& value) {
44 m_matchExpressionHasBeenSet = true;
45 m_matchExpression = std::forward<MatchExpressionT>(value);
46 }
47 template <typename MatchExpressionT = Aws::String>
48 PidMapRule& WithMatchExpression(MatchExpressionT&& value) {
49 SetMatchExpression(std::forward<MatchExpressionT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetAction() const { return m_action; }
59 inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
60 template <typename ActionT = Aws::String>
61 void SetAction(ActionT&& value) {
62 m_actionHasBeenSet = true;
63 m_action = std::forward<ActionT>(value);
64 }
65 template <typename ActionT = Aws::String>
66 PidMapRule& WithAction(ActionT&& value) {
67 SetAction(std::forward<ActionT>(value));
68 return *this;
69 }
71 private:
72 Aws::String m_matchExpression;
73
74 Aws::String m_action;
75 bool m_matchExpressionHasBeenSet = false;
76 bool m_actionHasBeenSet = false;
77};
78
79} // namespace Model
80} // namespace MediaConnect
81} // namespace Aws
AWS_MEDIACONNECT_API PidMapRule & operator=(Aws::Utils::Json::JsonView jsonValue)
PidMapRule & WithMatchExpression(MatchExpressionT &&value)
Definition PidMapRule.h:48
AWS_MEDIACONNECT_API PidMapRule()=default
const Aws::String & GetMatchExpression() const
Definition PidMapRule.h:40
AWS_MEDIACONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_MEDIACONNECT_API PidMapRule(Aws::Utils::Json::JsonView jsonValue)
void SetMatchExpression(MatchExpressionT &&value)
Definition PidMapRule.h:43
PidMapRule & WithAction(ActionT &&value)
Definition PidMapRule.h:66
const Aws::String & GetAction() const
Definition PidMapRule.h:58
void SetAction(ActionT &&value)
Definition PidMapRule.h:61
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue