Lesson 35 - Get Compute Auth Token Working
This commit is contained in:
@@ -0,0 +1,132 @@
|
||||
/**
|
||||
* 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/core/utils/memory/stl/AWSString.h>
|
||||
#include <aws/ecr/model/FindingSeverity.h>
|
||||
#include <aws/core/utils/memory/stl/AWSVector.h>
|
||||
#include <aws/ecr/model/Attribute.h>
|
||||
#include <utility>
|
||||
|
||||
namespace Aws
|
||||
{
|
||||
namespace Utils
|
||||
{
|
||||
namespace Json
|
||||
{
|
||||
class JsonValue;
|
||||
class JsonView;
|
||||
} // namespace Json
|
||||
} // namespace Utils
|
||||
namespace ECR
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
|
||||
/**
|
||||
* <p>Contains information about an image scan finding.</p><p><h3>See Also:</h3>
|
||||
* <a
|
||||
* href="http://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/ImageScanFinding">AWS
|
||||
* API Reference</a></p>
|
||||
*/
|
||||
class ImageScanFinding
|
||||
{
|
||||
public:
|
||||
AWS_ECR_API ImageScanFinding();
|
||||
AWS_ECR_API ImageScanFinding(Aws::Utils::Json::JsonView jsonValue);
|
||||
AWS_ECR_API ImageScanFinding& operator=(Aws::Utils::Json::JsonView jsonValue);
|
||||
AWS_ECR_API Aws::Utils::Json::JsonValue Jsonize() const;
|
||||
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The name associated with the finding, usually a CVE number.</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 ImageScanFinding& WithName(const Aws::String& value) { SetName(value); return *this;}
|
||||
inline ImageScanFinding& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
|
||||
inline ImageScanFinding& WithName(const char* value) { SetName(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The description of the finding.</p>
|
||||
*/
|
||||
inline const Aws::String& GetDescription() const{ return m_description; }
|
||||
inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
|
||||
inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
|
||||
inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
|
||||
inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
|
||||
inline ImageScanFinding& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
|
||||
inline ImageScanFinding& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
|
||||
inline ImageScanFinding& WithDescription(const char* value) { SetDescription(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>A link containing additional details about the security vulnerability.</p>
|
||||
*/
|
||||
inline const Aws::String& GetUri() const{ return m_uri; }
|
||||
inline bool UriHasBeenSet() const { return m_uriHasBeenSet; }
|
||||
inline void SetUri(const Aws::String& value) { m_uriHasBeenSet = true; m_uri = value; }
|
||||
inline void SetUri(Aws::String&& value) { m_uriHasBeenSet = true; m_uri = std::move(value); }
|
||||
inline void SetUri(const char* value) { m_uriHasBeenSet = true; m_uri.assign(value); }
|
||||
inline ImageScanFinding& WithUri(const Aws::String& value) { SetUri(value); return *this;}
|
||||
inline ImageScanFinding& WithUri(Aws::String&& value) { SetUri(std::move(value)); return *this;}
|
||||
inline ImageScanFinding& WithUri(const char* value) { SetUri(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The finding severity.</p>
|
||||
*/
|
||||
inline const FindingSeverity& GetSeverity() const{ return m_severity; }
|
||||
inline bool SeverityHasBeenSet() const { return m_severityHasBeenSet; }
|
||||
inline void SetSeverity(const FindingSeverity& value) { m_severityHasBeenSet = true; m_severity = value; }
|
||||
inline void SetSeverity(FindingSeverity&& value) { m_severityHasBeenSet = true; m_severity = std::move(value); }
|
||||
inline ImageScanFinding& WithSeverity(const FindingSeverity& value) { SetSeverity(value); return *this;}
|
||||
inline ImageScanFinding& WithSeverity(FindingSeverity&& value) { SetSeverity(std::move(value)); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>A collection of attributes of the host from which the finding is
|
||||
* generated.</p>
|
||||
*/
|
||||
inline const Aws::Vector<Attribute>& GetAttributes() const{ return m_attributes; }
|
||||
inline bool AttributesHasBeenSet() const { return m_attributesHasBeenSet; }
|
||||
inline void SetAttributes(const Aws::Vector<Attribute>& value) { m_attributesHasBeenSet = true; m_attributes = value; }
|
||||
inline void SetAttributes(Aws::Vector<Attribute>&& value) { m_attributesHasBeenSet = true; m_attributes = std::move(value); }
|
||||
inline ImageScanFinding& WithAttributes(const Aws::Vector<Attribute>& value) { SetAttributes(value); return *this;}
|
||||
inline ImageScanFinding& WithAttributes(Aws::Vector<Attribute>&& value) { SetAttributes(std::move(value)); return *this;}
|
||||
inline ImageScanFinding& AddAttributes(const Attribute& value) { m_attributesHasBeenSet = true; m_attributes.push_back(value); return *this; }
|
||||
inline ImageScanFinding& AddAttributes(Attribute&& value) { m_attributesHasBeenSet = true; m_attributes.push_back(std::move(value)); return *this; }
|
||||
///@}
|
||||
private:
|
||||
|
||||
Aws::String m_name;
|
||||
bool m_nameHasBeenSet = false;
|
||||
|
||||
Aws::String m_description;
|
||||
bool m_descriptionHasBeenSet = false;
|
||||
|
||||
Aws::String m_uri;
|
||||
bool m_uriHasBeenSet = false;
|
||||
|
||||
FindingSeverity m_severity;
|
||||
bool m_severityHasBeenSet = false;
|
||||
|
||||
Aws::Vector<Attribute> m_attributes;
|
||||
bool m_attributesHasBeenSet = false;
|
||||
};
|
||||
|
||||
} // namespace Model
|
||||
} // namespace ECR
|
||||
} // namespace Aws
|
||||
Reference in New Issue
Block a user