AWS SDK for C++

AWS SDK for C++ Version 1.11.787

Loading...
Searching...
No Matches
ServiceNowConfiguration.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
30 public:
31 AWS_DEVOPSAGENT_API ServiceNowConfiguration() = default;
34 AWS_DEVOPSAGENT_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetInstanceId() const { return m_instanceId; }
41 inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
42 template <typename InstanceIdT = Aws::String>
43 void SetInstanceId(InstanceIdT&& value) {
44 m_instanceIdHasBeenSet = true;
45 m_instanceId = std::forward<InstanceIdT>(value);
46 }
47 template <typename InstanceIdT = Aws::String>
49 SetInstanceId(std::forward<InstanceIdT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::Vector<Aws::String>& GetAuthScopes() const { return m_authScopes; }
59 inline bool AuthScopesHasBeenSet() const { return m_authScopesHasBeenSet; }
60 template <typename AuthScopesT = Aws::Vector<Aws::String>>
61 void SetAuthScopes(AuthScopesT&& value) {
62 m_authScopesHasBeenSet = true;
63 m_authScopes = std::forward<AuthScopesT>(value);
64 }
65 template <typename AuthScopesT = Aws::Vector<Aws::String>>
67 SetAuthScopes(std::forward<AuthScopesT>(value));
68 return *this;
69 }
70 template <typename AuthScopesT = Aws::String>
71 ServiceNowConfiguration& AddAuthScopes(AuthScopesT&& value) {
72 m_authScopesHasBeenSet = true;
73 m_authScopes.emplace_back(std::forward<AuthScopesT>(value));
74 return *this;
75 }
77 private:
78 Aws::String m_instanceId;
79
80 Aws::Vector<Aws::String> m_authScopes;
81 bool m_instanceIdHasBeenSet = false;
82 bool m_authScopesHasBeenSet = false;
83};
84
85} // namespace Model
86} // namespace DevOpsAgent
87} // namespace Aws
ServiceNowConfiguration & WithAuthScopes(AuthScopesT &&value)
AWS_DEVOPSAGENT_API ServiceNowConfiguration(Aws::Utils::Json::JsonView jsonValue)
ServiceNowConfiguration & AddAuthScopes(AuthScopesT &&value)
const Aws::Vector< Aws::String > & GetAuthScopes() const
AWS_DEVOPSAGENT_API Aws::Utils::Json::JsonValue Jsonize() const
ServiceNowConfiguration & WithInstanceId(InstanceIdT &&value)
AWS_DEVOPSAGENT_API ServiceNowConfiguration()=default
AWS_DEVOPSAGENT_API ServiceNowConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue