AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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 <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace CostExplorer
22{
23namespace Model
24{
25
35 {
36 public:
37 AWS_COSTEXPLORER_API RootCause();
38 AWS_COSTEXPLORER_API RootCause(Aws::Utils::Json::JsonView jsonValue);
39 AWS_COSTEXPLORER_API RootCause& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_COSTEXPLORER_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
48 inline const Aws::String& GetService() const{ return m_service; }
49 inline bool ServiceHasBeenSet() const { return m_serviceHasBeenSet; }
50 inline void SetService(const Aws::String& value) { m_serviceHasBeenSet = true; m_service = value; }
51 inline void SetService(Aws::String&& value) { m_serviceHasBeenSet = true; m_service = std::move(value); }
52 inline void SetService(const char* value) { m_serviceHasBeenSet = true; m_service.assign(value); }
53 inline RootCause& WithService(const Aws::String& value) { SetService(value); return *this;}
54 inline RootCause& WithService(Aws::String&& value) { SetService(std::move(value)); return *this;}
55 inline RootCause& WithService(const char* value) { SetService(value); return *this;}
57
59
62 inline const Aws::String& GetRegion() const{ return m_region; }
63 inline bool RegionHasBeenSet() const { return m_regionHasBeenSet; }
64 inline void SetRegion(const Aws::String& value) { m_regionHasBeenSet = true; m_region = value; }
65 inline void SetRegion(Aws::String&& value) { m_regionHasBeenSet = true; m_region = std::move(value); }
66 inline void SetRegion(const char* value) { m_regionHasBeenSet = true; m_region.assign(value); }
67 inline RootCause& WithRegion(const Aws::String& value) { SetRegion(value); return *this;}
68 inline RootCause& WithRegion(Aws::String&& value) { SetRegion(std::move(value)); return *this;}
69 inline RootCause& WithRegion(const char* value) { SetRegion(value); return *this;}
71
73
76 inline const Aws::String& GetLinkedAccount() const{ return m_linkedAccount; }
77 inline bool LinkedAccountHasBeenSet() const { return m_linkedAccountHasBeenSet; }
78 inline void SetLinkedAccount(const Aws::String& value) { m_linkedAccountHasBeenSet = true; m_linkedAccount = value; }
79 inline void SetLinkedAccount(Aws::String&& value) { m_linkedAccountHasBeenSet = true; m_linkedAccount = std::move(value); }
80 inline void SetLinkedAccount(const char* value) { m_linkedAccountHasBeenSet = true; m_linkedAccount.assign(value); }
81 inline RootCause& WithLinkedAccount(const Aws::String& value) { SetLinkedAccount(value); return *this;}
82 inline RootCause& WithLinkedAccount(Aws::String&& value) { SetLinkedAccount(std::move(value)); return *this;}
83 inline RootCause& WithLinkedAccount(const char* value) { SetLinkedAccount(value); return *this;}
85
87
91 inline const Aws::String& GetUsageType() const{ return m_usageType; }
92 inline bool UsageTypeHasBeenSet() const { return m_usageTypeHasBeenSet; }
93 inline void SetUsageType(const Aws::String& value) { m_usageTypeHasBeenSet = true; m_usageType = value; }
94 inline void SetUsageType(Aws::String&& value) { m_usageTypeHasBeenSet = true; m_usageType = std::move(value); }
95 inline void SetUsageType(const char* value) { m_usageTypeHasBeenSet = true; m_usageType.assign(value); }
96 inline RootCause& WithUsageType(const Aws::String& value) { SetUsageType(value); return *this;}
97 inline RootCause& WithUsageType(Aws::String&& value) { SetUsageType(std::move(value)); return *this;}
98 inline RootCause& WithUsageType(const char* value) { SetUsageType(value); return *this;}
100
102
105 inline const Aws::String& GetLinkedAccountName() const{ return m_linkedAccountName; }
106 inline bool LinkedAccountNameHasBeenSet() const { return m_linkedAccountNameHasBeenSet; }
107 inline void SetLinkedAccountName(const Aws::String& value) { m_linkedAccountNameHasBeenSet = true; m_linkedAccountName = value; }
108 inline void SetLinkedAccountName(Aws::String&& value) { m_linkedAccountNameHasBeenSet = true; m_linkedAccountName = std::move(value); }
109 inline void SetLinkedAccountName(const char* value) { m_linkedAccountNameHasBeenSet = true; m_linkedAccountName.assign(value); }
110 inline RootCause& WithLinkedAccountName(const Aws::String& value) { SetLinkedAccountName(value); return *this;}
111 inline RootCause& WithLinkedAccountName(Aws::String&& value) { SetLinkedAccountName(std::move(value)); return *this;}
112 inline RootCause& WithLinkedAccountName(const char* value) { SetLinkedAccountName(value); return *this;}
114 private:
115
116 Aws::String m_service;
117 bool m_serviceHasBeenSet = false;
118
119 Aws::String m_region;
120 bool m_regionHasBeenSet = false;
121
122 Aws::String m_linkedAccount;
123 bool m_linkedAccountHasBeenSet = false;
124
125 Aws::String m_usageType;
126 bool m_usageTypeHasBeenSet = false;
127
128 Aws::String m_linkedAccountName;
129 bool m_linkedAccountNameHasBeenSet = false;
130 };
131
132} // namespace Model
133} // namespace CostExplorer
134} // namespace Aws
RootCause & WithLinkedAccount(const char *value)
Definition RootCause.h:83
RootCause & WithLinkedAccountName(const char *value)
Definition RootCause.h:112
RootCause & WithRegion(const char *value)
Definition RootCause.h:69
const Aws::String & GetLinkedAccountName() const
Definition RootCause.h:105
void SetUsageType(const char *value)
Definition RootCause.h:95
void SetLinkedAccount(const char *value)
Definition RootCause.h:80
AWS_COSTEXPLORER_API RootCause(Aws::Utils::Json::JsonView jsonValue)
RootCause & WithLinkedAccount(const Aws::String &value)
Definition RootCause.h:81
void SetLinkedAccount(Aws::String &&value)
Definition RootCause.h:79
void SetService(const Aws::String &value)
Definition RootCause.h:50
RootCause & WithUsageType(Aws::String &&value)
Definition RootCause.h:97
RootCause & WithUsageType(const char *value)
Definition RootCause.h:98
void SetUsageType(Aws::String &&value)
Definition RootCause.h:94
RootCause & WithLinkedAccount(Aws::String &&value)
Definition RootCause.h:82
void SetRegion(const Aws::String &value)
Definition RootCause.h:64
RootCause & WithService(const char *value)
Definition RootCause.h:55
void SetLinkedAccount(const Aws::String &value)
Definition RootCause.h:78
RootCause & WithUsageType(const Aws::String &value)
Definition RootCause.h:96
const Aws::String & GetService() const
Definition RootCause.h:48
AWS_COSTEXPLORER_API RootCause & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetLinkedAccountName(Aws::String &&value)
Definition RootCause.h:108
RootCause & WithService(Aws::String &&value)
Definition RootCause.h:54
void SetLinkedAccountName(const Aws::String &value)
Definition RootCause.h:107
const Aws::String & GetUsageType() const
Definition RootCause.h:91
AWS_COSTEXPLORER_API Aws::Utils::Json::JsonValue Jsonize() const
void SetUsageType(const Aws::String &value)
Definition RootCause.h:93
void SetLinkedAccountName(const char *value)
Definition RootCause.h:109
RootCause & WithService(const Aws::String &value)
Definition RootCause.h:53
void SetRegion(Aws::String &&value)
Definition RootCause.h:65
const Aws::String & GetLinkedAccount() const
Definition RootCause.h:76
RootCause & WithLinkedAccountName(Aws::String &&value)
Definition RootCause.h:111
void SetService(Aws::String &&value)
Definition RootCause.h:51
RootCause & WithRegion(const Aws::String &value)
Definition RootCause.h:67
void SetService(const char *value)
Definition RootCause.h:52
const Aws::String & GetRegion() const
Definition RootCause.h:62
RootCause & WithLinkedAccountName(const Aws::String &value)
Definition RootCause.h:110
RootCause & WithRegion(Aws::String &&value)
Definition RootCause.h:68
AWS_COSTEXPLORER_API RootCause()
void SetRegion(const char *value)
Definition RootCause.h:66
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue