This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
pxz-hos-client-cpp-module/support/aws-sdk-cpp-master/aws-cpp-sdk-xray/include/aws/xray/model/ServiceId.h

227 lines
5.1 KiB
C++

/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/xray/XRay_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace XRay
{
namespace Model
{
/**
* <p/><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/xray-2016-04-12/ServiceId">AWS API
* Reference</a></p>
*/
class AWS_XRAY_API ServiceId
{
public:
ServiceId();
ServiceId(Aws::Utils::Json::JsonView jsonValue);
ServiceId& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p/>
*/
inline const Aws::String& GetName() const{ return m_name; }
/**
* <p/>
*/
inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
/**
* <p/>
*/
inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
/**
* <p/>
*/
inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
/**
* <p/>
*/
inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
/**
* <p/>
*/
inline ServiceId& WithName(const Aws::String& value) { SetName(value); return *this;}
/**
* <p/>
*/
inline ServiceId& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
/**
* <p/>
*/
inline ServiceId& WithName(const char* value) { SetName(value); return *this;}
/**
* <p/>
*/
inline const Aws::Vector<Aws::String>& GetNames() const{ return m_names; }
/**
* <p/>
*/
inline bool NamesHasBeenSet() const { return m_namesHasBeenSet; }
/**
* <p/>
*/
inline void SetNames(const Aws::Vector<Aws::String>& value) { m_namesHasBeenSet = true; m_names = value; }
/**
* <p/>
*/
inline void SetNames(Aws::Vector<Aws::String>&& value) { m_namesHasBeenSet = true; m_names = std::move(value); }
/**
* <p/>
*/
inline ServiceId& WithNames(const Aws::Vector<Aws::String>& value) { SetNames(value); return *this;}
/**
* <p/>
*/
inline ServiceId& WithNames(Aws::Vector<Aws::String>&& value) { SetNames(std::move(value)); return *this;}
/**
* <p/>
*/
inline ServiceId& AddNames(const Aws::String& value) { m_namesHasBeenSet = true; m_names.push_back(value); return *this; }
/**
* <p/>
*/
inline ServiceId& AddNames(Aws::String&& value) { m_namesHasBeenSet = true; m_names.push_back(std::move(value)); return *this; }
/**
* <p/>
*/
inline ServiceId& AddNames(const char* value) { m_namesHasBeenSet = true; m_names.push_back(value); return *this; }
/**
* <p/>
*/
inline const Aws::String& GetAccountId() const{ return m_accountId; }
/**
* <p/>
*/
inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
/**
* <p/>
*/
inline void SetAccountId(const Aws::String& value) { m_accountIdHasBeenSet = true; m_accountId = value; }
/**
* <p/>
*/
inline void SetAccountId(Aws::String&& value) { m_accountIdHasBeenSet = true; m_accountId = std::move(value); }
/**
* <p/>
*/
inline void SetAccountId(const char* value) { m_accountIdHasBeenSet = true; m_accountId.assign(value); }
/**
* <p/>
*/
inline ServiceId& WithAccountId(const Aws::String& value) { SetAccountId(value); return *this;}
/**
* <p/>
*/
inline ServiceId& WithAccountId(Aws::String&& value) { SetAccountId(std::move(value)); return *this;}
/**
* <p/>
*/
inline ServiceId& WithAccountId(const char* value) { SetAccountId(value); return *this;}
/**
* <p/>
*/
inline const Aws::String& GetType() const{ return m_type; }
/**
* <p/>
*/
inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
/**
* <p/>
*/
inline void SetType(const Aws::String& value) { m_typeHasBeenSet = true; m_type = value; }
/**
* <p/>
*/
inline void SetType(Aws::String&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
/**
* <p/>
*/
inline void SetType(const char* value) { m_typeHasBeenSet = true; m_type.assign(value); }
/**
* <p/>
*/
inline ServiceId& WithType(const Aws::String& value) { SetType(value); return *this;}
/**
* <p/>
*/
inline ServiceId& WithType(Aws::String&& value) { SetType(std::move(value)); return *this;}
/**
* <p/>
*/
inline ServiceId& WithType(const char* value) { SetType(value); return *this;}
private:
Aws::String m_name;
bool m_nameHasBeenSet;
Aws::Vector<Aws::String> m_names;
bool m_namesHasBeenSet;
Aws::String m_accountId;
bool m_accountIdHasBeenSet;
Aws::String m_type;
bool m_typeHasBeenSet;
};
} // namespace Model
} // namespace XRay
} // namespace Aws