AWS SDK for C++

AWS SDK for C++ Version 1.11.745

Loading...
Searching...
No Matches
RelayAuthentication.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/mailmanager/MailManager_EXPORTS.h>
9#include <aws/mailmanager/model/NoAuthentication.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace MailManager {
21namespace Model {
22
32 public:
33 AWS_MAILMANAGER_API RelayAuthentication() = default;
34 AWS_MAILMANAGER_API RelayAuthentication(Aws::Utils::Json::JsonView jsonValue);
36 AWS_MAILMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
43 inline const Aws::String& GetSecretArn() const { return m_secretArn; }
44 inline bool SecretArnHasBeenSet() const { return m_secretArnHasBeenSet; }
45 template <typename SecretArnT = Aws::String>
46 void SetSecretArn(SecretArnT&& value) {
47 m_secretArnHasBeenSet = true;
48 m_secretArn = std::forward<SecretArnT>(value);
49 }
50 template <typename SecretArnT = Aws::String>
51 RelayAuthentication& WithSecretArn(SecretArnT&& value) {
52 SetSecretArn(std::forward<SecretArnT>(value));
53 return *this;
54 }
56
58
62 inline const NoAuthentication& GetNoAuthentication() const { return m_noAuthentication; }
63 inline bool NoAuthenticationHasBeenSet() const { return m_noAuthenticationHasBeenSet; }
64 template <typename NoAuthenticationT = NoAuthentication>
65 void SetNoAuthentication(NoAuthenticationT&& value) {
66 m_noAuthenticationHasBeenSet = true;
67 m_noAuthentication = std::forward<NoAuthenticationT>(value);
68 }
69 template <typename NoAuthenticationT = NoAuthentication>
70 RelayAuthentication& WithNoAuthentication(NoAuthenticationT&& value) {
71 SetNoAuthentication(std::forward<NoAuthenticationT>(value));
72 return *this;
73 }
75 private:
76 Aws::String m_secretArn;
77
78 NoAuthentication m_noAuthentication;
79 bool m_secretArnHasBeenSet = false;
80 bool m_noAuthenticationHasBeenSet = false;
81};
82
83} // namespace Model
84} // namespace MailManager
85} // namespace Aws
void SetNoAuthentication(NoAuthenticationT &&value)
AWS_MAILMANAGER_API RelayAuthentication()=default
AWS_MAILMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const
const NoAuthentication & GetNoAuthentication() const
RelayAuthentication & WithNoAuthentication(NoAuthenticationT &&value)
RelayAuthentication & WithSecretArn(SecretArnT &&value)
AWS_MAILMANAGER_API RelayAuthentication(Aws::Utils::Json::JsonView jsonValue)
AWS_MAILMANAGER_API RelayAuthentication & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue