#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct Patch {
pub id: ::std::option::Option<::std::string::String>,
pub release_date: ::std::option::Option<::aws_smithy_types::DateTime>,
pub title: ::std::option::Option<::std::string::String>,
pub description: ::std::option::Option<::std::string::String>,
pub content_url: ::std::option::Option<::std::string::String>,
pub vendor: ::std::option::Option<::std::string::String>,
pub product_family: ::std::option::Option<::std::string::String>,
pub product: ::std::option::Option<::std::string::String>,
pub classification: ::std::option::Option<::std::string::String>,
pub msrc_severity: ::std::option::Option<::std::string::String>,
pub kb_number: ::std::option::Option<::std::string::String>,
pub msrc_number: ::std::option::Option<::std::string::String>,
pub language: ::std::option::Option<::std::string::String>,
pub advisory_ids: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
pub bugzilla_ids: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
pub cve_ids: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
pub name: ::std::option::Option<::std::string::String>,
pub epoch: i32,
pub version: ::std::option::Option<::std::string::String>,
pub release: ::std::option::Option<::std::string::String>,
pub arch: ::std::option::Option<::std::string::String>,
pub severity: ::std::option::Option<::std::string::String>,
pub repository: ::std::option::Option<::std::string::String>,
}
impl Patch {
pub fn id(&self) -> ::std::option::Option<&str> {
self.id.as_deref()
}
pub fn release_date(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
self.release_date.as_ref()
}
pub fn title(&self) -> ::std::option::Option<&str> {
self.title.as_deref()
}
pub fn description(&self) -> ::std::option::Option<&str> {
self.description.as_deref()
}
pub fn content_url(&self) -> ::std::option::Option<&str> {
self.content_url.as_deref()
}
pub fn vendor(&self) -> ::std::option::Option<&str> {
self.vendor.as_deref()
}
pub fn product_family(&self) -> ::std::option::Option<&str> {
self.product_family.as_deref()
}
pub fn product(&self) -> ::std::option::Option<&str> {
self.product.as_deref()
}
pub fn classification(&self) -> ::std::option::Option<&str> {
self.classification.as_deref()
}
pub fn msrc_severity(&self) -> ::std::option::Option<&str> {
self.msrc_severity.as_deref()
}
pub fn kb_number(&self) -> ::std::option::Option<&str> {
self.kb_number.as_deref()
}
pub fn msrc_number(&self) -> ::std::option::Option<&str> {
self.msrc_number.as_deref()
}
pub fn language(&self) -> ::std::option::Option<&str> {
self.language.as_deref()
}
pub fn advisory_ids(&self) -> &[::std::string::String] {
self.advisory_ids.as_deref().unwrap_or_default()
}
pub fn bugzilla_ids(&self) -> &[::std::string::String] {
self.bugzilla_ids.as_deref().unwrap_or_default()
}
pub fn cve_ids(&self) -> &[::std::string::String] {
self.cve_ids.as_deref().unwrap_or_default()
}
pub fn name(&self) -> ::std::option::Option<&str> {
self.name.as_deref()
}
pub fn epoch(&self) -> i32 {
self.epoch
}
pub fn version(&self) -> ::std::option::Option<&str> {
self.version.as_deref()
}
pub fn release(&self) -> ::std::option::Option<&str> {
self.release.as_deref()
}
pub fn arch(&self) -> ::std::option::Option<&str> {
self.arch.as_deref()
}
pub fn severity(&self) -> ::std::option::Option<&str> {
self.severity.as_deref()
}
pub fn repository(&self) -> ::std::option::Option<&str> {
self.repository.as_deref()
}
}
static PATCH_MEMBER_ID: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
::aws_smithy_schema::ShapeId::from_parts("com.amazonaws.ssm#Patch$Id", "com.amazonaws.ssm", "Patch"),
::aws_smithy_schema::ShapeType::String,
"Id",
0,
);
static PATCH_MEMBER_RELEASE_DATE: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
::aws_smithy_schema::ShapeId::from_parts("com.amazonaws.ssm#Patch$ReleaseDate", "com.amazonaws.ssm", "Patch"),
::aws_smithy_schema::ShapeType::Timestamp,
"ReleaseDate",
1,
);
static PATCH_MEMBER_TITLE: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
::aws_smithy_schema::ShapeId::from_parts("com.amazonaws.ssm#Patch$Title", "com.amazonaws.ssm", "Patch"),
::aws_smithy_schema::ShapeType::String,
"Title",
2,
);
static PATCH_MEMBER_DESCRIPTION: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
::aws_smithy_schema::ShapeId::from_parts("com.amazonaws.ssm#Patch$Description", "com.amazonaws.ssm", "Patch"),
::aws_smithy_schema::ShapeType::String,
"Description",
3,
);
static PATCH_MEMBER_CONTENT_URL: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
::aws_smithy_schema::ShapeId::from_parts("com.amazonaws.ssm#Patch$ContentUrl", "com.amazonaws.ssm", "Patch"),
::aws_smithy_schema::ShapeType::String,
"ContentUrl",
4,
);
static PATCH_MEMBER_VENDOR: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
::aws_smithy_schema::ShapeId::from_parts("com.amazonaws.ssm#Patch$Vendor", "com.amazonaws.ssm", "Patch"),
::aws_smithy_schema::ShapeType::String,
"Vendor",
5,
);
static PATCH_MEMBER_PRODUCT_FAMILY: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
::aws_smithy_schema::ShapeId::from_parts("com.amazonaws.ssm#Patch$ProductFamily", "com.amazonaws.ssm", "Patch"),
::aws_smithy_schema::ShapeType::String,
"ProductFamily",
6,
);
static PATCH_MEMBER_PRODUCT: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
::aws_smithy_schema::ShapeId::from_parts("com.amazonaws.ssm#Patch$Product", "com.amazonaws.ssm", "Patch"),
::aws_smithy_schema::ShapeType::String,
"Product",
7,
);
static PATCH_MEMBER_CLASSIFICATION: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
::aws_smithy_schema::ShapeId::from_parts("com.amazonaws.ssm#Patch$Classification", "com.amazonaws.ssm", "Patch"),
::aws_smithy_schema::ShapeType::String,
"Classification",
8,
);
static PATCH_MEMBER_MSRC_SEVERITY: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
::aws_smithy_schema::ShapeId::from_parts("com.amazonaws.ssm#Patch$MsrcSeverity", "com.amazonaws.ssm", "Patch"),
::aws_smithy_schema::ShapeType::String,
"MsrcSeverity",
9,
);
static PATCH_MEMBER_KB_NUMBER: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
::aws_smithy_schema::ShapeId::from_parts("com.amazonaws.ssm#Patch$KbNumber", "com.amazonaws.ssm", "Patch"),
::aws_smithy_schema::ShapeType::String,
"KbNumber",
10,
);
static PATCH_MEMBER_MSRC_NUMBER: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
::aws_smithy_schema::ShapeId::from_parts("com.amazonaws.ssm#Patch$MsrcNumber", "com.amazonaws.ssm", "Patch"),
::aws_smithy_schema::ShapeType::String,
"MsrcNumber",
11,
);
static PATCH_MEMBER_LANGUAGE: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
::aws_smithy_schema::ShapeId::from_parts("com.amazonaws.ssm#Patch$Language", "com.amazonaws.ssm", "Patch"),
::aws_smithy_schema::ShapeType::String,
"Language",
12,
);
static PATCH_MEMBER_ADVISORY_IDS_MEMBER: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
::aws_smithy_schema::ShapeId::from_parts("com.amazonaws.ssm#PatchAdvisoryIdList$member", "com.amazonaws.ssm", "PatchAdvisoryIdList"),
::aws_smithy_schema::ShapeType::String,
"member",
0,
);
static PATCH_MEMBER_ADVISORY_IDS: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
::aws_smithy_schema::ShapeId::from_parts("com.amazonaws.ssm#Patch$AdvisoryIds", "com.amazonaws.ssm", "Patch"),
::aws_smithy_schema::ShapeType::List,
"AdvisoryIds",
13,
)
.with_list_member(&PATCH_MEMBER_ADVISORY_IDS_MEMBER);
static PATCH_MEMBER_BUGZILLA_IDS_MEMBER: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
::aws_smithy_schema::ShapeId::from_parts("com.amazonaws.ssm#PatchBugzillaIdList$member", "com.amazonaws.ssm", "PatchBugzillaIdList"),
::aws_smithy_schema::ShapeType::String,
"member",
0,
);
static PATCH_MEMBER_BUGZILLA_IDS: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
::aws_smithy_schema::ShapeId::from_parts("com.amazonaws.ssm#Patch$BugzillaIds", "com.amazonaws.ssm", "Patch"),
::aws_smithy_schema::ShapeType::List,
"BugzillaIds",
14,
)
.with_list_member(&PATCH_MEMBER_BUGZILLA_IDS_MEMBER);
static PATCH_MEMBER_CVE_IDS_MEMBER: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
::aws_smithy_schema::ShapeId::from_parts("com.amazonaws.ssm#PatchCVEIdList$member", "com.amazonaws.ssm", "PatchCVEIdList"),
::aws_smithy_schema::ShapeType::String,
"member",
0,
);
static PATCH_MEMBER_CVE_IDS: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
::aws_smithy_schema::ShapeId::from_parts("com.amazonaws.ssm#Patch$CVEIds", "com.amazonaws.ssm", "Patch"),
::aws_smithy_schema::ShapeType::List,
"CVEIds",
15,
)
.with_list_member(&PATCH_MEMBER_CVE_IDS_MEMBER);
static PATCH_MEMBER_NAME: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
::aws_smithy_schema::ShapeId::from_parts("com.amazonaws.ssm#Patch$Name", "com.amazonaws.ssm", "Patch"),
::aws_smithy_schema::ShapeType::String,
"Name",
16,
);
static PATCH_MEMBER_EPOCH: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
::aws_smithy_schema::ShapeId::from_parts("com.amazonaws.ssm#Patch$Epoch", "com.amazonaws.ssm", "Patch"),
::aws_smithy_schema::ShapeType::Integer,
"Epoch",
17,
);
static PATCH_MEMBER_VERSION: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
::aws_smithy_schema::ShapeId::from_parts("com.amazonaws.ssm#Patch$Version", "com.amazonaws.ssm", "Patch"),
::aws_smithy_schema::ShapeType::String,
"Version",
18,
);
static PATCH_MEMBER_RELEASE: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
::aws_smithy_schema::ShapeId::from_parts("com.amazonaws.ssm#Patch$Release", "com.amazonaws.ssm", "Patch"),
::aws_smithy_schema::ShapeType::String,
"Release",
19,
);
static PATCH_MEMBER_ARCH: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
::aws_smithy_schema::ShapeId::from_parts("com.amazonaws.ssm#Patch$Arch", "com.amazonaws.ssm", "Patch"),
::aws_smithy_schema::ShapeType::String,
"Arch",
20,
);
static PATCH_MEMBER_SEVERITY: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
::aws_smithy_schema::ShapeId::from_parts("com.amazonaws.ssm#Patch$Severity", "com.amazonaws.ssm", "Patch"),
::aws_smithy_schema::ShapeType::String,
"Severity",
21,
);
static PATCH_MEMBER_REPOSITORY: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
::aws_smithy_schema::ShapeId::from_parts("com.amazonaws.ssm#Patch$Repository", "com.amazonaws.ssm", "Patch"),
::aws_smithy_schema::ShapeType::String,
"Repository",
22,
);
static PATCH_SCHEMA: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_struct(
::aws_smithy_schema::ShapeId::from_parts("com.amazonaws.ssm#Patch", "com.amazonaws.ssm", "Patch"),
::aws_smithy_schema::ShapeType::Structure,
&[
&PATCH_MEMBER_ID,
&PATCH_MEMBER_RELEASE_DATE,
&PATCH_MEMBER_TITLE,
&PATCH_MEMBER_DESCRIPTION,
&PATCH_MEMBER_CONTENT_URL,
&PATCH_MEMBER_VENDOR,
&PATCH_MEMBER_PRODUCT_FAMILY,
&PATCH_MEMBER_PRODUCT,
&PATCH_MEMBER_CLASSIFICATION,
&PATCH_MEMBER_MSRC_SEVERITY,
&PATCH_MEMBER_KB_NUMBER,
&PATCH_MEMBER_MSRC_NUMBER,
&PATCH_MEMBER_LANGUAGE,
&PATCH_MEMBER_ADVISORY_IDS,
&PATCH_MEMBER_BUGZILLA_IDS,
&PATCH_MEMBER_CVE_IDS,
&PATCH_MEMBER_NAME,
&PATCH_MEMBER_EPOCH,
&PATCH_MEMBER_VERSION,
&PATCH_MEMBER_RELEASE,
&PATCH_MEMBER_ARCH,
&PATCH_MEMBER_SEVERITY,
&PATCH_MEMBER_REPOSITORY,
],
);
impl Patch {
pub const SCHEMA: &'static ::aws_smithy_schema::Schema<'static> = &PATCH_SCHEMA;
}
impl ::aws_smithy_schema::serde::SerializableStruct for Patch {
fn schema(&self) -> &::aws_smithy_schema::Schema<'_> {
Self::SCHEMA
}
#[allow(unused_variables, clippy::diverging_sub_expression)]
fn serialize_members(
&self,
ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
if let Some(ref val) = self.id {
ser.write_string(&PATCH_MEMBER_ID, val)?;
}
if let Some(ref val) = self.release_date {
ser.write_timestamp(&PATCH_MEMBER_RELEASE_DATE, val)?;
}
if let Some(ref val) = self.title {
ser.write_string(&PATCH_MEMBER_TITLE, val)?;
}
if let Some(ref val) = self.description {
ser.write_string(&PATCH_MEMBER_DESCRIPTION, val)?;
}
if let Some(ref val) = self.content_url {
ser.write_string(&PATCH_MEMBER_CONTENT_URL, val)?;
}
if let Some(ref val) = self.vendor {
ser.write_string(&PATCH_MEMBER_VENDOR, val)?;
}
if let Some(ref val) = self.product_family {
ser.write_string(&PATCH_MEMBER_PRODUCT_FAMILY, val)?;
}
if let Some(ref val) = self.product {
ser.write_string(&PATCH_MEMBER_PRODUCT, val)?;
}
if let Some(ref val) = self.classification {
ser.write_string(&PATCH_MEMBER_CLASSIFICATION, val)?;
}
if let Some(ref val) = self.msrc_severity {
ser.write_string(&PATCH_MEMBER_MSRC_SEVERITY, val)?;
}
if let Some(ref val) = self.kb_number {
ser.write_string(&PATCH_MEMBER_KB_NUMBER, val)?;
}
if let Some(ref val) = self.msrc_number {
ser.write_string(&PATCH_MEMBER_MSRC_NUMBER, val)?;
}
if let Some(ref val) = self.language {
ser.write_string(&PATCH_MEMBER_LANGUAGE, val)?;
}
if let Some(ref val) = self.advisory_ids {
ser.write_list(
&PATCH_MEMBER_ADVISORY_IDS,
&|ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer| {
for item in val {
ser.write_string(&aws_smithy_schema::prelude::STRING, item)?;
}
Ok(())
},
)?;
}
if let Some(ref val) = self.bugzilla_ids {
ser.write_list(
&PATCH_MEMBER_BUGZILLA_IDS,
&|ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer| {
for item in val {
ser.write_string(&aws_smithy_schema::prelude::STRING, item)?;
}
Ok(())
},
)?;
}
if let Some(ref val) = self.cve_ids {
ser.write_list(&PATCH_MEMBER_CVE_IDS, &|ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer| {
for item in val {
ser.write_string(&aws_smithy_schema::prelude::STRING, item)?;
}
Ok(())
})?;
}
if let Some(ref val) = self.name {
ser.write_string(&PATCH_MEMBER_NAME, val)?;
}
{
let val = &self.epoch;
ser.write_integer(&PATCH_MEMBER_EPOCH, *val)?;
}
if let Some(ref val) = self.version {
ser.write_string(&PATCH_MEMBER_VERSION, val)?;
}
if let Some(ref val) = self.release {
ser.write_string(&PATCH_MEMBER_RELEASE, val)?;
}
if let Some(ref val) = self.arch {
ser.write_string(&PATCH_MEMBER_ARCH, val)?;
}
if let Some(ref val) = self.severity {
ser.write_string(&PATCH_MEMBER_SEVERITY, val)?;
}
if let Some(ref val) = self.repository {
ser.write_string(&PATCH_MEMBER_REPOSITORY, val)?;
}
Ok(())
}
}
impl crate::types::builders::PatchBuilder {
#[allow(
unused_variables,
unreachable_code,
clippy::single_match,
clippy::match_single_binding,
clippy::diverging_sub_expression
)]
pub(crate) fn deserialize_members(
&mut self,
deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
deserializer.read_struct(&PATCH_SCHEMA, &mut |member, deser| {
match member.member_index() {
Some(0) => {
if deser.is_null() {
deser.read_null()?;
} else {
self.id = Some(deser.read_string(member)?);
}
}
Some(1) => {
if deser.is_null() {
deser.read_null()?;
} else {
self.release_date = Some(deser.read_timestamp(member)?);
}
}
Some(2) => {
if deser.is_null() {
deser.read_null()?;
} else {
self.title = Some(deser.read_string(member)?);
}
}
Some(3) => {
if deser.is_null() {
deser.read_null()?;
} else {
self.description = Some(deser.read_string(member)?);
}
}
Some(4) => {
if deser.is_null() {
deser.read_null()?;
} else {
self.content_url = Some(deser.read_string(member)?);
}
}
Some(5) => {
if deser.is_null() {
deser.read_null()?;
} else {
self.vendor = Some(deser.read_string(member)?);
}
}
Some(6) => {
if deser.is_null() {
deser.read_null()?;
} else {
self.product_family = Some(deser.read_string(member)?);
}
}
Some(7) => {
if deser.is_null() {
deser.read_null()?;
} else {
self.product = Some(deser.read_string(member)?);
}
}
Some(8) => {
if deser.is_null() {
deser.read_null()?;
} else {
self.classification = Some(deser.read_string(member)?);
}
}
Some(9) => {
if deser.is_null() {
deser.read_null()?;
} else {
self.msrc_severity = Some(deser.read_string(member)?);
}
}
Some(10) => {
if deser.is_null() {
deser.read_null()?;
} else {
self.kb_number = Some(deser.read_string(member)?);
}
}
Some(11) => {
if deser.is_null() {
deser.read_null()?;
} else {
self.msrc_number = Some(deser.read_string(member)?);
}
}
Some(12) => {
if deser.is_null() {
deser.read_null()?;
} else {
self.language = Some(deser.read_string(member)?);
}
}
Some(13) => {
if deser.is_null() {
deser.read_null()?;
} else {
self.advisory_ids = Some(deser.read_string_list(member)?);
}
}
Some(14) => {
if deser.is_null() {
deser.read_null()?;
} else {
self.bugzilla_ids = Some(deser.read_string_list(member)?);
}
}
Some(15) => {
if deser.is_null() {
deser.read_null()?;
} else {
self.cve_ids = Some(deser.read_string_list(member)?);
}
}
Some(16) => {
if deser.is_null() {
deser.read_null()?;
} else {
self.name = Some(deser.read_string(member)?);
}
}
Some(17) => {
self.epoch = Some(deser.read_integer(member)?);
}
Some(18) => {
if deser.is_null() {
deser.read_null()?;
} else {
self.version = Some(deser.read_string(member)?);
}
}
Some(19) => {
if deser.is_null() {
deser.read_null()?;
} else {
self.release = Some(deser.read_string(member)?);
}
}
Some(20) => {
if deser.is_null() {
deser.read_null()?;
} else {
self.arch = Some(deser.read_string(member)?);
}
}
Some(21) => {
if deser.is_null() {
deser.read_null()?;
} else {
self.severity = Some(deser.read_string(member)?);
}
}
Some(22) => {
if deser.is_null() {
deser.read_null()?;
} else {
self.repository = Some(deser.read_string(member)?);
}
}
_ => {}
}
Ok(())
})
}
}
impl Patch {
pub fn deserialize(
deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
let mut builder = Self::builder();
builder.deserialize_members(deserializer)?;
Ok(builder.build())
}
}
impl Patch {
pub fn builder() -> crate::types::builders::PatchBuilder {
crate::types::builders::PatchBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct PatchBuilder {
pub(crate) id: ::std::option::Option<::std::string::String>,
pub(crate) release_date: ::std::option::Option<::aws_smithy_types::DateTime>,
pub(crate) title: ::std::option::Option<::std::string::String>,
pub(crate) description: ::std::option::Option<::std::string::String>,
pub(crate) content_url: ::std::option::Option<::std::string::String>,
pub(crate) vendor: ::std::option::Option<::std::string::String>,
pub(crate) product_family: ::std::option::Option<::std::string::String>,
pub(crate) product: ::std::option::Option<::std::string::String>,
pub(crate) classification: ::std::option::Option<::std::string::String>,
pub(crate) msrc_severity: ::std::option::Option<::std::string::String>,
pub(crate) kb_number: ::std::option::Option<::std::string::String>,
pub(crate) msrc_number: ::std::option::Option<::std::string::String>,
pub(crate) language: ::std::option::Option<::std::string::String>,
pub(crate) advisory_ids: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
pub(crate) bugzilla_ids: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
pub(crate) cve_ids: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
pub(crate) name: ::std::option::Option<::std::string::String>,
pub(crate) epoch: ::std::option::Option<i32>,
pub(crate) version: ::std::option::Option<::std::string::String>,
pub(crate) release: ::std::option::Option<::std::string::String>,
pub(crate) arch: ::std::option::Option<::std::string::String>,
pub(crate) severity: ::std::option::Option<::std::string::String>,
pub(crate) repository: ::std::option::Option<::std::string::String>,
}
impl PatchBuilder {
pub fn id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.id = ::std::option::Option::Some(input.into());
self
}
pub fn set_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.id = input;
self
}
pub fn get_id(&self) -> &::std::option::Option<::std::string::String> {
&self.id
}
pub fn release_date(mut self, input: ::aws_smithy_types::DateTime) -> Self {
self.release_date = ::std::option::Option::Some(input);
self
}
pub fn set_release_date(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
self.release_date = input;
self
}
pub fn get_release_date(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
&self.release_date
}
pub fn title(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.title = ::std::option::Option::Some(input.into());
self
}
pub fn set_title(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.title = input;
self
}
pub fn get_title(&self) -> &::std::option::Option<::std::string::String> {
&self.title
}
pub fn description(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.description = ::std::option::Option::Some(input.into());
self
}
pub fn set_description(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.description = input;
self
}
pub fn get_description(&self) -> &::std::option::Option<::std::string::String> {
&self.description
}
pub fn content_url(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.content_url = ::std::option::Option::Some(input.into());
self
}
pub fn set_content_url(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.content_url = input;
self
}
pub fn get_content_url(&self) -> &::std::option::Option<::std::string::String> {
&self.content_url
}
pub fn vendor(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.vendor = ::std::option::Option::Some(input.into());
self
}
pub fn set_vendor(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.vendor = input;
self
}
pub fn get_vendor(&self) -> &::std::option::Option<::std::string::String> {
&self.vendor
}
pub fn product_family(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.product_family = ::std::option::Option::Some(input.into());
self
}
pub fn set_product_family(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.product_family = input;
self
}
pub fn get_product_family(&self) -> &::std::option::Option<::std::string::String> {
&self.product_family
}
pub fn product(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.product = ::std::option::Option::Some(input.into());
self
}
pub fn set_product(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.product = input;
self
}
pub fn get_product(&self) -> &::std::option::Option<::std::string::String> {
&self.product
}
pub fn classification(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.classification = ::std::option::Option::Some(input.into());
self
}
pub fn set_classification(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.classification = input;
self
}
pub fn get_classification(&self) -> &::std::option::Option<::std::string::String> {
&self.classification
}
pub fn msrc_severity(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.msrc_severity = ::std::option::Option::Some(input.into());
self
}
pub fn set_msrc_severity(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.msrc_severity = input;
self
}
pub fn get_msrc_severity(&self) -> &::std::option::Option<::std::string::String> {
&self.msrc_severity
}
pub fn kb_number(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.kb_number = ::std::option::Option::Some(input.into());
self
}
pub fn set_kb_number(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.kb_number = input;
self
}
pub fn get_kb_number(&self) -> &::std::option::Option<::std::string::String> {
&self.kb_number
}
pub fn msrc_number(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.msrc_number = ::std::option::Option::Some(input.into());
self
}
pub fn set_msrc_number(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.msrc_number = input;
self
}
pub fn get_msrc_number(&self) -> &::std::option::Option<::std::string::String> {
&self.msrc_number
}
pub fn language(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.language = ::std::option::Option::Some(input.into());
self
}
pub fn set_language(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.language = input;
self
}
pub fn get_language(&self) -> &::std::option::Option<::std::string::String> {
&self.language
}
pub fn advisory_ids(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
let mut v = self.advisory_ids.unwrap_or_default();
v.push(input.into());
self.advisory_ids = ::std::option::Option::Some(v);
self
}
pub fn set_advisory_ids(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self {
self.advisory_ids = input;
self
}
pub fn get_advisory_ids(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> {
&self.advisory_ids
}
pub fn bugzilla_ids(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
let mut v = self.bugzilla_ids.unwrap_or_default();
v.push(input.into());
self.bugzilla_ids = ::std::option::Option::Some(v);
self
}
pub fn set_bugzilla_ids(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self {
self.bugzilla_ids = input;
self
}
pub fn get_bugzilla_ids(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> {
&self.bugzilla_ids
}
pub fn cve_ids(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
let mut v = self.cve_ids.unwrap_or_default();
v.push(input.into());
self.cve_ids = ::std::option::Option::Some(v);
self
}
pub fn set_cve_ids(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self {
self.cve_ids = input;
self
}
pub fn get_cve_ids(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> {
&self.cve_ids
}
pub fn name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.name = ::std::option::Option::Some(input.into());
self
}
pub fn set_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.name = input;
self
}
pub fn get_name(&self) -> &::std::option::Option<::std::string::String> {
&self.name
}
pub fn epoch(mut self, input: i32) -> Self {
self.epoch = ::std::option::Option::Some(input);
self
}
pub fn set_epoch(mut self, input: ::std::option::Option<i32>) -> Self {
self.epoch = input;
self
}
pub fn get_epoch(&self) -> &::std::option::Option<i32> {
&self.epoch
}
pub fn version(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.version = ::std::option::Option::Some(input.into());
self
}
pub fn set_version(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.version = input;
self
}
pub fn get_version(&self) -> &::std::option::Option<::std::string::String> {
&self.version
}
pub fn release(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.release = ::std::option::Option::Some(input.into());
self
}
pub fn set_release(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.release = input;
self
}
pub fn get_release(&self) -> &::std::option::Option<::std::string::String> {
&self.release
}
pub fn arch(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.arch = ::std::option::Option::Some(input.into());
self
}
pub fn set_arch(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.arch = input;
self
}
pub fn get_arch(&self) -> &::std::option::Option<::std::string::String> {
&self.arch
}
pub fn severity(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.severity = ::std::option::Option::Some(input.into());
self
}
pub fn set_severity(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.severity = input;
self
}
pub fn get_severity(&self) -> &::std::option::Option<::std::string::String> {
&self.severity
}
pub fn repository(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.repository = ::std::option::Option::Some(input.into());
self
}
pub fn set_repository(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.repository = input;
self
}
pub fn get_repository(&self) -> &::std::option::Option<::std::string::String> {
&self.repository
}
pub fn build(self) -> crate::types::Patch {
crate::types::Patch {
id: self.id,
release_date: self.release_date,
title: self.title,
description: self.description,
content_url: self.content_url,
vendor: self.vendor,
product_family: self.product_family,
product: self.product,
classification: self.classification,
msrc_severity: self.msrc_severity,
kb_number: self.kb_number,
msrc_number: self.msrc_number,
language: self.language,
advisory_ids: self.advisory_ids,
bugzilla_ids: self.bugzilla_ids,
cve_ids: self.cve_ids,
name: self.name,
epoch: self.epoch.unwrap_or_default(),
version: self.version,
release: self.release,
arch: self.arch,
severity: self.severity,
repository: self.repository,
}
}
}