AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
Substring.h
1
6#pragma once
7#include <aws/accessanalyzer/AccessAnalyzer_EXPORTS.h>
8
9namespace Aws {
10namespace Utils {
11namespace Json {
12class JsonValue;
13class JsonView;
14} // namespace Json
15} // namespace Utils
16namespace AccessAnalyzer {
17namespace Model {
18
25class Substring {
26 public:
27 AWS_ACCESSANALYZER_API Substring() = default;
28 AWS_ACCESSANALYZER_API Substring(Aws::Utils::Json::JsonView jsonValue);
29 AWS_ACCESSANALYZER_API Substring& operator=(Aws::Utils::Json::JsonView jsonValue);
30 AWS_ACCESSANALYZER_API Aws::Utils::Json::JsonValue Jsonize() const;
31
33
36 inline int GetStart() const { return m_start; }
37 inline bool StartHasBeenSet() const { return m_startHasBeenSet; }
38 inline void SetStart(int value) {
39 m_startHasBeenSet = true;
40 m_start = value;
41 }
42 inline Substring& WithStart(int value) {
43 SetStart(value);
44 return *this;
45 }
47
49
52 inline int GetLength() const { return m_length; }
53 inline bool LengthHasBeenSet() const { return m_lengthHasBeenSet; }
54 inline void SetLength(int value) {
55 m_lengthHasBeenSet = true;
56 m_length = value;
57 }
58 inline Substring& WithLength(int value) {
59 SetLength(value);
60 return *this;
61 }
63 private:
64 int m_start{0};
65
66 int m_length{0};
67 bool m_startHasBeenSet = false;
68 bool m_lengthHasBeenSet = false;
69};
70
71} // namespace Model
72} // namespace AccessAnalyzer
73} // namespace Aws
AWS_ACCESSANALYZER_API Substring & operator=(Aws::Utils::Json::JsonView jsonValue)
Substring & WithLength(int value)
Definition Substring.h:58
AWS_ACCESSANALYZER_API Substring(Aws::Utils::Json::JsonView jsonValue)
AWS_ACCESSANALYZER_API Substring()=default
Substring & WithStart(int value)
Definition Substring.h:42
AWS_ACCESSANALYZER_API Aws::Utils::Json::JsonValue Jsonize() const
Aws::Utils::Json::JsonValue JsonValue