AWS SDK for C++

AWS SDK for C++ Version 1.11.929

Loading...
Searching...
No Matches
AuthConfigUpdate.h
1
6#pragma once
7#include <aws/iot-managed-integrations/IoTManagedIntegrations_EXPORTS.h>
8#include <aws/iot-managed-integrations/model/GeneralAuthorizationUpdate.h>
9#include <aws/iot-managed-integrations/model/OAuthUpdate.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace IoTManagedIntegrations {
21namespace Model {
22
30 public:
31 AWS_IOTMANAGEDINTEGRATIONS_API AuthConfigUpdate() = default;
32 AWS_IOTMANAGEDINTEGRATIONS_API AuthConfigUpdate(Aws::Utils::Json::JsonView jsonValue);
33 AWS_IOTMANAGEDINTEGRATIONS_API AuthConfigUpdate& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_IOTMANAGEDINTEGRATIONS_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
41 inline const OAuthUpdate& GetOAuthUpdate() const { return m_oAuthUpdate; }
42 inline bool OAuthUpdateHasBeenSet() const { return m_oAuthUpdateHasBeenSet; }
43 template <typename OAuthUpdateT = OAuthUpdate>
44 void SetOAuthUpdate(OAuthUpdateT&& value) {
45 m_oAuthUpdateHasBeenSet = true;
46 m_oAuthUpdate = std::forward<OAuthUpdateT>(value);
47 }
48 template <typename OAuthUpdateT = OAuthUpdate>
49 AuthConfigUpdate& WithOAuthUpdate(OAuthUpdateT&& value) {
50 SetOAuthUpdate(std::forward<OAuthUpdateT>(value));
51 return *this;
52 }
54
56
60 inline const GeneralAuthorizationUpdate& GetGeneralAuthorizationUpdate() const { return m_generalAuthorizationUpdate; }
61 inline bool GeneralAuthorizationUpdateHasBeenSet() const { return m_generalAuthorizationUpdateHasBeenSet; }
62 template <typename GeneralAuthorizationUpdateT = GeneralAuthorizationUpdate>
63 void SetGeneralAuthorizationUpdate(GeneralAuthorizationUpdateT&& value) {
64 m_generalAuthorizationUpdateHasBeenSet = true;
65 m_generalAuthorizationUpdate = std::forward<GeneralAuthorizationUpdateT>(value);
66 }
67 template <typename GeneralAuthorizationUpdateT = GeneralAuthorizationUpdate>
68 AuthConfigUpdate& WithGeneralAuthorizationUpdate(GeneralAuthorizationUpdateT&& value) {
69 SetGeneralAuthorizationUpdate(std::forward<GeneralAuthorizationUpdateT>(value));
70 return *this;
71 }
73 private:
74 OAuthUpdate m_oAuthUpdate;
75
76 GeneralAuthorizationUpdate m_generalAuthorizationUpdate;
77 bool m_oAuthUpdateHasBeenSet = false;
78 bool m_generalAuthorizationUpdateHasBeenSet = false;
79};
80
81} // namespace Model
82} // namespace IoTManagedIntegrations
83} // namespace Aws
AWS_IOTMANAGEDINTEGRATIONS_API AuthConfigUpdate(Aws::Utils::Json::JsonView jsonValue)
const GeneralAuthorizationUpdate & GetGeneralAuthorizationUpdate() const
AWS_IOTMANAGEDINTEGRATIONS_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_IOTMANAGEDINTEGRATIONS_API AuthConfigUpdate()=default
void SetGeneralAuthorizationUpdate(GeneralAuthorizationUpdateT &&value)
AWS_IOTMANAGEDINTEGRATIONS_API AuthConfigUpdate & operator=(Aws::Utils::Json::JsonView jsonValue)
AuthConfigUpdate & WithOAuthUpdate(OAuthUpdateT &&value)
AuthConfigUpdate & WithGeneralAuthorizationUpdate(GeneralAuthorizationUpdateT &&value)
Aws::Utils::Json::JsonValue JsonValue