AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
IamRoleConfiguration.h
1
6#pragma once
7#include <aws/accessanalyzer/AccessAnalyzer_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace AccessAnalyzer {
20namespace Model {
21
36 public:
37 AWS_ACCESSANALYZER_API IamRoleConfiguration() = default;
38 AWS_ACCESSANALYZER_API IamRoleConfiguration(Aws::Utils::Json::JsonView jsonValue);
39 AWS_ACCESSANALYZER_API IamRoleConfiguration& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_ACCESSANALYZER_API Aws::Utils::Json::JsonValue Jsonize() const;
41
43
46 inline const Aws::String& GetTrustPolicy() const { return m_trustPolicy; }
47 inline bool TrustPolicyHasBeenSet() const { return m_trustPolicyHasBeenSet; }
48 template <typename TrustPolicyT = Aws::String>
49 void SetTrustPolicy(TrustPolicyT&& value) {
50 m_trustPolicyHasBeenSet = true;
51 m_trustPolicy = std::forward<TrustPolicyT>(value);
52 }
53 template <typename TrustPolicyT = Aws::String>
54 IamRoleConfiguration& WithTrustPolicy(TrustPolicyT&& value) {
55 SetTrustPolicy(std::forward<TrustPolicyT>(value));
56 return *this;
57 }
59 private:
60 Aws::String m_trustPolicy;
61 bool m_trustPolicyHasBeenSet = false;
62};
63
64} // namespace Model
65} // namespace AccessAnalyzer
66} // namespace Aws
IamRoleConfiguration & WithTrustPolicy(TrustPolicyT &&value)
AWS_ACCESSANALYZER_API IamRoleConfiguration(Aws::Utils::Json::JsonView jsonValue)
AWS_ACCESSANALYZER_API IamRoleConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_ACCESSANALYZER_API IamRoleConfiguration()=default
AWS_ACCESSANALYZER_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue