AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Contributor.h
1
6#pragma once
7#include <aws/shield/Shield_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 Shield
22{
23namespace Model
24{
25
33 {
34 public:
35 AWS_SHIELD_API Contributor();
36 AWS_SHIELD_API Contributor(Aws::Utils::Json::JsonView jsonValue);
38 AWS_SHIELD_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
49 inline const Aws::String& GetName() const{ return m_name; }
50 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
51 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
52 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
53 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
54 inline Contributor& WithName(const Aws::String& value) { SetName(value); return *this;}
55 inline Contributor& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
56 inline Contributor& WithName(const char* value) { SetName(value); return *this;}
58
60
64 inline long long GetValue() const{ return m_value; }
65 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
66 inline void SetValue(long long value) { m_valueHasBeenSet = true; m_value = value; }
67 inline Contributor& WithValue(long long value) { SetValue(value); return *this;}
69 private:
70
71 Aws::String m_name;
72 bool m_nameHasBeenSet = false;
73
74 long long m_value;
75 bool m_valueHasBeenSet = false;
76 };
77
78} // namespace Model
79} // namespace Shield
80} // namespace Aws
void SetName(const char *value)
Definition Contributor.h:53
void SetName(Aws::String &&value)
Definition Contributor.h:52
Contributor & WithValue(long long value)
Definition Contributor.h:67
AWS_SHIELD_API Aws::Utils::Json::JsonValue Jsonize() const
void SetName(const Aws::String &value)
Definition Contributor.h:51
const Aws::String & GetName() const
Definition Contributor.h:49
AWS_SHIELD_API Contributor & operator=(Aws::Utils::Json::JsonView jsonValue)
Contributor & WithName(const Aws::String &value)
Definition Contributor.h:54
Contributor & WithName(const char *value)
Definition Contributor.h:56
Contributor & WithName(Aws::String &&value)
Definition Contributor.h:55
AWS_SHIELD_API Contributor(Aws::Utils::Json::JsonView jsonValue)
void SetValue(long long value)
Definition Contributor.h:66
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue