AWS SDK for C++

AWS SDK for C++ Version 1.11.695

Loading...
Searching...
No Matches
ServiceNowConfiguration.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/kendra/Kendra_EXPORTS.h>
9#include <aws/kendra/model/ServiceNowAuthenticationType.h>
10#include <aws/kendra/model/ServiceNowBuildVersionType.h>
11#include <aws/kendra/model/ServiceNowKnowledgeArticleConfiguration.h>
12#include <aws/kendra/model/ServiceNowServiceCatalogConfiguration.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace kendra {
24namespace Model {
25
33 public:
34 AWS_KENDRA_API ServiceNowConfiguration() = default;
37 AWS_KENDRA_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
44 inline const Aws::String& GetHostUrl() const { return m_hostUrl; }
45 inline bool HostUrlHasBeenSet() const { return m_hostUrlHasBeenSet; }
46 template <typename HostUrlT = Aws::String>
47 void SetHostUrl(HostUrlT&& value) {
48 m_hostUrlHasBeenSet = true;
49 m_hostUrl = std::forward<HostUrlT>(value);
50 }
51 template <typename HostUrlT = Aws::String>
53 SetHostUrl(std::forward<HostUrlT>(value));
54 return *this;
55 }
57
59
67 inline const Aws::String& GetSecretArn() const { return m_secretArn; }
68 inline bool SecretArnHasBeenSet() const { return m_secretArnHasBeenSet; }
69 template <typename SecretArnT = Aws::String>
70 void SetSecretArn(SecretArnT&& value) {
71 m_secretArnHasBeenSet = true;
72 m_secretArn = std::forward<SecretArnT>(value);
73 }
74 template <typename SecretArnT = Aws::String>
76 SetSecretArn(std::forward<SecretArnT>(value));
77 return *this;
78 }
80
82
87 inline ServiceNowBuildVersionType GetServiceNowBuildVersion() const { return m_serviceNowBuildVersion; }
88 inline bool ServiceNowBuildVersionHasBeenSet() const { return m_serviceNowBuildVersionHasBeenSet; }
90 m_serviceNowBuildVersionHasBeenSet = true;
91 m_serviceNowBuildVersion = value;
92 }
95 return *this;
96 }
98
100
104 inline const ServiceNowKnowledgeArticleConfiguration& GetKnowledgeArticleConfiguration() const { return m_knowledgeArticleConfiguration; }
105 inline bool KnowledgeArticleConfigurationHasBeenSet() const { return m_knowledgeArticleConfigurationHasBeenSet; }
106 template <typename KnowledgeArticleConfigurationT = ServiceNowKnowledgeArticleConfiguration>
107 void SetKnowledgeArticleConfiguration(KnowledgeArticleConfigurationT&& value) {
108 m_knowledgeArticleConfigurationHasBeenSet = true;
109 m_knowledgeArticleConfiguration = std::forward<KnowledgeArticleConfigurationT>(value);
110 }
111 template <typename KnowledgeArticleConfigurationT = ServiceNowKnowledgeArticleConfiguration>
112 ServiceNowConfiguration& WithKnowledgeArticleConfiguration(KnowledgeArticleConfigurationT&& value) {
113 SetKnowledgeArticleConfiguration(std::forward<KnowledgeArticleConfigurationT>(value));
114 return *this;
115 }
117
119
123 inline const ServiceNowServiceCatalogConfiguration& GetServiceCatalogConfiguration() const { return m_serviceCatalogConfiguration; }
124 inline bool ServiceCatalogConfigurationHasBeenSet() const { return m_serviceCatalogConfigurationHasBeenSet; }
125 template <typename ServiceCatalogConfigurationT = ServiceNowServiceCatalogConfiguration>
126 void SetServiceCatalogConfiguration(ServiceCatalogConfigurationT&& value) {
127 m_serviceCatalogConfigurationHasBeenSet = true;
128 m_serviceCatalogConfiguration = std::forward<ServiceCatalogConfigurationT>(value);
129 }
130 template <typename ServiceCatalogConfigurationT = ServiceNowServiceCatalogConfiguration>
131 ServiceNowConfiguration& WithServiceCatalogConfiguration(ServiceCatalogConfigurationT&& value) {
132 SetServiceCatalogConfiguration(std::forward<ServiceCatalogConfigurationT>(value));
133 return *this;
134 }
136
138
150 inline ServiceNowAuthenticationType GetAuthenticationType() const { return m_authenticationType; }
151 inline bool AuthenticationTypeHasBeenSet() const { return m_authenticationTypeHasBeenSet; }
153 m_authenticationTypeHasBeenSet = true;
154 m_authenticationType = value;
155 }
158 return *this;
159 }
161 private:
162 Aws::String m_hostUrl;
163 bool m_hostUrlHasBeenSet = false;
164
165 Aws::String m_secretArn;
166 bool m_secretArnHasBeenSet = false;
167
169 bool m_serviceNowBuildVersionHasBeenSet = false;
170
171 ServiceNowKnowledgeArticleConfiguration m_knowledgeArticleConfiguration;
172 bool m_knowledgeArticleConfigurationHasBeenSet = false;
173
174 ServiceNowServiceCatalogConfiguration m_serviceCatalogConfiguration;
175 bool m_serviceCatalogConfigurationHasBeenSet = false;
176
178 bool m_authenticationTypeHasBeenSet = false;
179};
180
181} // namespace Model
182} // namespace kendra
183} // namespace Aws
void SetAuthenticationType(ServiceNowAuthenticationType value)
ServiceNowConfiguration & WithHostUrl(HostUrlT &&value)
ServiceNowConfiguration & WithServiceNowBuildVersion(ServiceNowBuildVersionType value)
void SetKnowledgeArticleConfiguration(KnowledgeArticleConfigurationT &&value)
AWS_KENDRA_API ServiceNowConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_KENDRA_API Aws::Utils::Json::JsonValue Jsonize() const
ServiceNowConfiguration & WithAuthenticationType(ServiceNowAuthenticationType value)
AWS_KENDRA_API ServiceNowConfiguration(Aws::Utils::Json::JsonView jsonValue)
ServiceNowAuthenticationType GetAuthenticationType() const
ServiceNowConfiguration & WithKnowledgeArticleConfiguration(KnowledgeArticleConfigurationT &&value)
const ServiceNowKnowledgeArticleConfiguration & GetKnowledgeArticleConfiguration() const
const ServiceNowServiceCatalogConfiguration & GetServiceCatalogConfiguration() const
ServiceNowConfiguration & WithSecretArn(SecretArnT &&value)
void SetServiceNowBuildVersion(ServiceNowBuildVersionType value)
ServiceNowConfiguration & WithServiceCatalogConfiguration(ServiceCatalogConfigurationT &&value)
AWS_KENDRA_API ServiceNowConfiguration()=default
void SetServiceCatalogConfiguration(ServiceCatalogConfigurationT &&value)
ServiceNowBuildVersionType GetServiceNowBuildVersion() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue