AWS SDK for C++

AWS SDK for C++ Version 1.11.944

Loading...
Searching...
No Matches
AgentUsageDetail.h
1
6#pragma once
7#include <aws/acm/ACM_EXPORTS.h>
8#include <aws/acm/model/AgentAutomationDetail.h>
9#include <aws/acm/model/AgentDiscoveryDetail.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace ACM {
21namespace Model {
22
30 public:
31 AWS_ACM_API AgentUsageDetail() = default;
35
37
41 inline const AgentDiscoveryDetail& GetDiscovery() const { return m_discovery; }
42 inline bool DiscoveryHasBeenSet() const { return m_discoveryHasBeenSet; }
43 template <typename DiscoveryT = AgentDiscoveryDetail>
44 void SetDiscovery(DiscoveryT&& value) {
45 m_discoveryHasBeenSet = true;
46 m_discovery = std::forward<DiscoveryT>(value);
47 }
48 template <typename DiscoveryT = AgentDiscoveryDetail>
49 AgentUsageDetail& WithDiscovery(DiscoveryT&& value) {
50 SetDiscovery(std::forward<DiscoveryT>(value));
51 return *this;
52 }
54
56
60 inline const AgentAutomationDetail& GetAutomation() const { return m_automation; }
61 inline bool AutomationHasBeenSet() const { return m_automationHasBeenSet; }
62 template <typename AutomationT = AgentAutomationDetail>
63 void SetAutomation(AutomationT&& value) {
64 m_automationHasBeenSet = true;
65 m_automation = std::forward<AutomationT>(value);
66 }
67 template <typename AutomationT = AgentAutomationDetail>
68 AgentUsageDetail& WithAutomation(AutomationT&& value) {
69 SetAutomation(std::forward<AutomationT>(value));
70 return *this;
71 }
73 private:
74 AgentDiscoveryDetail m_discovery;
75
76 AgentAutomationDetail m_automation;
77 bool m_discoveryHasBeenSet = false;
78 bool m_automationHasBeenSet = false;
79};
80
81} // namespace Model
82} // namespace ACM
83} // namespace Aws
void SetDiscovery(DiscoveryT &&value)
AgentUsageDetail & WithAutomation(AutomationT &&value)
void SetAutomation(AutomationT &&value)
AWS_ACM_API Aws::Utils::Json::JsonValue Jsonize() const
const AgentAutomationDetail & GetAutomation() const
AgentUsageDetail & WithDiscovery(DiscoveryT &&value)
AWS_ACM_API AgentUsageDetail(Aws::Utils::Json::JsonView jsonValue)
const AgentDiscoveryDetail & GetDiscovery() const
AWS_ACM_API AgentUsageDetail & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_ACM_API AgentUsageDetail()=default
Aws::Utils::Json::JsonValue JsonValue