AWS SDK for C++

AWS SDK for C++ Version 1.11.873

Loading...
Searching...
No Matches
UserStackAssociation.h
1
6#pragma once
7#include <aws/appstream/AppStream_EXPORTS.h>
8#include <aws/appstream/model/AuthenticationType.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/crt/cbor/Cbor.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Cbor {
17class CborValue;
18} // namespace Cbor
19} // namespace Utils
20namespace AppStream {
21namespace Model {
22
30 public:
31 AWS_APPSTREAM_API UserStackAssociation() = default;
32 AWS_APPSTREAM_API UserStackAssociation(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
33 AWS_APPSTREAM_API UserStackAssociation& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
34 AWS_APPSTREAM_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
35
37
40 inline const Aws::String& GetStackName() const { return m_stackName; }
41 inline bool StackNameHasBeenSet() const { return m_stackNameHasBeenSet; }
42 template <typename StackNameT = Aws::String>
43 void SetStackName(StackNameT&& value) {
44 m_stackNameHasBeenSet = true;
45 m_stackName = std::forward<StackNameT>(value);
46 }
47 template <typename StackNameT = Aws::String>
48 UserStackAssociation& WithStackName(StackNameT&& value) {
49 SetStackName(std::forward<StackNameT>(value));
50 return *this;
51 }
53
55
59 inline const Aws::String& GetUserName() const { return m_userName; }
60 inline bool UserNameHasBeenSet() const { return m_userNameHasBeenSet; }
61 template <typename UserNameT = Aws::String>
62 void SetUserName(UserNameT&& value) {
63 m_userNameHasBeenSet = true;
64 m_userName = std::forward<UserNameT>(value);
65 }
66 template <typename UserNameT = Aws::String>
67 UserStackAssociation& WithUserName(UserNameT&& value) {
68 SetUserName(std::forward<UserNameT>(value));
69 return *this;
70 }
72
74
77 inline AuthenticationType GetAuthenticationType() const { return m_authenticationType; }
78 inline bool AuthenticationTypeHasBeenSet() const { return m_authenticationTypeHasBeenSet; }
80 m_authenticationTypeHasBeenSet = true;
81 m_authenticationType = value;
82 }
85 return *this;
86 }
88
90
94 inline bool GetSendEmailNotification() const { return m_sendEmailNotification; }
95 inline bool SendEmailNotificationHasBeenSet() const { return m_sendEmailNotificationHasBeenSet; }
96 inline void SetSendEmailNotification(bool value) {
97 m_sendEmailNotificationHasBeenSet = true;
98 m_sendEmailNotification = value;
99 }
102 return *this;
103 }
105 private:
106 Aws::String m_stackName;
107
108 Aws::String m_userName;
109
111
112 bool m_sendEmailNotification{false};
113 bool m_stackNameHasBeenSet = false;
114 bool m_userNameHasBeenSet = false;
115 bool m_authenticationTypeHasBeenSet = false;
116 bool m_sendEmailNotificationHasBeenSet = false;
117};
118
119} // namespace Model
120} // namespace AppStream
121} // namespace Aws
AWS_APPSTREAM_API UserStackAssociation(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
UserStackAssociation & WithSendEmailNotification(bool value)
void SetAuthenticationType(AuthenticationType value)
AWS_APPSTREAM_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
UserStackAssociation & WithAuthenticationType(AuthenticationType value)
AWS_APPSTREAM_API UserStackAssociation()=default
AWS_APPSTREAM_API UserStackAssociation & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
UserStackAssociation & WithUserName(UserNameT &&value)
UserStackAssociation & WithStackName(StackNameT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String