text: ﻿/*
  * Copyright 2010-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
  *
  * Licensed under the Apache License, Version 2.0 (the "License").
  * You may not use this file except in compliance with the License.
  * A copy of the License is located at
  *
  *  http://aws.amazon.com/apache2.0
  *
  * or in the "license" file accompanying this file. This file is distributed
  * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
  * express or implied. See the License for the specific language governing
  * permissions and limitations under the License.
  */
  
  #pragma once
  #include <aws/clouddirectory/CloudDirectory_EXPORTS.h>
  #include <aws/clouddirectory/model/TypedLinkSchemaAndFacetName.h>
  #include <aws/clouddirectory/model/ObjectReference.h>
  #include <aws/core/utils/memory/stl/AWSVector.h>
  #include <aws/clouddirectory/model/AttributeNameAndValue.h>
  #include <utility>
  
  namespace Aws
  {
  namespace Utils
  {
  namespace Json
  {
    class JsonValue;
    class JsonView;
  } // namespace Json
  } // namespace Utils
  namespace CloudDirectory
  {
  namespace Model
  {
  
    /**
     * <p>Contains all the information that is used to uniquely identify a typed link.
     * The parameters discussed in this topic are used to uniquely specify the typed
     * link being operated on. The <a>AttachTypedLink</a> API returns a typed link
     * specifier while the <a>DetachTypedLink</a> API accepts one as input. Similarly,
     * the <a>ListIncomingTypedLinks</a> and <a>ListOutgoingTypedLinks</a> API
     * operations provide typed link specifiers as output. You can also construct a
     * typed link specifier from scratch.</p><p><h3>See Also:</h3>   <a
     * href="http://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2017-01-11/TypedLinkSpecifier">AWS
     * API Reference</a></p>
     */
    class AWS_CLOUDDIRECTORY_API TypedLinkSpecifier
    {
    public:
      TypedLinkSpecifier();
      TypedLinkSpecifier(Aws::Utils::Json::JsonView jsonValue);
      TypedLinkSpecifier& operator=(Aws::Utils::Json::JsonView jsonValue);
      Aws::Utils::Json::JsonValue Jsonize() const;
  
  
      /**
       * <p>Identifies the typed link facet that is associated with the typed link.</p>
       */
      inline const TypedLinkSchemaAndFacetName& GetTypedLinkFacet() const{ return m_typedLinkFacet; }
  
      /**
       * <p>Identifies the typed link facet that is associated with the typed link.</p>
       */
      inline void SetTypedLinkFacet(const TypedLinkSchemaAndFacetName& value) { m_typedLinkFacetHasBeenSet = true; m_typedLinkFacet = value; }
  
      /**
       * <p>Identifies the typed link facet that is associated with the typed link.</p>
       */
      inline void SetTypedLinkFacet(TypedLinkSchemaAndFacetName&& value) { m_typedLinkFacetHasBeenSet = true; m_typedLinkFacet = std::move(value); }
  
      /**
       * <p>Identifies the typed link facet that is associated with the typed link.</p>
       */
      inline TypedLinkSpecifier& WithTypedLinkFacet(const TypedLinkSchemaAndFacetName& value) { SetTypedLinkFacet(value); return *this;}
  
      /**
       * <p>Identifies the typed link facet that is associated with the typed link.</p>
       */
      inline TypedLinkSpecifier& WithTypedLinkFacet(TypedLinkSchemaAndFacetName&& value) { SetTypedLinkFacet(std::move(value)); return *this;}
  
  
      /**
       * <p>Identifies the source object that the typed link will attach to.</p>
       */
      inline const ObjectReference& GetSourceObjectReference() const{ return m_sourceObjectReference; }
  
      /**
       * <p>Identifies the source object that the typed link will attach to.</p>
       */
      inline void SetSourceObjectReference(const ObjectReference& value) { m_sourceObjectReferenceHasBeenSet = true; m_sourceObjectReference = value; }
  
      /**
       * <p>Identifies the source object that the typed link will attach to.</p>
       */
      inline void SetSourceObjectReference(ObjectReference&& value) { m_sourceObjectReferenceHasBeenSet = true; m_sourceObjectReference = std::move(value); }
  
      /**
       * <p>Identifies the source object that the typed link will attach to.</p>
       */
      inline TypedLinkSpecifier& WithSourceObjectReference(const ObjectReference& value) { SetSourceObjectReference(value); return *this;}
  
      /**
       * <p>Identifies the source object that the typed link will attach to.</p>
       */
      inline TypedLinkSpecifier& WithSourceObjectReference(ObjectReference&& value) { SetSourceObjectReference(std::move(value)); return *this;}
  
  
      /**
       * <p>Identifies the target object that the typed link will attach to.</p>
       */
      inline const ObjectReference& GetTargetObjectReference() const{ return m_targetObjectReference; }
  
      /**
       * <p>Identifies the target object that the typed link will attach to.</p>
       */
      inline void SetTargetObjectReference(const ObjectReference& value) { m_targetObjectReferenceHasBeenSet = true; m_targetObjectReference = value; }
  
      /**
       * <p>Identifies the target object that the typed link will attach to.</p>
       */
      inline void SetTargetObjectReference(ObjectReference&& value) { m_targetObjectReferenceHasBeenSet = true; m_targetObjectReference = std::move(value); }
  
      /**
       * <p>Identifies the target object that the typed link will attach to.</p>
       */
      inline TypedLinkSpecifier& WithTargetObjectReference(const ObjectReference& value) { SetTargetObjectReference(value); return *this;}
  
      /**
       * <p>Identifies the target object that the typed link will attach to.</p>
       */
      inline TypedLinkSpecifier& WithTargetObjectReference(ObjectReference&& value) { SetTargetObjectReference(std::move(value)); return *this;}
  
  
      /**
       * <p>Identifies the attribute value to update.</p>
       */
      inline const Aws::Vector<AttributeNameAndValue>& GetIdentityAttributeValues() const{ return m_identityAttributeValues; }
  
      /**
       * <p>Identifies the attribute value to update.</p>
       */
      inline void SetIdentityAttributeValues(const Aws::Vector<AttributeNameAndValue>& value) { m_identityAttributeValuesHasBeenSet = true; m_identityAttributeValues = value; }
  
      /**
       * <p>Identifies the attribute value to update.</p>
       */
      inline void SetIdentityAttributeValues(Aws::Vector<AttributeNameAndValue>&& value) { m_identityAttributeValuesHasBeenSet = true; m_identityAttributeValues = std::move(value); }
  
      /**
       * <p>Identifies the attribute value to update.</p>
       */
      inline TypedLinkSpecifier& WithIdentityAttributeValues(const Aws::Vector<AttributeNameAndValue>& value) { SetIdentityAttributeValues(value); return *this;}
  
      /**
       * <p>Identifies the attribute value to update.</p>
       */
      inline TypedLinkSpecifier& WithIdentityAttributeValues(Aws::Vector<AttributeNameAndValue>&& value) { SetIdentityAttributeValues(std::move(value)); return *this;}
  
      /**
       * <p>Identifies the attribute value to update.</p>
       */
      inline TypedLinkSpecifier& AddIdentityAttributeValues(const AttributeNameAndValue& value) { m_identityAttributeValuesHasBeenSet = true; m_identityAttributeValues.push_back(value); return *this; }
  
      /**
       * <p>Identifies the attribute value to update.</p>
       */
      inline TypedLinkSpecifier& AddIdentityAttributeValues(AttributeNameAndValue&& value) { m_identityAttributeValuesHasBeenSet = true; m_identityAttributeValues.push_back(std::move(value)); return *this; }
  
    private:
  
      TypedLinkSchemaAndFacetName m_typedLinkFacet;
      bool m_typedLinkFacetHasBeenSet;
  
      ObjectReference m_sourceObjectReference;
      bool m_sourceObjectReferenceHasBeenSet;
  
      ObjectReference m_targetObjectReference;
      bool m_targetObjectReferenceHasBeenSet;
  
      Aws::Vector<AttributeNameAndValue> m_identityAttributeValues;
      bool m_identityAttributeValuesHasBeenSet;
    };
  
  } // namespace Model
  } // namespace CloudDirectory
  } // namespace Aws
  