AWS SDK for C++  1.8.95
AWS SDK for C++
PutMetricPolicyRequest.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace MediaStore
16 {
17 namespace Model
18 {
19 
23  {
24  public:
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::String SerializePayload() const override;
34 
35  Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
36 
37 
41  inline const Aws::String& GetContainerName() const{ return m_containerName; }
42 
46  inline bool ContainerNameHasBeenSet() const { return m_containerNameHasBeenSet; }
47 
51  inline void SetContainerName(const Aws::String& value) { m_containerNameHasBeenSet = true; m_containerName = value; }
52 
56  inline void SetContainerName(Aws::String&& value) { m_containerNameHasBeenSet = true; m_containerName = std::move(value); }
57 
61  inline void SetContainerName(const char* value) { m_containerNameHasBeenSet = true; m_containerName.assign(value); }
62 
66  inline PutMetricPolicyRequest& WithContainerName(const Aws::String& value) { SetContainerName(value); return *this;}
67 
71  inline PutMetricPolicyRequest& WithContainerName(Aws::String&& value) { SetContainerName(std::move(value)); return *this;}
72 
76  inline PutMetricPolicyRequest& WithContainerName(const char* value) { SetContainerName(value); return *this;}
77 
78 
93  inline const MetricPolicy& GetMetricPolicy() const{ return m_metricPolicy; }
94 
109  inline bool MetricPolicyHasBeenSet() const { return m_metricPolicyHasBeenSet; }
110 
125  inline void SetMetricPolicy(const MetricPolicy& value) { m_metricPolicyHasBeenSet = true; m_metricPolicy = value; }
126 
141  inline void SetMetricPolicy(MetricPolicy&& value) { m_metricPolicyHasBeenSet = true; m_metricPolicy = std::move(value); }
142 
157  inline PutMetricPolicyRequest& WithMetricPolicy(const MetricPolicy& value) { SetMetricPolicy(value); return *this;}
158 
173  inline PutMetricPolicyRequest& WithMetricPolicy(MetricPolicy&& value) { SetMetricPolicy(std::move(value)); return *this;}
174 
175  private:
176 
177  Aws::String m_containerName;
178  bool m_containerNameHasBeenSet;
179 
180  MetricPolicy m_metricPolicy;
181  bool m_metricPolicyHasBeenSet;
182  };
183 
184 } // namespace Model
185 } // namespace MediaStore
186 } // namespace Aws
virtual const char * GetServiceRequestName() const override
PutMetricPolicyRequest & WithContainerName(const char *value)
#define AWS_MEDIASTORE_API
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
PutMetricPolicyRequest & WithContainerName(Aws::String &&value)
PutMetricPolicyRequest & WithMetricPolicy(const MetricPolicy &value)
PutMetricPolicyRequest & WithContainerName(const Aws::String &value)
PutMetricPolicyRequest & WithMetricPolicy(MetricPolicy &&value)