AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ProductCode.h
1
6#pragma once
7#include <aws/guardduty/GuardDuty_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 GuardDuty
22{
23namespace Model
24{
25
33 {
34 public:
35 AWS_GUARDDUTY_API ProductCode();
36 AWS_GUARDDUTY_API ProductCode(Aws::Utils::Json::JsonView jsonValue);
37 AWS_GUARDDUTY_API ProductCode& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline const Aws::String& GetCode() const{ return m_code; }
46 inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; }
47 inline void SetCode(const Aws::String& value) { m_codeHasBeenSet = true; m_code = value; }
48 inline void SetCode(Aws::String&& value) { m_codeHasBeenSet = true; m_code = std::move(value); }
49 inline void SetCode(const char* value) { m_codeHasBeenSet = true; m_code.assign(value); }
50 inline ProductCode& WithCode(const Aws::String& value) { SetCode(value); return *this;}
51 inline ProductCode& WithCode(Aws::String&& value) { SetCode(std::move(value)); return *this;}
52 inline ProductCode& WithCode(const char* value) { SetCode(value); return *this;}
54
56
59 inline const Aws::String& GetProductType() const{ return m_productType; }
60 inline bool ProductTypeHasBeenSet() const { return m_productTypeHasBeenSet; }
61 inline void SetProductType(const Aws::String& value) { m_productTypeHasBeenSet = true; m_productType = value; }
62 inline void SetProductType(Aws::String&& value) { m_productTypeHasBeenSet = true; m_productType = std::move(value); }
63 inline void SetProductType(const char* value) { m_productTypeHasBeenSet = true; m_productType.assign(value); }
64 inline ProductCode& WithProductType(const Aws::String& value) { SetProductType(value); return *this;}
65 inline ProductCode& WithProductType(Aws::String&& value) { SetProductType(std::move(value)); return *this;}
66 inline ProductCode& WithProductType(const char* value) { SetProductType(value); return *this;}
68 private:
69
70 Aws::String m_code;
71 bool m_codeHasBeenSet = false;
72
73 Aws::String m_productType;
74 bool m_productTypeHasBeenSet = false;
75 };
76
77} // namespace Model
78} // namespace GuardDuty
79} // namespace Aws
AWS_GUARDDUTY_API ProductCode & operator=(Aws::Utils::Json::JsonView jsonValue)
ProductCode & WithProductType(const char *value)
Definition ProductCode.h:66
ProductCode & WithCode(Aws::String &&value)
Definition ProductCode.h:51
AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const
void SetProductType(Aws::String &&value)
Definition ProductCode.h:62
void SetCode(Aws::String &&value)
Definition ProductCode.h:48
void SetProductType(const Aws::String &value)
Definition ProductCode.h:61
void SetCode(const Aws::String &value)
Definition ProductCode.h:47
void SetProductType(const char *value)
Definition ProductCode.h:63
const Aws::String & GetCode() const
Definition ProductCode.h:45
ProductCode & WithProductType(const Aws::String &value)
Definition ProductCode.h:64
AWS_GUARDDUTY_API ProductCode(Aws::Utils::Json::JsonView jsonValue)
void SetCode(const char *value)
Definition ProductCode.h:49
ProductCode & WithCode(const char *value)
Definition ProductCode.h:52
ProductCode & WithCode(const Aws::String &value)
Definition ProductCode.h:50
ProductCode & WithProductType(Aws::String &&value)
Definition ProductCode.h:65
const Aws::String & GetProductType() const
Definition ProductCode.h:59
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue