AWS SDK for C++

AWS SDK for C++ Version 1.11.788

Loading...
Searching...
No Matches
PagerDutyDetails.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#include <aws/devops-agent/model/PagerDutyAuthorizationConfig.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace DevOpsAgent {
22namespace Model {
23
31 public:
32 AWS_DEVOPSAGENT_API PagerDutyDetails() = default;
33 AWS_DEVOPSAGENT_API PagerDutyDetails(Aws::Utils::Json::JsonView jsonValue);
34 AWS_DEVOPSAGENT_API PagerDutyDetails& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_DEVOPSAGENT_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::Vector<Aws::String>& GetScopes() const { return m_scopes; }
42 inline bool ScopesHasBeenSet() const { return m_scopesHasBeenSet; }
43 template <typename ScopesT = Aws::Vector<Aws::String>>
44 void SetScopes(ScopesT&& value) {
45 m_scopesHasBeenSet = true;
46 m_scopes = std::forward<ScopesT>(value);
47 }
48 template <typename ScopesT = Aws::Vector<Aws::String>>
49 PagerDutyDetails& WithScopes(ScopesT&& value) {
50 SetScopes(std::forward<ScopesT>(value));
51 return *this;
52 }
53 template <typename ScopesT = Aws::String>
54 PagerDutyDetails& AddScopes(ScopesT&& value) {
55 m_scopesHasBeenSet = true;
56 m_scopes.emplace_back(std::forward<ScopesT>(value));
57 return *this;
58 }
60
62
65 inline const PagerDutyAuthorizationConfig& GetAuthorizationConfig() const { return m_authorizationConfig; }
66 inline bool AuthorizationConfigHasBeenSet() const { return m_authorizationConfigHasBeenSet; }
67 template <typename AuthorizationConfigT = PagerDutyAuthorizationConfig>
68 void SetAuthorizationConfig(AuthorizationConfigT&& value) {
69 m_authorizationConfigHasBeenSet = true;
70 m_authorizationConfig = std::forward<AuthorizationConfigT>(value);
71 }
72 template <typename AuthorizationConfigT = PagerDutyAuthorizationConfig>
73 PagerDutyDetails& WithAuthorizationConfig(AuthorizationConfigT&& value) {
74 SetAuthorizationConfig(std::forward<AuthorizationConfigT>(value));
75 return *this;
76 }
78 private:
80
81 PagerDutyAuthorizationConfig m_authorizationConfig;
82 bool m_scopesHasBeenSet = false;
83 bool m_authorizationConfigHasBeenSet = false;
84};
85
86} // namespace Model
87} // namespace DevOpsAgent
88} // namespace Aws
AWS_DEVOPSAGENT_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_DEVOPSAGENT_API PagerDutyDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_DEVOPSAGENT_API PagerDutyDetails(Aws::Utils::Json::JsonView jsonValue)
PagerDutyDetails & AddScopes(ScopesT &&value)
const Aws::Vector< Aws::String > & GetScopes() const
PagerDutyDetails & WithAuthorizationConfig(AuthorizationConfigT &&value)
const PagerDutyAuthorizationConfig & GetAuthorizationConfig() const
PagerDutyDetails & WithScopes(ScopesT &&value)
AWS_DEVOPSAGENT_API PagerDutyDetails()=default
void SetAuthorizationConfig(AuthorizationConfigT &&value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue