AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
AuthorizedTargetsByService.h
1
6#pragma once
7#include <aws/quicksight/QuickSight_EXPORTS.h>
8#include <aws/quicksight/model/ServiceType.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace QuickSight
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_QUICKSIGHT_API AuthorizedTargetsByService() = default;
40 AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline ServiceType GetService() const { return m_service; }
48 inline bool ServiceHasBeenSet() const { return m_serviceHasBeenSet; }
49 inline void SetService(ServiceType value) { m_serviceHasBeenSet = true; m_service = value; }
50 inline AuthorizedTargetsByService& WithService(ServiceType value) { SetService(value); return *this;}
52
54
58 inline const Aws::Vector<Aws::String>& GetAuthorizedTargets() const { return m_authorizedTargets; }
59 inline bool AuthorizedTargetsHasBeenSet() const { return m_authorizedTargetsHasBeenSet; }
60 template<typename AuthorizedTargetsT = Aws::Vector<Aws::String>>
61 void SetAuthorizedTargets(AuthorizedTargetsT&& value) { m_authorizedTargetsHasBeenSet = true; m_authorizedTargets = std::forward<AuthorizedTargetsT>(value); }
62 template<typename AuthorizedTargetsT = Aws::Vector<Aws::String>>
63 AuthorizedTargetsByService& WithAuthorizedTargets(AuthorizedTargetsT&& value) { SetAuthorizedTargets(std::forward<AuthorizedTargetsT>(value)); return *this;}
64 template<typename AuthorizedTargetsT = Aws::String>
65 AuthorizedTargetsByService& AddAuthorizedTargets(AuthorizedTargetsT&& value) { m_authorizedTargetsHasBeenSet = true; m_authorizedTargets.emplace_back(std::forward<AuthorizedTargetsT>(value)); return *this; }
67 private:
68
70 bool m_serviceHasBeenSet = false;
71
72 Aws::Vector<Aws::String> m_authorizedTargets;
73 bool m_authorizedTargetsHasBeenSet = false;
74 };
75
76} // namespace Model
77} // namespace QuickSight
78} // namespace Aws
AWS_QUICKSIGHT_API AuthorizedTargetsByService(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< Aws::String > & GetAuthorizedTargets() const
AuthorizedTargetsByService & AddAuthorizedTargets(AuthorizedTargetsT &&value)
AuthorizedTargetsByService & WithAuthorizedTargets(AuthorizedTargetsT &&value)
AuthorizedTargetsByService & WithService(ServiceType value)
AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_QUICKSIGHT_API AuthorizedTargetsByService & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_QUICKSIGHT_API AuthorizedTargetsByService()=default
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue