AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
PrimaryKey.h
1
6#pragma once
7#include <aws/m2/MainframeModernization_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 MainframeModernization
22{
23namespace Model
24{
25
32 {
33 public:
34 AWS_MAINFRAMEMODERNIZATION_API PrimaryKey();
35 AWS_MAINFRAMEMODERNIZATION_API PrimaryKey(Aws::Utils::Json::JsonView jsonValue);
36 AWS_MAINFRAMEMODERNIZATION_API PrimaryKey& operator=(Aws::Utils::Json::JsonView jsonValue);
37 AWS_MAINFRAMEMODERNIZATION_API Aws::Utils::Json::JsonValue Jsonize() const;
38
39
41
45 inline int GetLength() const{ return m_length; }
46 inline bool LengthHasBeenSet() const { return m_lengthHasBeenSet; }
47 inline void SetLength(int value) { m_lengthHasBeenSet = true; m_length = value; }
48 inline PrimaryKey& WithLength(int value) { SetLength(value); return *this;}
50
52
55 inline const Aws::String& GetName() const{ return m_name; }
56 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
57 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
58 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
59 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
60 inline PrimaryKey& WithName(const Aws::String& value) { SetName(value); return *this;}
61 inline PrimaryKey& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
62 inline PrimaryKey& WithName(const char* value) { SetName(value); return *this;}
64
66
70 inline int GetOffset() const{ return m_offset; }
71 inline bool OffsetHasBeenSet() const { return m_offsetHasBeenSet; }
72 inline void SetOffset(int value) { m_offsetHasBeenSet = true; m_offset = value; }
73 inline PrimaryKey& WithOffset(int value) { SetOffset(value); return *this;}
75 private:
76
77 int m_length;
78 bool m_lengthHasBeenSet = false;
79
80 Aws::String m_name;
81 bool m_nameHasBeenSet = false;
82
83 int m_offset;
84 bool m_offsetHasBeenSet = false;
85 };
86
87} // namespace Model
88} // namespace MainframeModernization
89} // namespace Aws
AWS_MAINFRAMEMODERNIZATION_API PrimaryKey & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_MAINFRAMEMODERNIZATION_API PrimaryKey()
PrimaryKey & WithName(const Aws::String &value)
Definition PrimaryKey.h:60
AWS_MAINFRAMEMODERNIZATION_API PrimaryKey(Aws::Utils::Json::JsonView jsonValue)
PrimaryKey & WithName(Aws::String &&value)
Definition PrimaryKey.h:61
PrimaryKey & WithName(const char *value)
Definition PrimaryKey.h:62
void SetName(const Aws::String &value)
Definition PrimaryKey.h:57
AWS_MAINFRAMEMODERNIZATION_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue