AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ReceivedMetadata.h
1
6#pragma once
7#include <aws/license-manager/LicenseManager_EXPORTS.h>
8#include <aws/license-manager/model/ReceivedStatus.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/license-manager/model/AllowedOperation.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace LicenseManager
25{
26namespace Model
27{
28
36 {
37 public:
38 AWS_LICENSEMANAGER_API ReceivedMetadata();
39 AWS_LICENSEMANAGER_API ReceivedMetadata(Aws::Utils::Json::JsonView jsonValue);
40 AWS_LICENSEMANAGER_API ReceivedMetadata& operator=(Aws::Utils::Json::JsonView jsonValue);
41 AWS_LICENSEMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const ReceivedStatus& GetReceivedStatus() const{ return m_receivedStatus; }
49 inline bool ReceivedStatusHasBeenSet() const { return m_receivedStatusHasBeenSet; }
50 inline void SetReceivedStatus(const ReceivedStatus& value) { m_receivedStatusHasBeenSet = true; m_receivedStatus = value; }
51 inline void SetReceivedStatus(ReceivedStatus&& value) { m_receivedStatusHasBeenSet = true; m_receivedStatus = std::move(value); }
52 inline ReceivedMetadata& WithReceivedStatus(const ReceivedStatus& value) { SetReceivedStatus(value); return *this;}
53 inline ReceivedMetadata& WithReceivedStatus(ReceivedStatus&& value) { SetReceivedStatus(std::move(value)); return *this;}
55
57
60 inline const Aws::String& GetReceivedStatusReason() const{ return m_receivedStatusReason; }
61 inline bool ReceivedStatusReasonHasBeenSet() const { return m_receivedStatusReasonHasBeenSet; }
62 inline void SetReceivedStatusReason(const Aws::String& value) { m_receivedStatusReasonHasBeenSet = true; m_receivedStatusReason = value; }
63 inline void SetReceivedStatusReason(Aws::String&& value) { m_receivedStatusReasonHasBeenSet = true; m_receivedStatusReason = std::move(value); }
64 inline void SetReceivedStatusReason(const char* value) { m_receivedStatusReasonHasBeenSet = true; m_receivedStatusReason.assign(value); }
66 inline ReceivedMetadata& WithReceivedStatusReason(Aws::String&& value) { SetReceivedStatusReason(std::move(value)); return *this;}
67 inline ReceivedMetadata& WithReceivedStatusReason(const char* value) { SetReceivedStatusReason(value); return *this;}
69
71
74 inline const Aws::Vector<AllowedOperation>& GetAllowedOperations() const{ return m_allowedOperations; }
75 inline bool AllowedOperationsHasBeenSet() const { return m_allowedOperationsHasBeenSet; }
76 inline void SetAllowedOperations(const Aws::Vector<AllowedOperation>& value) { m_allowedOperationsHasBeenSet = true; m_allowedOperations = value; }
77 inline void SetAllowedOperations(Aws::Vector<AllowedOperation>&& value) { m_allowedOperationsHasBeenSet = true; m_allowedOperations = std::move(value); }
80 inline ReceivedMetadata& AddAllowedOperations(const AllowedOperation& value) { m_allowedOperationsHasBeenSet = true; m_allowedOperations.push_back(value); return *this; }
81 inline ReceivedMetadata& AddAllowedOperations(AllowedOperation&& value) { m_allowedOperationsHasBeenSet = true; m_allowedOperations.push_back(std::move(value)); return *this; }
83 private:
84
85 ReceivedStatus m_receivedStatus;
86 bool m_receivedStatusHasBeenSet = false;
87
88 Aws::String m_receivedStatusReason;
89 bool m_receivedStatusReasonHasBeenSet = false;
90
91 Aws::Vector<AllowedOperation> m_allowedOperations;
92 bool m_allowedOperationsHasBeenSet = false;
93 };
94
95} // namespace Model
96} // namespace LicenseManager
97} // namespace Aws
AWS_LICENSEMANAGER_API ReceivedMetadata(Aws::Utils::Json::JsonView jsonValue)
ReceivedMetadata & WithReceivedStatusReason(const Aws::String &value)
AWS_LICENSEMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const
ReceivedMetadata & AddAllowedOperations(AllowedOperation &&value)
const ReceivedStatus & GetReceivedStatus() const
AWS_LICENSEMANAGER_API ReceivedMetadata & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetReceivedStatus(const ReceivedStatus &value)
ReceivedMetadata & WithAllowedOperations(Aws::Vector< AllowedOperation > &&value)
void SetAllowedOperations(Aws::Vector< AllowedOperation > &&value)
const Aws::String & GetReceivedStatusReason() const
void SetReceivedStatusReason(const Aws::String &value)
ReceivedMetadata & WithReceivedStatusReason(Aws::String &&value)
ReceivedMetadata & WithAllowedOperations(const Aws::Vector< AllowedOperation > &value)
ReceivedMetadata & WithReceivedStatus(const ReceivedStatus &value)
const Aws::Vector< AllowedOperation > & GetAllowedOperations() const
void SetAllowedOperations(const Aws::Vector< AllowedOperation > &value)
ReceivedMetadata & WithReceivedStatus(ReceivedStatus &&value)
ReceivedMetadata & AddAllowedOperations(const AllowedOperation &value)
ReceivedMetadata & WithReceivedStatusReason(const char *value)
void SetReceivedStatusReason(Aws::String &&value)
void SetReceivedStatus(ReceivedStatus &&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