77 lines
2.9 KiB
C++
77 lines
2.9 KiB
C++
/**
|
|
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
* SPDX-License-Identifier: Apache-2.0.
|
|
*/
|
|
|
|
#pragma once
|
|
#include <aws/ecr/ECR_EXPORTS.h>
|
|
#include <aws/ecr/ECRRequest.h>
|
|
#include <aws/core/utils/memory/stl/AWSString.h>
|
|
#include <utility>
|
|
|
|
namespace Aws
|
|
{
|
|
namespace ECR
|
|
{
|
|
namespace Model
|
|
{
|
|
|
|
/**
|
|
*/
|
|
class PutAccountSettingRequest : public ECRRequest
|
|
{
|
|
public:
|
|
AWS_ECR_API PutAccountSettingRequest();
|
|
|
|
// Service request name is the Operation name which will send this request out,
|
|
// each operation should has unique request name, so that we can get operation's name from this request.
|
|
// Note: this is not true for response, multiple operations may have the same response name,
|
|
// so we can not get operation's name from response.
|
|
inline virtual const char* GetServiceRequestName() const override { return "PutAccountSetting"; }
|
|
|
|
AWS_ECR_API Aws::String SerializePayload() const override;
|
|
|
|
AWS_ECR_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
|
|
|
|
|
|
///@{
|
|
/**
|
|
* <p>Basic scan type version name. </p>
|
|
*/
|
|
inline const Aws::String& GetName() const{ return m_name; }
|
|
inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
|
|
inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
|
|
inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
|
|
inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
|
|
inline PutAccountSettingRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
|
|
inline PutAccountSettingRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
|
|
inline PutAccountSettingRequest& WithName(const char* value) { SetName(value); return *this;}
|
|
///@}
|
|
|
|
///@{
|
|
/**
|
|
* <p>Setting value that determines what basic scan type is being used:
|
|
* <code>AWS_NATIVE</code> or <code>CLAIR</code>.</p>
|
|
*/
|
|
inline const Aws::String& GetValue() const{ return m_value; }
|
|
inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
|
|
inline void SetValue(const Aws::String& value) { m_valueHasBeenSet = true; m_value = value; }
|
|
inline void SetValue(Aws::String&& value) { m_valueHasBeenSet = true; m_value = std::move(value); }
|
|
inline void SetValue(const char* value) { m_valueHasBeenSet = true; m_value.assign(value); }
|
|
inline PutAccountSettingRequest& WithValue(const Aws::String& value) { SetValue(value); return *this;}
|
|
inline PutAccountSettingRequest& WithValue(Aws::String&& value) { SetValue(std::move(value)); return *this;}
|
|
inline PutAccountSettingRequest& WithValue(const char* value) { SetValue(value); return *this;}
|
|
///@}
|
|
private:
|
|
|
|
Aws::String m_name;
|
|
bool m_nameHasBeenSet = false;
|
|
|
|
Aws::String m_value;
|
|
bool m_valueHasBeenSet = false;
|
|
};
|
|
|
|
} // namespace Model
|
|
} // namespace ECR
|
|
} // namespace Aws
|