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

The ARN of the sink.

*/ inline const Aws::String& GetSinkArn() const{ return m_sinkArn; } /** *

The ARN of the sink.

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

The ARN of the sink.

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

The ARN of the sink.

*/ inline void SetSinkArn(const char* value) { m_sinkArn.assign(value); } /** *

The ARN of the sink.

*/ inline PutSinkPolicyResult& WithSinkArn(const Aws::String& value) { SetSinkArn(value); return *this;} /** *

The ARN of the sink.

*/ inline PutSinkPolicyResult& WithSinkArn(Aws::String&& value) { SetSinkArn(std::move(value)); return *this;} /** *

The ARN of the sink.

*/ inline PutSinkPolicyResult& WithSinkArn(const char* value) { SetSinkArn(value); return *this;} /** *

The random ID string that Amazon Web Services generated as part of the sink * ARN.

*/ inline const Aws::String& GetSinkId() const{ return m_sinkId; } /** *

The random ID string that Amazon Web Services generated as part of the sink * ARN.

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

The random ID string that Amazon Web Services generated as part of the sink * ARN.

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

The random ID string that Amazon Web Services generated as part of the sink * ARN.

*/ inline void SetSinkId(const char* value) { m_sinkId.assign(value); } /** *

The random ID string that Amazon Web Services generated as part of the sink * ARN.

*/ inline PutSinkPolicyResult& WithSinkId(const Aws::String& value) { SetSinkId(value); return *this;} /** *

The random ID string that Amazon Web Services generated as part of the sink * ARN.

*/ inline PutSinkPolicyResult& WithSinkId(Aws::String&& value) { SetSinkId(std::move(value)); return *this;} /** *

The random ID string that Amazon Web Services generated as part of the sink * ARN.

*/ inline PutSinkPolicyResult& WithSinkId(const char* value) { SetSinkId(value); return *this;} /** *

The policy that you specified.

*/ inline const Aws::String& GetPolicy() const{ return m_policy; } /** *

The policy that you specified.

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

The policy that you specified.

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

The policy that you specified.

*/ inline void SetPolicy(const char* value) { m_policy.assign(value); } /** *

The policy that you specified.

*/ inline PutSinkPolicyResult& WithPolicy(const Aws::String& value) { SetPolicy(value); return *this;} /** *

The policy that you specified.

*/ inline PutSinkPolicyResult& WithPolicy(Aws::String&& value) { SetPolicy(std::move(value)); return *this;} /** *

The policy that you specified.

*/ inline PutSinkPolicyResult& WithPolicy(const char* value) { SetPolicy(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 PutSinkPolicyResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline PutSinkPolicyResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline PutSinkPolicyResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::String m_sinkArn; Aws::String m_sinkId; Aws::String m_policy; Aws::String m_requestId; }; } // namespace Model } // namespace OAM } // namespace Aws