|
| 1 | +/** |
| 2 | + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. |
| 3 | + * SPDX-License-Identifier: Apache-2.0. |
| 4 | + */ |
| 5 | + |
| 6 | +#pragma once |
| 7 | +#include <aws/dms/DatabaseMigrationService_EXPORTS.h> |
| 8 | +#include <aws/dms/model/CollectorStatus.h> |
| 9 | +#include <utility> |
| 10 | + |
| 11 | +namespace Aws |
| 12 | +{ |
| 13 | +namespace Utils |
| 14 | +{ |
| 15 | +namespace Json |
| 16 | +{ |
| 17 | + class JsonValue; |
| 18 | + class JsonView; |
| 19 | +} // namespace Json |
| 20 | +} // namespace Utils |
| 21 | +namespace DatabaseMigrationService |
| 22 | +{ |
| 23 | +namespace Model |
| 24 | +{ |
| 25 | + |
| 26 | + /** |
| 27 | + * <p>Describes the last Fleet Advisor collector health check.</p><p><h3>See |
| 28 | + * Also:</h3> <a |
| 29 | + * href="http://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/CollectorHealthCheck">AWS |
| 30 | + * API Reference</a></p> |
| 31 | + */ |
| 32 | + class AWS_DATABASEMIGRATIONSERVICE_API CollectorHealthCheck |
| 33 | + { |
| 34 | + public: |
| 35 | + CollectorHealthCheck(); |
| 36 | + CollectorHealthCheck(Aws::Utils::Json::JsonView jsonValue); |
| 37 | + CollectorHealthCheck& operator=(Aws::Utils::Json::JsonView jsonValue); |
| 38 | + Aws::Utils::Json::JsonValue Jsonize() const; |
| 39 | + |
| 40 | + |
| 41 | + /** |
| 42 | + * <p>The status of the Fleet Advisor collector.</p> |
| 43 | + */ |
| 44 | + inline const CollectorStatus& GetCollectorStatus() const{ return m_collectorStatus; } |
| 45 | + |
| 46 | + /** |
| 47 | + * <p>The status of the Fleet Advisor collector.</p> |
| 48 | + */ |
| 49 | + inline bool CollectorStatusHasBeenSet() const { return m_collectorStatusHasBeenSet; } |
| 50 | + |
| 51 | + /** |
| 52 | + * <p>The status of the Fleet Advisor collector.</p> |
| 53 | + */ |
| 54 | + inline void SetCollectorStatus(const CollectorStatus& value) { m_collectorStatusHasBeenSet = true; m_collectorStatus = value; } |
| 55 | + |
| 56 | + /** |
| 57 | + * <p>The status of the Fleet Advisor collector.</p> |
| 58 | + */ |
| 59 | + inline void SetCollectorStatus(CollectorStatus&& value) { m_collectorStatusHasBeenSet = true; m_collectorStatus = std::move(value); } |
| 60 | + |
| 61 | + /** |
| 62 | + * <p>The status of the Fleet Advisor collector.</p> |
| 63 | + */ |
| 64 | + inline CollectorHealthCheck& WithCollectorStatus(const CollectorStatus& value) { SetCollectorStatus(value); return *this;} |
| 65 | + |
| 66 | + /** |
| 67 | + * <p>The status of the Fleet Advisor collector.</p> |
| 68 | + */ |
| 69 | + inline CollectorHealthCheck& WithCollectorStatus(CollectorStatus&& value) { SetCollectorStatus(std::move(value)); return *this;} |
| 70 | + |
| 71 | + |
| 72 | + /** |
| 73 | + * <p>Whether the local collector can access its Amazon S3 bucket.</p> |
| 74 | + */ |
| 75 | + inline bool GetLocalCollectorS3Access() const{ return m_localCollectorS3Access; } |
| 76 | + |
| 77 | + /** |
| 78 | + * <p>Whether the local collector can access its Amazon S3 bucket.</p> |
| 79 | + */ |
| 80 | + inline bool LocalCollectorS3AccessHasBeenSet() const { return m_localCollectorS3AccessHasBeenSet; } |
| 81 | + |
| 82 | + /** |
| 83 | + * <p>Whether the local collector can access its Amazon S3 bucket.</p> |
| 84 | + */ |
| 85 | + inline void SetLocalCollectorS3Access(bool value) { m_localCollectorS3AccessHasBeenSet = true; m_localCollectorS3Access = value; } |
| 86 | + |
| 87 | + /** |
| 88 | + * <p>Whether the local collector can access its Amazon S3 bucket.</p> |
| 89 | + */ |
| 90 | + inline CollectorHealthCheck& WithLocalCollectorS3Access(bool value) { SetLocalCollectorS3Access(value); return *this;} |
| 91 | + |
| 92 | + |
| 93 | + /** |
| 94 | + * <p>Whether the web collector can access its Amazon S3 bucket.</p> |
| 95 | + */ |
| 96 | + inline bool GetWebCollectorS3Access() const{ return m_webCollectorS3Access; } |
| 97 | + |
| 98 | + /** |
| 99 | + * <p>Whether the web collector can access its Amazon S3 bucket.</p> |
| 100 | + */ |
| 101 | + inline bool WebCollectorS3AccessHasBeenSet() const { return m_webCollectorS3AccessHasBeenSet; } |
| 102 | + |
| 103 | + /** |
| 104 | + * <p>Whether the web collector can access its Amazon S3 bucket.</p> |
| 105 | + */ |
| 106 | + inline void SetWebCollectorS3Access(bool value) { m_webCollectorS3AccessHasBeenSet = true; m_webCollectorS3Access = value; } |
| 107 | + |
| 108 | + /** |
| 109 | + * <p>Whether the web collector can access its Amazon S3 bucket.</p> |
| 110 | + */ |
| 111 | + inline CollectorHealthCheck& WithWebCollectorS3Access(bool value) { SetWebCollectorS3Access(value); return *this;} |
| 112 | + |
| 113 | + |
| 114 | + /** |
| 115 | + * <p>Whether the role that you provided when creating the Fleet Advisor collector |
| 116 | + * has sufficient permissions to access the Fleet Advisor web collector.</p> |
| 117 | + */ |
| 118 | + inline bool GetWebCollectorGrantedRoleBasedAccess() const{ return m_webCollectorGrantedRoleBasedAccess; } |
| 119 | + |
| 120 | + /** |
| 121 | + * <p>Whether the role that you provided when creating the Fleet Advisor collector |
| 122 | + * has sufficient permissions to access the Fleet Advisor web collector.</p> |
| 123 | + */ |
| 124 | + inline bool WebCollectorGrantedRoleBasedAccessHasBeenSet() const { return m_webCollectorGrantedRoleBasedAccessHasBeenSet; } |
| 125 | + |
| 126 | + /** |
| 127 | + * <p>Whether the role that you provided when creating the Fleet Advisor collector |
| 128 | + * has sufficient permissions to access the Fleet Advisor web collector.</p> |
| 129 | + */ |
| 130 | + inline void SetWebCollectorGrantedRoleBasedAccess(bool value) { m_webCollectorGrantedRoleBasedAccessHasBeenSet = true; m_webCollectorGrantedRoleBasedAccess = value; } |
| 131 | + |
| 132 | + /** |
| 133 | + * <p>Whether the role that you provided when creating the Fleet Advisor collector |
| 134 | + * has sufficient permissions to access the Fleet Advisor web collector.</p> |
| 135 | + */ |
| 136 | + inline CollectorHealthCheck& WithWebCollectorGrantedRoleBasedAccess(bool value) { SetWebCollectorGrantedRoleBasedAccess(value); return *this;} |
| 137 | + |
| 138 | + private: |
| 139 | + |
| 140 | + CollectorStatus m_collectorStatus; |
| 141 | + bool m_collectorStatusHasBeenSet; |
| 142 | + |
| 143 | + bool m_localCollectorS3Access; |
| 144 | + bool m_localCollectorS3AccessHasBeenSet; |
| 145 | + |
| 146 | + bool m_webCollectorS3Access; |
| 147 | + bool m_webCollectorS3AccessHasBeenSet; |
| 148 | + |
| 149 | + bool m_webCollectorGrantedRoleBasedAccess; |
| 150 | + bool m_webCollectorGrantedRoleBasedAccessHasBeenSet; |
| 151 | + }; |
| 152 | + |
| 153 | +} // namespace Model |
| 154 | +} // namespace DatabaseMigrationService |
| 155 | +} // namespace Aws |
0 commit comments