AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
MetricPolicyRule.h
1
6#pragma once
7#include <aws/mediastore/MediaStore_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace MediaStore
22{
23namespace Model
24{
25
38 {
39 public:
40 AWS_MEDIASTORE_API MetricPolicyRule() = default;
41 AWS_MEDIASTORE_API MetricPolicyRule(Aws::Utils::Json::JsonView jsonValue);
43 AWS_MEDIASTORE_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
51 inline const Aws::String& GetObjectGroup() const { return m_objectGroup; }
52 inline bool ObjectGroupHasBeenSet() const { return m_objectGroupHasBeenSet; }
53 template<typename ObjectGroupT = Aws::String>
54 void SetObjectGroup(ObjectGroupT&& value) { m_objectGroupHasBeenSet = true; m_objectGroup = std::forward<ObjectGroupT>(value); }
55 template<typename ObjectGroupT = Aws::String>
56 MetricPolicyRule& WithObjectGroup(ObjectGroupT&& value) { SetObjectGroup(std::forward<ObjectGroupT>(value)); return *this;}
58
60
63 inline const Aws::String& GetObjectGroupName() const { return m_objectGroupName; }
64 inline bool ObjectGroupNameHasBeenSet() const { return m_objectGroupNameHasBeenSet; }
65 template<typename ObjectGroupNameT = Aws::String>
66 void SetObjectGroupName(ObjectGroupNameT&& value) { m_objectGroupNameHasBeenSet = true; m_objectGroupName = std::forward<ObjectGroupNameT>(value); }
67 template<typename ObjectGroupNameT = Aws::String>
68 MetricPolicyRule& WithObjectGroupName(ObjectGroupNameT&& value) { SetObjectGroupName(std::forward<ObjectGroupNameT>(value)); return *this;}
70 private:
71
72 Aws::String m_objectGroup;
73 bool m_objectGroupHasBeenSet = false;
74
75 Aws::String m_objectGroupName;
76 bool m_objectGroupNameHasBeenSet = false;
77 };
78
79} // namespace Model
80} // namespace MediaStore
81} // namespace Aws
const Aws::String & GetObjectGroupName() const
AWS_MEDIASTORE_API MetricPolicyRule & operator=(Aws::Utils::Json::JsonView jsonValue)
MetricPolicyRule & WithObjectGroup(ObjectGroupT &&value)
const Aws::String & GetObjectGroup() const
void SetObjectGroupName(ObjectGroupNameT &&value)
void SetObjectGroup(ObjectGroupT &&value)
AWS_MEDIASTORE_API MetricPolicyRule(Aws::Utils::Json::JsonView jsonValue)
MetricPolicyRule & WithObjectGroupName(ObjectGroupNameT &&value)
AWS_MEDIASTORE_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_MEDIASTORE_API MetricPolicyRule()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue