AWS SDK for C++

AWS SDK for C++ Version 1.11.643

Loading...
Searching...
No Matches
GetContactMetricsRequest.h
1
6#pragma once
7#include <aws/connect/Connect_EXPORTS.h>
8#include <aws/connect/ConnectRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/connect/model/ContactMetricInfo.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Connect
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_CONNECT_API GetContactMetricsRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "GetContactMetrics"; }
33
34 AWS_CONNECT_API Aws::String SerializePayload() const override;
35
36
38
43 inline const Aws::String& GetInstanceId() const { return m_instanceId; }
44 inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
45 template<typename InstanceIdT = Aws::String>
46 void SetInstanceId(InstanceIdT&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::forward<InstanceIdT>(value); }
47 template<typename InstanceIdT = Aws::String>
48 GetContactMetricsRequest& WithInstanceId(InstanceIdT&& value) { SetInstanceId(std::forward<InstanceIdT>(value)); return *this;}
50
52
55 inline const Aws::String& GetContactId() const { return m_contactId; }
56 inline bool ContactIdHasBeenSet() const { return m_contactIdHasBeenSet; }
57 template<typename ContactIdT = Aws::String>
58 void SetContactId(ContactIdT&& value) { m_contactIdHasBeenSet = true; m_contactId = std::forward<ContactIdT>(value); }
59 template<typename ContactIdT = Aws::String>
60 GetContactMetricsRequest& WithContactId(ContactIdT&& value) { SetContactId(std::forward<ContactIdT>(value)); return *this;}
62
64
67 inline const Aws::Vector<ContactMetricInfo>& GetMetrics() const { return m_metrics; }
68 inline bool MetricsHasBeenSet() const { return m_metricsHasBeenSet; }
69 template<typename MetricsT = Aws::Vector<ContactMetricInfo>>
70 void SetMetrics(MetricsT&& value) { m_metricsHasBeenSet = true; m_metrics = std::forward<MetricsT>(value); }
71 template<typename MetricsT = Aws::Vector<ContactMetricInfo>>
72 GetContactMetricsRequest& WithMetrics(MetricsT&& value) { SetMetrics(std::forward<MetricsT>(value)); return *this;}
73 template<typename MetricsT = ContactMetricInfo>
74 GetContactMetricsRequest& AddMetrics(MetricsT&& value) { m_metricsHasBeenSet = true; m_metrics.emplace_back(std::forward<MetricsT>(value)); return *this; }
76 private:
77
78 Aws::String m_instanceId;
79 bool m_instanceIdHasBeenSet = false;
80
81 Aws::String m_contactId;
82 bool m_contactIdHasBeenSet = false;
83
85 bool m_metricsHasBeenSet = false;
86 };
87
88} // namespace Model
89} // namespace Connect
90} // namespace Aws
GetContactMetricsRequest & AddMetrics(MetricsT &&value)
const Aws::Vector< ContactMetricInfo > & GetMetrics() const
GetContactMetricsRequest & WithContactId(ContactIdT &&value)
GetContactMetricsRequest & WithMetrics(MetricsT &&value)
GetContactMetricsRequest & WithInstanceId(InstanceIdT &&value)
virtual const char * GetServiceRequestName() const override
AWS_CONNECT_API Aws::String SerializePayload() const override
AWS_CONNECT_API GetContactMetricsRequest()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector