AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
RootCause.h
1
6#pragma once
7#include <aws/ce/CostExplorer_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/ce/model/RootCauseImpact.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace CostExplorer
23{
24namespace Model
25{
26
37 {
38 public:
39 AWS_COSTEXPLORER_API RootCause() = default;
40 AWS_COSTEXPLORER_API RootCause(Aws::Utils::Json::JsonView jsonValue);
41 AWS_COSTEXPLORER_API RootCause& operator=(Aws::Utils::Json::JsonView jsonValue);
42 AWS_COSTEXPLORER_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
50 inline const Aws::String& GetService() const { return m_service; }
51 inline bool ServiceHasBeenSet() const { return m_serviceHasBeenSet; }
52 template<typename ServiceT = Aws::String>
53 void SetService(ServiceT&& value) { m_serviceHasBeenSet = true; m_service = std::forward<ServiceT>(value); }
54 template<typename ServiceT = Aws::String>
55 RootCause& WithService(ServiceT&& value) { SetService(std::forward<ServiceT>(value)); return *this;}
57
59
62 inline const Aws::String& GetRegion() const { return m_region; }
63 inline bool RegionHasBeenSet() const { return m_regionHasBeenSet; }
64 template<typename RegionT = Aws::String>
65 void SetRegion(RegionT&& value) { m_regionHasBeenSet = true; m_region = std::forward<RegionT>(value); }
66 template<typename RegionT = Aws::String>
67 RootCause& WithRegion(RegionT&& value) { SetRegion(std::forward<RegionT>(value)); return *this;}
69
71
74 inline const Aws::String& GetLinkedAccount() const { return m_linkedAccount; }
75 inline bool LinkedAccountHasBeenSet() const { return m_linkedAccountHasBeenSet; }
76 template<typename LinkedAccountT = Aws::String>
77 void SetLinkedAccount(LinkedAccountT&& value) { m_linkedAccountHasBeenSet = true; m_linkedAccount = std::forward<LinkedAccountT>(value); }
78 template<typename LinkedAccountT = Aws::String>
79 RootCause& WithLinkedAccount(LinkedAccountT&& value) { SetLinkedAccount(std::forward<LinkedAccountT>(value)); return *this;}
81
83
86 inline const Aws::String& GetLinkedAccountName() const { return m_linkedAccountName; }
87 inline bool LinkedAccountNameHasBeenSet() const { return m_linkedAccountNameHasBeenSet; }
88 template<typename LinkedAccountNameT = Aws::String>
89 void SetLinkedAccountName(LinkedAccountNameT&& value) { m_linkedAccountNameHasBeenSet = true; m_linkedAccountName = std::forward<LinkedAccountNameT>(value); }
90 template<typename LinkedAccountNameT = Aws::String>
91 RootCause& WithLinkedAccountName(LinkedAccountNameT&& value) { SetLinkedAccountName(std::forward<LinkedAccountNameT>(value)); return *this;}
93
95
99 inline const Aws::String& GetUsageType() const { return m_usageType; }
100 inline bool UsageTypeHasBeenSet() const { return m_usageTypeHasBeenSet; }
101 template<typename UsageTypeT = Aws::String>
102 void SetUsageType(UsageTypeT&& value) { m_usageTypeHasBeenSet = true; m_usageType = std::forward<UsageTypeT>(value); }
103 template<typename UsageTypeT = Aws::String>
104 RootCause& WithUsageType(UsageTypeT&& value) { SetUsageType(std::forward<UsageTypeT>(value)); return *this;}
106
108
111 inline const RootCauseImpact& GetImpact() const { return m_impact; }
112 inline bool ImpactHasBeenSet() const { return m_impactHasBeenSet; }
113 template<typename ImpactT = RootCauseImpact>
114 void SetImpact(ImpactT&& value) { m_impactHasBeenSet = true; m_impact = std::forward<ImpactT>(value); }
115 template<typename ImpactT = RootCauseImpact>
116 RootCause& WithImpact(ImpactT&& value) { SetImpact(std::forward<ImpactT>(value)); return *this;}
118 private:
119
120 Aws::String m_service;
121 bool m_serviceHasBeenSet = false;
122
123 Aws::String m_region;
124 bool m_regionHasBeenSet = false;
125
126 Aws::String m_linkedAccount;
127 bool m_linkedAccountHasBeenSet = false;
128
129 Aws::String m_linkedAccountName;
130 bool m_linkedAccountNameHasBeenSet = false;
131
132 Aws::String m_usageType;
133 bool m_usageTypeHasBeenSet = false;
134
135 RootCauseImpact m_impact;
136 bool m_impactHasBeenSet = false;
137 };
138
139} // namespace Model
140} // namespace CostExplorer
141} // namespace Aws
RootCause & WithUsageType(UsageTypeT &&value)
Definition RootCause.h:104
const Aws::String & GetLinkedAccountName() const
Definition RootCause.h:86
AWS_COSTEXPLORER_API RootCause(Aws::Utils::Json::JsonView jsonValue)
const RootCauseImpact & GetImpact() const
Definition RootCause.h:111
RootCause & WithLinkedAccountName(LinkedAccountNameT &&value)
Definition RootCause.h:91
void SetLinkedAccount(LinkedAccountT &&value)
Definition RootCause.h:77
const Aws::String & GetService() const
Definition RootCause.h:50
AWS_COSTEXPLORER_API RootCause & operator=(Aws::Utils::Json::JsonView jsonValue)
RootCause & WithRegion(RegionT &&value)
Definition RootCause.h:67
RootCause & WithService(ServiceT &&value)
Definition RootCause.h:55
const Aws::String & GetUsageType() const
Definition RootCause.h:99
AWS_COSTEXPLORER_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetLinkedAccount() const
Definition RootCause.h:74
void SetRegion(RegionT &&value)
Definition RootCause.h:65
RootCause & WithLinkedAccount(LinkedAccountT &&value)
Definition RootCause.h:79
void SetUsageType(UsageTypeT &&value)
Definition RootCause.h:102
const Aws::String & GetRegion() const
Definition RootCause.h:62
void SetService(ServiceT &&value)
Definition RootCause.h:53
AWS_COSTEXPLORER_API RootCause()=default
void SetLinkedAccountName(LinkedAccountNameT &&value)
Definition RootCause.h:89
RootCause & WithImpact(ImpactT &&value)
Definition RootCause.h:116
void SetImpact(ImpactT &&value)
Definition RootCause.h:114
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue