AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
ReceivedMetadata.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/license-manager/LicenseManager_EXPORTS.h>
10#include <aws/license-manager/model/AllowedOperation.h>
11#include <aws/license-manager/model/ReceivedStatus.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace LicenseManager {
23namespace Model {
24
32 public:
33 AWS_LICENSEMANAGER_API ReceivedMetadata() = default;
34 AWS_LICENSEMANAGER_API ReceivedMetadata(Aws::Utils::Json::JsonView jsonValue);
35 AWS_LICENSEMANAGER_API ReceivedMetadata& operator=(Aws::Utils::Json::JsonView jsonValue);
36 AWS_LICENSEMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline ReceivedStatus GetReceivedStatus() const { return m_receivedStatus; }
43 inline bool ReceivedStatusHasBeenSet() const { return m_receivedStatusHasBeenSet; }
44 inline void SetReceivedStatus(ReceivedStatus value) {
45 m_receivedStatusHasBeenSet = true;
46 m_receivedStatus = value;
47 }
49 SetReceivedStatus(value);
50 return *this;
51 }
53
55
58 inline const Aws::String& GetReceivedStatusReason() const { return m_receivedStatusReason; }
59 inline bool ReceivedStatusReasonHasBeenSet() const { return m_receivedStatusReasonHasBeenSet; }
60 template <typename ReceivedStatusReasonT = Aws::String>
61 void SetReceivedStatusReason(ReceivedStatusReasonT&& value) {
62 m_receivedStatusReasonHasBeenSet = true;
63 m_receivedStatusReason = std::forward<ReceivedStatusReasonT>(value);
64 }
65 template <typename ReceivedStatusReasonT = Aws::String>
66 ReceivedMetadata& WithReceivedStatusReason(ReceivedStatusReasonT&& value) {
67 SetReceivedStatusReason(std::forward<ReceivedStatusReasonT>(value));
68 return *this;
69 }
71
73
76 inline const Aws::Vector<AllowedOperation>& GetAllowedOperations() const { return m_allowedOperations; }
77 inline bool AllowedOperationsHasBeenSet() const { return m_allowedOperationsHasBeenSet; }
78 template <typename AllowedOperationsT = Aws::Vector<AllowedOperation>>
79 void SetAllowedOperations(AllowedOperationsT&& value) {
80 m_allowedOperationsHasBeenSet = true;
81 m_allowedOperations = std::forward<AllowedOperationsT>(value);
82 }
83 template <typename AllowedOperationsT = Aws::Vector<AllowedOperation>>
84 ReceivedMetadata& WithAllowedOperations(AllowedOperationsT&& value) {
85 SetAllowedOperations(std::forward<AllowedOperationsT>(value));
86 return *this;
87 }
89 m_allowedOperationsHasBeenSet = true;
90 m_allowedOperations.push_back(value);
91 return *this;
92 }
94 private:
96
97 Aws::String m_receivedStatusReason;
98
99 Aws::Vector<AllowedOperation> m_allowedOperations;
100 bool m_receivedStatusHasBeenSet = false;
101 bool m_receivedStatusReasonHasBeenSet = false;
102 bool m_allowedOperationsHasBeenSet = false;
103};
104
105} // namespace Model
106} // namespace LicenseManager
107} // namespace Aws
ReceivedMetadata & AddAllowedOperations(AllowedOperation value)
AWS_LICENSEMANAGER_API ReceivedMetadata(Aws::Utils::Json::JsonView jsonValue)
AWS_LICENSEMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const
ReceivedMetadata & WithReceivedStatus(ReceivedStatus value)
AWS_LICENSEMANAGER_API ReceivedMetadata & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetReceivedStatusReason() const
ReceivedMetadata & WithAllowedOperations(AllowedOperationsT &&value)
const Aws::Vector< AllowedOperation > & GetAllowedOperations() const
void SetAllowedOperations(AllowedOperationsT &&value)
AWS_LICENSEMANAGER_API ReceivedMetadata()=default
void SetReceivedStatusReason(ReceivedStatusReasonT &&value)
ReceivedMetadata & WithReceivedStatusReason(ReceivedStatusReasonT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue