AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
PutMetricPolicyRequest.h
1
6#pragma once
7#include <aws/mediastore/MediaStore_EXPORTS.h>
8#include <aws/mediastore/MediaStoreRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/mediastore/model/MetricPolicy.h>
11#include <utility>
12
13namespace Aws
14{
15namespace MediaStore
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_MEDIASTORE_API PutMetricPolicyRequest();
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "PutMetricPolicy"; }
32
33 AWS_MEDIASTORE_API Aws::String SerializePayload() const override;
34
36
37
39
42 inline const Aws::String& GetContainerName() const{ return m_containerName; }
43 inline bool ContainerNameHasBeenSet() const { return m_containerNameHasBeenSet; }
44 inline void SetContainerName(const Aws::String& value) { m_containerNameHasBeenSet = true; m_containerName = value; }
45 inline void SetContainerName(Aws::String&& value) { m_containerNameHasBeenSet = true; m_containerName = std::move(value); }
46 inline void SetContainerName(const char* value) { m_containerNameHasBeenSet = true; m_containerName.assign(value); }
47 inline PutMetricPolicyRequest& WithContainerName(const Aws::String& value) { SetContainerName(value); return *this;}
48 inline PutMetricPolicyRequest& WithContainerName(Aws::String&& value) { SetContainerName(std::move(value)); return *this;}
49 inline PutMetricPolicyRequest& WithContainerName(const char* value) { SetContainerName(value); return *this;}
51
53
67 inline const MetricPolicy& GetMetricPolicy() const{ return m_metricPolicy; }
68 inline bool MetricPolicyHasBeenSet() const { return m_metricPolicyHasBeenSet; }
69 inline void SetMetricPolicy(const MetricPolicy& value) { m_metricPolicyHasBeenSet = true; m_metricPolicy = value; }
70 inline void SetMetricPolicy(MetricPolicy&& value) { m_metricPolicyHasBeenSet = true; m_metricPolicy = std::move(value); }
71 inline PutMetricPolicyRequest& WithMetricPolicy(const MetricPolicy& value) { SetMetricPolicy(value); return *this;}
72 inline PutMetricPolicyRequest& WithMetricPolicy(MetricPolicy&& value) { SetMetricPolicy(std::move(value)); return *this;}
74 private:
75
76 Aws::String m_containerName;
77 bool m_containerNameHasBeenSet = false;
78
79 MetricPolicy m_metricPolicy;
80 bool m_metricPolicyHasBeenSet = false;
81 };
82
83} // namespace Model
84} // namespace MediaStore
85} // namespace Aws
PutMetricPolicyRequest & WithContainerName(Aws::String &&value)
AWS_MEDIASTORE_API Aws::String SerializePayload() const override
virtual const char * GetServiceRequestName() const override
PutMetricPolicyRequest & WithMetricPolicy(const MetricPolicy &value)
PutMetricPolicyRequest & WithContainerName(const Aws::String &value)
AWS_MEDIASTORE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
PutMetricPolicyRequest & WithMetricPolicy(MetricPolicy &&value)
PutMetricPolicyRequest & WithContainerName(const char *value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String