AWS SDK for C++  1.9.123
AWS SDK for C++
ProductCode.h
Go to the documentation of this file.
1 
6 #pragma once
9 #include <utility>
10 
11 namespace Aws
12 {
13 namespace Utils
14 {
15 namespace Json
16 {
17  class JsonValue;
18  class JsonView;
19 } // namespace Json
20 } // namespace Utils
21 namespace GuardDuty
22 {
23 namespace Model
24 {
25 
33  {
34  public:
39 
40 
44  inline const Aws::String& GetCode() const{ return m_code; }
45 
49  inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; }
50 
54  inline void SetCode(const Aws::String& value) { m_codeHasBeenSet = true; m_code = value; }
55 
59  inline void SetCode(Aws::String&& value) { m_codeHasBeenSet = true; m_code = std::move(value); }
60 
64  inline void SetCode(const char* value) { m_codeHasBeenSet = true; m_code.assign(value); }
65 
69  inline ProductCode& WithCode(const Aws::String& value) { SetCode(value); return *this;}
70 
74  inline ProductCode& WithCode(Aws::String&& value) { SetCode(std::move(value)); return *this;}
75 
79  inline ProductCode& WithCode(const char* value) { SetCode(value); return *this;}
80 
81 
85  inline const Aws::String& GetProductType() const{ return m_productType; }
86 
90  inline bool ProductTypeHasBeenSet() const { return m_productTypeHasBeenSet; }
91 
95  inline void SetProductType(const Aws::String& value) { m_productTypeHasBeenSet = true; m_productType = value; }
96 
100  inline void SetProductType(Aws::String&& value) { m_productTypeHasBeenSet = true; m_productType = std::move(value); }
101 
105  inline void SetProductType(const char* value) { m_productTypeHasBeenSet = true; m_productType.assign(value); }
106 
110  inline ProductCode& WithProductType(const Aws::String& value) { SetProductType(value); return *this;}
111 
115  inline ProductCode& WithProductType(Aws::String&& value) { SetProductType(std::move(value)); return *this;}
116 
120  inline ProductCode& WithProductType(const char* value) { SetProductType(value); return *this;}
121 
122  private:
123 
124  Aws::String m_code;
125  bool m_codeHasBeenSet;
126 
127  Aws::String m_productType;
128  bool m_productTypeHasBeenSet;
129  };
130 
131 } // namespace Model
132 } // namespace GuardDuty
133 } // namespace Aws
Aws::GuardDuty::Model::ProductCode::GetProductType
const Aws::String & GetProductType() const
Definition: ProductCode.h:85
Aws::GuardDuty::Model::ProductCode::operator=
ProductCode & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::GuardDuty::Model::ProductCode::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::GuardDuty::Model::ProductCode::WithCode
ProductCode & WithCode(const Aws::String &value)
Definition: ProductCode.h:69
Aws::GuardDuty::Model::ProductCode::SetProductType
void SetProductType(const Aws::String &value)
Definition: ProductCode.h:95
Aws::GuardDuty::Model::ProductCode::ProductCode
ProductCode()
Aws::GuardDuty::Model::ProductCode
Definition: ProductCode.h:33
Aws::GuardDuty::Model::ProductCode::SetProductType
void SetProductType(Aws::String &&value)
Definition: ProductCode.h:100
Aws::GuardDuty::Model::ProductCode::WithProductType
ProductCode & WithProductType(const char *value)
Definition: ProductCode.h:120
Aws::GuardDuty::Model::ProductCode::ProductCode
ProductCode(Aws::Utils::Json::JsonView jsonValue)
GuardDuty_EXPORTS.h
AWS_GUARDDUTY_API
#define AWS_GUARDDUTY_API
Definition: GuardDuty_EXPORTS.h:28
Aws::GuardDuty::Model::ProductCode::ProductTypeHasBeenSet
bool ProductTypeHasBeenSet() const
Definition: ProductCode.h:90
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::GuardDuty::Model::ProductCode::SetProductType
void SetProductType(const char *value)
Definition: ProductCode.h:105
Aws::GuardDuty::Model::ProductCode::WithProductType
ProductCode & WithProductType(const Aws::String &value)
Definition: ProductCode.h:110
Aws::GuardDuty::Model::ProductCode::GetCode
const Aws::String & GetCode() const
Definition: ProductCode.h:44
Aws::GuardDuty::Model::ProductCode::CodeHasBeenSet
bool CodeHasBeenSet() const
Definition: ProductCode.h:49
Aws::GuardDuty::Model::ProductCode::WithCode
ProductCode & WithCode(const char *value)
Definition: ProductCode.h:79
Aws
Definition: AccessManagementClient.h:15
Aws::GuardDuty::Model::ProductCode::SetCode
void SetCode(const Aws::String &value)
Definition: ProductCode.h:54
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::GuardDuty::Model::ProductCode::WithCode
ProductCode & WithCode(Aws::String &&value)
Definition: ProductCode.h:74
Aws::GuardDuty::Model::ProductCode::WithProductType
ProductCode & WithProductType(Aws::String &&value)
Definition: ProductCode.h:115
Aws::GuardDuty::Model::ProductCode::SetCode
void SetCode(Aws::String &&value)
Definition: ProductCode.h:59
Aws::GuardDuty::Model::ProductCode::SetCode
void SetCode(const char *value)
Definition: ProductCode.h:64