AWS SDK for C++

AWS SDK for C++ Version 1.11.935

Loading...
Searching...
No Matches
SecurityGroupMembership.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/crt/cbor/Cbor.h>
9#include <aws/memorydb/MemoryDB_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Cbor {
16class CborValue;
17} // namespace Cbor
18} // namespace Utils
19namespace MemoryDB {
20namespace Model {
21
29 public:
30 AWS_MEMORYDB_API SecurityGroupMembership() = default;
31 AWS_MEMORYDB_API SecurityGroupMembership(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
32 AWS_MEMORYDB_API SecurityGroupMembership& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
33 AWS_MEMORYDB_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
34
36
39 inline const Aws::String& GetSecurityGroupId() const { return m_securityGroupId; }
40 inline bool SecurityGroupIdHasBeenSet() const { return m_securityGroupIdHasBeenSet; }
41 template <typename SecurityGroupIdT = Aws::String>
42 void SetSecurityGroupId(SecurityGroupIdT&& value) {
43 m_securityGroupIdHasBeenSet = true;
44 m_securityGroupId = std::forward<SecurityGroupIdT>(value);
45 }
46 template <typename SecurityGroupIdT = Aws::String>
47 SecurityGroupMembership& WithSecurityGroupId(SecurityGroupIdT&& value) {
48 SetSecurityGroupId(std::forward<SecurityGroupIdT>(value));
49 return *this;
50 }
52
54
59 inline const Aws::String& GetStatus() const { return m_status; }
60 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
61 template <typename StatusT = Aws::String>
62 void SetStatus(StatusT&& value) {
63 m_statusHasBeenSet = true;
64 m_status = std::forward<StatusT>(value);
65 }
66 template <typename StatusT = Aws::String>
68 SetStatus(std::forward<StatusT>(value));
69 return *this;
70 }
72 private:
73 Aws::String m_securityGroupId;
74
75 Aws::String m_status;
76 bool m_securityGroupIdHasBeenSet = false;
77 bool m_statusHasBeenSet = false;
78};
79
80} // namespace Model
81} // namespace MemoryDB
82} // namespace Aws
AWS_MEMORYDB_API SecurityGroupMembership & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
SecurityGroupMembership & WithStatus(StatusT &&value)
AWS_MEMORYDB_API SecurityGroupMembership(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
AWS_MEMORYDB_API SecurityGroupMembership()=default
AWS_MEMORYDB_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
SecurityGroupMembership & WithSecurityGroupId(SecurityGroupIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String