AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
UsageTotal.h
1
6#pragma once
7#include <aws/inspector2/Inspector2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/inspector2/model/Usage.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace Inspector2
24{
25namespace Model
26{
27
34 {
35 public:
36 AWS_INSPECTOR2_API UsageTotal();
37 AWS_INSPECTOR2_API UsageTotal(Aws::Utils::Json::JsonView jsonValue);
38 AWS_INSPECTOR2_API UsageTotal& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_INSPECTOR2_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::String& GetAccountId() const{ return m_accountId; }
47 inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
48 inline void SetAccountId(const Aws::String& value) { m_accountIdHasBeenSet = true; m_accountId = value; }
49 inline void SetAccountId(Aws::String&& value) { m_accountIdHasBeenSet = true; m_accountId = std::move(value); }
50 inline void SetAccountId(const char* value) { m_accountIdHasBeenSet = true; m_accountId.assign(value); }
51 inline UsageTotal& WithAccountId(const Aws::String& value) { SetAccountId(value); return *this;}
52 inline UsageTotal& WithAccountId(Aws::String&& value) { SetAccountId(std::move(value)); return *this;}
53 inline UsageTotal& WithAccountId(const char* value) { SetAccountId(value); return *this;}
55
57
60 inline const Aws::Vector<Usage>& GetUsage() const{ return m_usage; }
61 inline bool UsageHasBeenSet() const { return m_usageHasBeenSet; }
62 inline void SetUsage(const Aws::Vector<Usage>& value) { m_usageHasBeenSet = true; m_usage = value; }
63 inline void SetUsage(Aws::Vector<Usage>&& value) { m_usageHasBeenSet = true; m_usage = std::move(value); }
64 inline UsageTotal& WithUsage(const Aws::Vector<Usage>& value) { SetUsage(value); return *this;}
65 inline UsageTotal& WithUsage(Aws::Vector<Usage>&& value) { SetUsage(std::move(value)); return *this;}
66 inline UsageTotal& AddUsage(const Usage& value) { m_usageHasBeenSet = true; m_usage.push_back(value); return *this; }
67 inline UsageTotal& AddUsage(Usage&& value) { m_usageHasBeenSet = true; m_usage.push_back(std::move(value)); return *this; }
69 private:
70
71 Aws::String m_accountId;
72 bool m_accountIdHasBeenSet = false;
73
74 Aws::Vector<Usage> m_usage;
75 bool m_usageHasBeenSet = false;
76 };
77
78} // namespace Model
79} // namespace Inspector2
80} // namespace Aws
UsageTotal & WithUsage(const Aws::Vector< Usage > &value)
Definition UsageTotal.h:64
UsageTotal & WithUsage(Aws::Vector< Usage > &&value)
Definition UsageTotal.h:65
const Aws::Vector< Usage > & GetUsage() const
Definition UsageTotal.h:60
UsageTotal & AddUsage(Usage &&value)
Definition UsageTotal.h:67
void SetAccountId(Aws::String &&value)
Definition UsageTotal.h:49
void SetUsage(const Aws::Vector< Usage > &value)
Definition UsageTotal.h:62
void SetUsage(Aws::Vector< Usage > &&value)
Definition UsageTotal.h:63
AWS_INSPECTOR2_API Aws::Utils::Json::JsonValue Jsonize() const
UsageTotal & AddUsage(const Usage &value)
Definition UsageTotal.h:66
UsageTotal & WithAccountId(Aws::String &&value)
Definition UsageTotal.h:52
UsageTotal & WithAccountId(const Aws::String &value)
Definition UsageTotal.h:51
AWS_INSPECTOR2_API UsageTotal(Aws::Utils::Json::JsonView jsonValue)
void SetAccountId(const Aws::String &value)
Definition UsageTotal.h:48
AWS_INSPECTOR2_API UsageTotal()
void SetAccountId(const char *value)
Definition UsageTotal.h:50
AWS_INSPECTOR2_API UsageTotal & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetAccountId() const
Definition UsageTotal.h:46
UsageTotal & WithAccountId(const char *value)
Definition UsageTotal.h:53
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue