AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Principal.h
1
6#pragma once
7#include <aws/lexv2-models/LexModelsV2_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 LexModelsV2
22{
23namespace Model
24{
25
36 {
37 public:
38 AWS_LEXMODELSV2_API Principal();
39 AWS_LEXMODELSV2_API Principal(Aws::Utils::Json::JsonView jsonValue);
40 AWS_LEXMODELSV2_API Principal& operator=(Aws::Utils::Json::JsonView jsonValue);
41 AWS_LEXMODELSV2_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
49 inline const Aws::String& GetService() const{ return m_service; }
50 inline bool ServiceHasBeenSet() const { return m_serviceHasBeenSet; }
51 inline void SetService(const Aws::String& value) { m_serviceHasBeenSet = true; m_service = value; }
52 inline void SetService(Aws::String&& value) { m_serviceHasBeenSet = true; m_service = std::move(value); }
53 inline void SetService(const char* value) { m_serviceHasBeenSet = true; m_service.assign(value); }
54 inline Principal& WithService(const Aws::String& value) { SetService(value); return *this;}
55 inline Principal& WithService(Aws::String&& value) { SetService(std::move(value)); return *this;}
56 inline Principal& WithService(const char* value) { SetService(value); return *this;}
58
60
63 inline const Aws::String& GetArn() const{ return m_arn; }
64 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
65 inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
66 inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
67 inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
68 inline Principal& WithArn(const Aws::String& value) { SetArn(value); return *this;}
69 inline Principal& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
70 inline Principal& WithArn(const char* value) { SetArn(value); return *this;}
72 private:
73
74 Aws::String m_service;
75 bool m_serviceHasBeenSet = false;
76
77 Aws::String m_arn;
78 bool m_arnHasBeenSet = false;
79 };
80
81} // namespace Model
82} // namespace LexModelsV2
83} // namespace Aws
Principal & WithArn(const Aws::String &value)
Definition Principal.h:68
void SetArn(const Aws::String &value)
Definition Principal.h:65
Principal & WithService(const char *value)
Definition Principal.h:56
const Aws::String & GetArn() const
Definition Principal.h:63
void SetService(Aws::String &&value)
Definition Principal.h:52
AWS_LEXMODELSV2_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_LEXMODELSV2_API Principal(Aws::Utils::Json::JsonView jsonValue)
AWS_LEXMODELSV2_API Principal & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetService(const char *value)
Definition Principal.h:53
void SetArn(const char *value)
Definition Principal.h:67
Principal & WithArn(Aws::String &&value)
Definition Principal.h:69
void SetService(const Aws::String &value)
Definition Principal.h:51
const Aws::String & GetService() const
Definition Principal.h:49
AWS_LEXMODELSV2_API Principal()
Principal & WithService(Aws::String &&value)
Definition Principal.h:55
Principal & WithService(const Aws::String &value)
Definition Principal.h:54
Principal & WithArn(const char *value)
Definition Principal.h:70
void SetArn(Aws::String &&value)
Definition Principal.h:66
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue