AWS SDK for C++

AWS SDK for C++ Version 1.11.787

Loading...
Searching...
No Matches
PagerDutyConfiguration.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/devops-agent/DevOpsAgent_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace DevOpsAgent {
21namespace Model {
22
29 public:
30 AWS_DEVOPSAGENT_API PagerDutyConfiguration() = default;
31 AWS_DEVOPSAGENT_API PagerDutyConfiguration(Aws::Utils::Json::JsonView jsonValue);
33 AWS_DEVOPSAGENT_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const Aws::Vector<Aws::String>& GetServices() const { return m_services; }
40 inline bool ServicesHasBeenSet() const { return m_servicesHasBeenSet; }
41 template <typename ServicesT = Aws::Vector<Aws::String>>
42 void SetServices(ServicesT&& value) {
43 m_servicesHasBeenSet = true;
44 m_services = std::forward<ServicesT>(value);
45 }
46 template <typename ServicesT = Aws::Vector<Aws::String>>
48 SetServices(std::forward<ServicesT>(value));
49 return *this;
50 }
51 template <typename ServicesT = Aws::String>
52 PagerDutyConfiguration& AddServices(ServicesT&& value) {
53 m_servicesHasBeenSet = true;
54 m_services.emplace_back(std::forward<ServicesT>(value));
55 return *this;
56 }
58
60
63 inline const Aws::String& GetCustomerEmail() const { return m_customerEmail; }
64 inline bool CustomerEmailHasBeenSet() const { return m_customerEmailHasBeenSet; }
65 template <typename CustomerEmailT = Aws::String>
66 void SetCustomerEmail(CustomerEmailT&& value) {
67 m_customerEmailHasBeenSet = true;
68 m_customerEmail = std::forward<CustomerEmailT>(value);
69 }
70 template <typename CustomerEmailT = Aws::String>
71 PagerDutyConfiguration& WithCustomerEmail(CustomerEmailT&& value) {
72 SetCustomerEmail(std::forward<CustomerEmailT>(value));
73 return *this;
74 }
76 private:
77 Aws::Vector<Aws::String> m_services;
78
79 Aws::String m_customerEmail;
80 bool m_servicesHasBeenSet = false;
81 bool m_customerEmailHasBeenSet = false;
82};
83
84} // namespace Model
85} // namespace DevOpsAgent
86} // namespace Aws
PagerDutyConfiguration & WithServices(ServicesT &&value)
AWS_DEVOPSAGENT_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_DEVOPSAGENT_API PagerDutyConfiguration()=default
PagerDutyConfiguration & WithCustomerEmail(CustomerEmailT &&value)
AWS_DEVOPSAGENT_API PagerDutyConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_DEVOPSAGENT_API PagerDutyConfiguration(Aws::Utils::Json::JsonView jsonValue)
PagerDutyConfiguration & AddServices(ServicesT &&value)
const Aws::Vector< Aws::String > & GetServices() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue