AWS SDK for C++

AWS SDK for C++ Version 1.11.741

Loading...
Searching...
No Matches
InstanceConfig.h
1
6#pragma once
7#include <aws/connectcampaigns/ConnectCampaigns_EXPORTS.h>
8#include <aws/connectcampaigns/model/EncryptionConfig.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace ConnectCampaigns {
21namespace Model {
22
29 public:
30 AWS_CONNECTCAMPAIGNS_API InstanceConfig() = default;
31 AWS_CONNECTCAMPAIGNS_API InstanceConfig(Aws::Utils::Json::JsonView jsonValue);
32 AWS_CONNECTCAMPAIGNS_API InstanceConfig& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_CONNECTCAMPAIGNS_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
37 inline const Aws::String& GetConnectInstanceId() const { return m_connectInstanceId; }
38 inline bool ConnectInstanceIdHasBeenSet() const { return m_connectInstanceIdHasBeenSet; }
39 template <typename ConnectInstanceIdT = Aws::String>
40 void SetConnectInstanceId(ConnectInstanceIdT&& value) {
41 m_connectInstanceIdHasBeenSet = true;
42 m_connectInstanceId = std::forward<ConnectInstanceIdT>(value);
43 }
44 template <typename ConnectInstanceIdT = Aws::String>
45 InstanceConfig& WithConnectInstanceId(ConnectInstanceIdT&& value) {
46 SetConnectInstanceId(std::forward<ConnectInstanceIdT>(value));
47 return *this;
48 }
50
52
53 inline const Aws::String& GetServiceLinkedRoleArn() const { return m_serviceLinkedRoleArn; }
54 inline bool ServiceLinkedRoleArnHasBeenSet() const { return m_serviceLinkedRoleArnHasBeenSet; }
55 template <typename ServiceLinkedRoleArnT = Aws::String>
56 void SetServiceLinkedRoleArn(ServiceLinkedRoleArnT&& value) {
57 m_serviceLinkedRoleArnHasBeenSet = true;
58 m_serviceLinkedRoleArn = std::forward<ServiceLinkedRoleArnT>(value);
59 }
60 template <typename ServiceLinkedRoleArnT = Aws::String>
61 InstanceConfig& WithServiceLinkedRoleArn(ServiceLinkedRoleArnT&& value) {
62 SetServiceLinkedRoleArn(std::forward<ServiceLinkedRoleArnT>(value));
63 return *this;
64 }
66
68
69 inline const EncryptionConfig& GetEncryptionConfig() const { return m_encryptionConfig; }
70 inline bool EncryptionConfigHasBeenSet() const { return m_encryptionConfigHasBeenSet; }
71 template <typename EncryptionConfigT = EncryptionConfig>
72 void SetEncryptionConfig(EncryptionConfigT&& value) {
73 m_encryptionConfigHasBeenSet = true;
74 m_encryptionConfig = std::forward<EncryptionConfigT>(value);
75 }
76 template <typename EncryptionConfigT = EncryptionConfig>
77 InstanceConfig& WithEncryptionConfig(EncryptionConfigT&& value) {
78 SetEncryptionConfig(std::forward<EncryptionConfigT>(value));
79 return *this;
80 }
82 private:
83 Aws::String m_connectInstanceId;
84
85 Aws::String m_serviceLinkedRoleArn;
86
87 EncryptionConfig m_encryptionConfig;
88 bool m_connectInstanceIdHasBeenSet = false;
89 bool m_serviceLinkedRoleArnHasBeenSet = false;
90 bool m_encryptionConfigHasBeenSet = false;
91};
92
93} // namespace Model
94} // namespace ConnectCampaigns
95} // namespace Aws
AWS_CONNECTCAMPAIGNS_API InstanceConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
InstanceConfig & WithConnectInstanceId(ConnectInstanceIdT &&value)
void SetServiceLinkedRoleArn(ServiceLinkedRoleArnT &&value)
AWS_CONNECTCAMPAIGNS_API InstanceConfig(Aws::Utils::Json::JsonView jsonValue)
AWS_CONNECTCAMPAIGNS_API InstanceConfig()=default
void SetConnectInstanceId(ConnectInstanceIdT &&value)
const EncryptionConfig & GetEncryptionConfig() const
const Aws::String & GetConnectInstanceId() const
InstanceConfig & WithEncryptionConfig(EncryptionConfigT &&value)
const Aws::String & GetServiceLinkedRoleArn() const
InstanceConfig & WithServiceLinkedRoleArn(ServiceLinkedRoleArnT &&value)
AWS_CONNECTCAMPAIGNS_API Aws::Utils::Json::JsonValue Jsonize() const
void SetEncryptionConfig(EncryptionConfigT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue