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

Information about the repository association.

*/ inline const RepositoryAssociation& GetRepositoryAssociation() const{ return m_repositoryAssociation; } /** *

Information about the repository association.

*/ inline void SetRepositoryAssociation(const RepositoryAssociation& value) { m_repositoryAssociation = value; } /** *

Information about the repository association.

*/ inline void SetRepositoryAssociation(RepositoryAssociation&& value) { m_repositoryAssociation = std::move(value); } /** *

Information about the repository association.

*/ inline DescribeRepositoryAssociationResult& WithRepositoryAssociation(const RepositoryAssociation& value) { SetRepositoryAssociation(value); return *this;} /** *

Information about the repository association.

*/ inline DescribeRepositoryAssociationResult& WithRepositoryAssociation(RepositoryAssociation&& value) { SetRepositoryAssociation(std::move(value)); return *this;} /** *

An array of key-value pairs used to tag an associated repository. A tag is a * custom attribute label with two parts:

  • A tag key (for * example, CostCenter, Environment, * Project, or Secret). Tag keys are case sensitive.

    *
  • An optional field known as a tag value (for example, * 111122223333, Production, or a team name). Omitting * the tag value is the same as using an empty string. Like tag keys, tag values * are case sensitive.

*/ inline const Aws::Map& GetTags() const{ return m_tags; } /** *

An array of key-value pairs used to tag an associated repository. A tag is a * custom attribute label with two parts:

  • A tag key (for * example, CostCenter, Environment, * Project, or Secret). Tag keys are case sensitive.

    *
  • An optional field known as a tag value (for example, * 111122223333, Production, or a team name). Omitting * the tag value is the same as using an empty string. Like tag keys, tag values * are case sensitive.

*/ inline void SetTags(const Aws::Map& value) { m_tags = value; } /** *

An array of key-value pairs used to tag an associated repository. A tag is a * custom attribute label with two parts:

  • A tag key (for * example, CostCenter, Environment, * Project, or Secret). Tag keys are case sensitive.

    *
  • An optional field known as a tag value (for example, * 111122223333, Production, or a team name). Omitting * the tag value is the same as using an empty string. Like tag keys, tag values * are case sensitive.

*/ inline void SetTags(Aws::Map&& value) { m_tags = std::move(value); } /** *

An array of key-value pairs used to tag an associated repository. A tag is a * custom attribute label with two parts:

  • A tag key (for * example, CostCenter, Environment, * Project, or Secret). Tag keys are case sensitive.

    *
  • An optional field known as a tag value (for example, * 111122223333, Production, or a team name). Omitting * the tag value is the same as using an empty string. Like tag keys, tag values * are case sensitive.

*/ inline DescribeRepositoryAssociationResult& WithTags(const Aws::Map& value) { SetTags(value); return *this;} /** *

An array of key-value pairs used to tag an associated repository. A tag is a * custom attribute label with two parts:

  • A tag key (for * example, CostCenter, Environment, * Project, or Secret). Tag keys are case sensitive.

    *
  • An optional field known as a tag value (for example, * 111122223333, Production, or a team name). Omitting * the tag value is the same as using an empty string. Like tag keys, tag values * are case sensitive.

*/ inline DescribeRepositoryAssociationResult& WithTags(Aws::Map&& value) { SetTags(std::move(value)); return *this;} /** *

An array of key-value pairs used to tag an associated repository. A tag is a * custom attribute label with two parts:

  • A tag key (for * example, CostCenter, Environment, * Project, or Secret). Tag keys are case sensitive.

    *
  • An optional field known as a tag value (for example, * 111122223333, Production, or a team name). Omitting * the tag value is the same as using an empty string. Like tag keys, tag values * are case sensitive.

*/ inline DescribeRepositoryAssociationResult& AddTags(const Aws::String& key, const Aws::String& value) { m_tags.emplace(key, value); return *this; } /** *

An array of key-value pairs used to tag an associated repository. A tag is a * custom attribute label with two parts:

  • A tag key (for * example, CostCenter, Environment, * Project, or Secret). Tag keys are case sensitive.

    *
  • An optional field known as a tag value (for example, * 111122223333, Production, or a team name). Omitting * the tag value is the same as using an empty string. Like tag keys, tag values * are case sensitive.

*/ inline DescribeRepositoryAssociationResult& AddTags(Aws::String&& key, const Aws::String& value) { m_tags.emplace(std::move(key), value); return *this; } /** *

An array of key-value pairs used to tag an associated repository. A tag is a * custom attribute label with two parts:

  • A tag key (for * example, CostCenter, Environment, * Project, or Secret). Tag keys are case sensitive.

    *
  • An optional field known as a tag value (for example, * 111122223333, Production, or a team name). Omitting * the tag value is the same as using an empty string. Like tag keys, tag values * are case sensitive.

*/ inline DescribeRepositoryAssociationResult& AddTags(const Aws::String& key, Aws::String&& value) { m_tags.emplace(key, std::move(value)); return *this; } /** *

An array of key-value pairs used to tag an associated repository. A tag is a * custom attribute label with two parts:

  • A tag key (for * example, CostCenter, Environment, * Project, or Secret). Tag keys are case sensitive.

    *
  • An optional field known as a tag value (for example, * 111122223333, Production, or a team name). Omitting * the tag value is the same as using an empty string. Like tag keys, tag values * are case sensitive.

*/ inline DescribeRepositoryAssociationResult& AddTags(Aws::String&& key, Aws::String&& value) { m_tags.emplace(std::move(key), std::move(value)); return *this; } /** *

An array of key-value pairs used to tag an associated repository. A tag is a * custom attribute label with two parts:

  • A tag key (for * example, CostCenter, Environment, * Project, or Secret). Tag keys are case sensitive.

    *
  • An optional field known as a tag value (for example, * 111122223333, Production, or a team name). Omitting * the tag value is the same as using an empty string. Like tag keys, tag values * are case sensitive.

*/ inline DescribeRepositoryAssociationResult& AddTags(const char* key, Aws::String&& value) { m_tags.emplace(key, std::move(value)); return *this; } /** *

An array of key-value pairs used to tag an associated repository. A tag is a * custom attribute label with two parts:

  • A tag key (for * example, CostCenter, Environment, * Project, or Secret). Tag keys are case sensitive.

    *
  • An optional field known as a tag value (for example, * 111122223333, Production, or a team name). Omitting * the tag value is the same as using an empty string. Like tag keys, tag values * are case sensitive.

*/ inline DescribeRepositoryAssociationResult& AddTags(Aws::String&& key, const char* value) { m_tags.emplace(std::move(key), value); return *this; } /** *

An array of key-value pairs used to tag an associated repository. A tag is a * custom attribute label with two parts:

  • A tag key (for * example, CostCenter, Environment, * Project, or Secret). Tag keys are case sensitive.

    *
  • An optional field known as a tag value (for example, * 111122223333, Production, or a team name). Omitting * the tag value is the same as using an empty string. Like tag keys, tag values * are case sensitive.

*/ inline DescribeRepositoryAssociationResult& AddTags(const char* key, const char* value) { m_tags.emplace(key, 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 DescribeRepositoryAssociationResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline DescribeRepositoryAssociationResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline DescribeRepositoryAssociationResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: RepositoryAssociation m_repositoryAssociation; Aws::Map m_tags; Aws::String m_requestId; }; } // namespace Model } // namespace CodeGuruReviewer } // namespace Aws