/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace Shield { namespace Model { class DescribeDRTAccessResult { public: AWS_SHIELD_API DescribeDRTAccessResult(); AWS_SHIELD_API DescribeDRTAccessResult(const Aws::AmazonWebServiceResult& result); AWS_SHIELD_API DescribeDRTAccessResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

The Amazon Resource Name (ARN) of the role the SRT used to access your Amazon * Web Services account.

*/ inline const Aws::String& GetRoleArn() const{ return m_roleArn; } /** *

The Amazon Resource Name (ARN) of the role the SRT used to access your Amazon * Web Services account.

*/ inline void SetRoleArn(const Aws::String& value) { m_roleArn = value; } /** *

The Amazon Resource Name (ARN) of the role the SRT used to access your Amazon * Web Services account.

*/ inline void SetRoleArn(Aws::String&& value) { m_roleArn = std::move(value); } /** *

The Amazon Resource Name (ARN) of the role the SRT used to access your Amazon * Web Services account.

*/ inline void SetRoleArn(const char* value) { m_roleArn.assign(value); } /** *

The Amazon Resource Name (ARN) of the role the SRT used to access your Amazon * Web Services account.

*/ inline DescribeDRTAccessResult& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;} /** *

The Amazon Resource Name (ARN) of the role the SRT used to access your Amazon * Web Services account.

*/ inline DescribeDRTAccessResult& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the role the SRT used to access your Amazon * Web Services account.

*/ inline DescribeDRTAccessResult& WithRoleArn(const char* value) { SetRoleArn(value); return *this;} /** *

The list of Amazon S3 buckets accessed by the SRT.

*/ inline const Aws::Vector& GetLogBucketList() const{ return m_logBucketList; } /** *

The list of Amazon S3 buckets accessed by the SRT.

*/ inline void SetLogBucketList(const Aws::Vector& value) { m_logBucketList = value; } /** *

The list of Amazon S3 buckets accessed by the SRT.

*/ inline void SetLogBucketList(Aws::Vector&& value) { m_logBucketList = std::move(value); } /** *

The list of Amazon S3 buckets accessed by the SRT.

*/ inline DescribeDRTAccessResult& WithLogBucketList(const Aws::Vector& value) { SetLogBucketList(value); return *this;} /** *

The list of Amazon S3 buckets accessed by the SRT.

*/ inline DescribeDRTAccessResult& WithLogBucketList(Aws::Vector&& value) { SetLogBucketList(std::move(value)); return *this;} /** *

The list of Amazon S3 buckets accessed by the SRT.

*/ inline DescribeDRTAccessResult& AddLogBucketList(const Aws::String& value) { m_logBucketList.push_back(value); return *this; } /** *

The list of Amazon S3 buckets accessed by the SRT.

*/ inline DescribeDRTAccessResult& AddLogBucketList(Aws::String&& value) { m_logBucketList.push_back(std::move(value)); return *this; } /** *

The list of Amazon S3 buckets accessed by the SRT.

*/ inline DescribeDRTAccessResult& AddLogBucketList(const char* value) { m_logBucketList.push_back(value); return *this; } inline const Aws::String& GetRequestId() const{ return m_requestId; } inline void SetRequestId(const Aws::String& value) { m_requestId = value; } inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } inline void SetRequestId(const char* value) { m_requestId.assign(value); } inline DescribeDRTAccessResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline DescribeDRTAccessResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline DescribeDRTAccessResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::String m_roleArn; Aws::Vector m_logBucketList; Aws::String m_requestId; }; } // namespace Model } // namespace Shield } // namespace Aws