#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct StrategyOption {
#[doc(hidden)]
pub strategy: std::option::Option<crate::model::Strategy>,
#[doc(hidden)]
pub tool_name: std::option::Option<crate::model::TransformationToolName>,
#[doc(hidden)]
pub target_destination: std::option::Option<crate::model::TargetDestination>,
#[doc(hidden)]
pub is_preferred: std::option::Option<bool>,
}
impl StrategyOption {
pub fn strategy(&self) -> std::option::Option<&crate::model::Strategy> {
self.strategy.as_ref()
}
pub fn tool_name(&self) -> std::option::Option<&crate::model::TransformationToolName> {
self.tool_name.as_ref()
}
pub fn target_destination(&self) -> std::option::Option<&crate::model::TargetDestination> {
self.target_destination.as_ref()
}
pub fn is_preferred(&self) -> std::option::Option<bool> {
self.is_preferred
}
}
pub mod strategy_option {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) strategy: std::option::Option<crate::model::Strategy>,
pub(crate) tool_name: std::option::Option<crate::model::TransformationToolName>,
pub(crate) target_destination: std::option::Option<crate::model::TargetDestination>,
pub(crate) is_preferred: std::option::Option<bool>,
}
impl Builder {
pub fn strategy(mut self, input: crate::model::Strategy) -> Self {
self.strategy = Some(input);
self
}
pub fn set_strategy(mut self, input: std::option::Option<crate::model::Strategy>) -> Self {
self.strategy = input;
self
}
pub fn tool_name(mut self, input: crate::model::TransformationToolName) -> Self {
self.tool_name = Some(input);
self
}
pub fn set_tool_name(
mut self,
input: std::option::Option<crate::model::TransformationToolName>,
) -> Self {
self.tool_name = input;
self
}
pub fn target_destination(mut self, input: crate::model::TargetDestination) -> Self {
self.target_destination = Some(input);
self
}
pub fn set_target_destination(
mut self,
input: std::option::Option<crate::model::TargetDestination>,
) -> Self {
self.target_destination = input;
self
}
pub fn is_preferred(mut self, input: bool) -> Self {
self.is_preferred = Some(input);
self
}
pub fn set_is_preferred(mut self, input: std::option::Option<bool>) -> Self {
self.is_preferred = input;
self
}
pub fn build(self) -> crate::model::StrategyOption {
crate::model::StrategyOption {
strategy: self.strategy,
tool_name: self.tool_name,
target_destination: self.target_destination,
is_preferred: self.is_preferred,
}
}
}
}
impl StrategyOption {
pub fn builder() -> crate::model::strategy_option::Builder {
crate::model::strategy_option::Builder::default()
}
}
#[allow(missing_docs)] #[non_exhaustive]
#[derive(
std::clone::Clone,
std::cmp::Eq,
std::cmp::Ord,
std::cmp::PartialEq,
std::cmp::PartialOrd,
std::fmt::Debug,
std::hash::Hash,
)]
pub enum TargetDestination {
#[allow(missing_docs)] AwsElasticBeanstalk,
#[allow(missing_docs)] AwsFargate,
#[allow(missing_docs)] AmazonDocumentdb,
#[allow(missing_docs)] AmazonDynamodb,
#[allow(missing_docs)] AmazonElasticCloudCompute,
#[allow(missing_docs)] AmazonElasticContainerService,
#[allow(missing_docs)] AmazonElasticKubernetesService,
#[allow(missing_docs)] AmazonRds,
#[allow(missing_docs)] AmazonRdsMysql,
#[allow(missing_docs)] AmazonRdsPostgresql,
#[allow(missing_docs)] AuroraMysql,
#[allow(missing_docs)] AuroraPostgresql,
#[allow(missing_docs)] BabelfishAuroraPostgresql,
#[allow(missing_docs)] NoneSpecified,
Unknown(crate::types::UnknownVariantValue),
}
impl std::convert::From<&str> for TargetDestination {
fn from(s: &str) -> Self {
match s {
"AWS Elastic BeanStalk" => TargetDestination::AwsElasticBeanstalk,
"AWS Fargate" => TargetDestination::AwsFargate,
"Amazon DocumentDB" => TargetDestination::AmazonDocumentdb,
"Amazon DynamoDB" => TargetDestination::AmazonDynamodb,
"Amazon Elastic Cloud Compute (EC2)" => TargetDestination::AmazonElasticCloudCompute,
"Amazon Elastic Container Service (ECS)" => {
TargetDestination::AmazonElasticContainerService
}
"Amazon Elastic Kubernetes Service (EKS)" => {
TargetDestination::AmazonElasticKubernetesService
}
"Amazon Relational Database Service" => TargetDestination::AmazonRds,
"Amazon Relational Database Service on MySQL" => TargetDestination::AmazonRdsMysql,
"Amazon Relational Database Service on PostgreSQL" => {
TargetDestination::AmazonRdsPostgresql
}
"Aurora MySQL" => TargetDestination::AuroraMysql,
"Aurora PostgreSQL" => TargetDestination::AuroraPostgresql,
"Babelfish for Aurora PostgreSQL" => TargetDestination::BabelfishAuroraPostgresql,
"None specified" => TargetDestination::NoneSpecified,
other => {
TargetDestination::Unknown(crate::types::UnknownVariantValue(other.to_owned()))
}
}
}
}
impl std::str::FromStr for TargetDestination {
type Err = std::convert::Infallible;
fn from_str(s: &str) -> std::result::Result<Self, Self::Err> {
Ok(TargetDestination::from(s))
}
}
impl TargetDestination {
pub fn as_str(&self) -> &str {
match self {
TargetDestination::AwsElasticBeanstalk => "AWS Elastic BeanStalk",
TargetDestination::AwsFargate => "AWS Fargate",
TargetDestination::AmazonDocumentdb => "Amazon DocumentDB",
TargetDestination::AmazonDynamodb => "Amazon DynamoDB",
TargetDestination::AmazonElasticCloudCompute => "Amazon Elastic Cloud Compute (EC2)",
TargetDestination::AmazonElasticContainerService => {
"Amazon Elastic Container Service (ECS)"
}
TargetDestination::AmazonElasticKubernetesService => {
"Amazon Elastic Kubernetes Service (EKS)"
}
TargetDestination::AmazonRds => "Amazon Relational Database Service",
TargetDestination::AmazonRdsMysql => "Amazon Relational Database Service on MySQL",
TargetDestination::AmazonRdsPostgresql => {
"Amazon Relational Database Service on PostgreSQL"
}
TargetDestination::AuroraMysql => "Aurora MySQL",
TargetDestination::AuroraPostgresql => "Aurora PostgreSQL",
TargetDestination::BabelfishAuroraPostgresql => "Babelfish for Aurora PostgreSQL",
TargetDestination::NoneSpecified => "None specified",
TargetDestination::Unknown(value) => value.as_str(),
}
}
pub const fn values() -> &'static [&'static str] {
&[
"AWS Elastic BeanStalk",
"AWS Fargate",
"Amazon DocumentDB",
"Amazon DynamoDB",
"Amazon Elastic Cloud Compute (EC2)",
"Amazon Elastic Container Service (ECS)",
"Amazon Elastic Kubernetes Service (EKS)",
"Amazon Relational Database Service",
"Amazon Relational Database Service on MySQL",
"Amazon Relational Database Service on PostgreSQL",
"Aurora MySQL",
"Aurora PostgreSQL",
"Babelfish for Aurora PostgreSQL",
"None specified",
]
}
}
impl AsRef<str> for TargetDestination {
fn as_ref(&self) -> &str {
self.as_str()
}
}
#[allow(missing_docs)] #[non_exhaustive]
#[derive(
std::clone::Clone,
std::cmp::Eq,
std::cmp::Ord,
std::cmp::PartialEq,
std::cmp::PartialOrd,
std::fmt::Debug,
std::hash::Hash,
)]
pub enum TransformationToolName {
#[allow(missing_docs)] App2Container,
#[allow(missing_docs)] Mgn,
#[allow(missing_docs)] Dms,
#[allow(missing_docs)] Emp,
#[allow(missing_docs)] InPlaceOsUpgrade,
#[allow(missing_docs)] NativeSql,
#[allow(missing_docs)] PortingAssistant,
#[allow(missing_docs)] Sct,
#[allow(missing_docs)] StrategyRecommendationSupport,
#[allow(missing_docs)] Wwama,
Unknown(crate::types::UnknownVariantValue),
}
impl std::convert::From<&str> for TransformationToolName {
fn from(s: &str) -> Self {
match s {
"App2Container" => TransformationToolName::App2Container,
"Application Migration Service" => TransformationToolName::Mgn,
"Database Migration Service" => TransformationToolName::Dms,
"End of Support Migration" => TransformationToolName::Emp,
"In Place Operating System Upgrade" => TransformationToolName::InPlaceOsUpgrade,
"Native SQL Server Backup/Restore" => TransformationToolName::NativeSql,
"Porting Assistant For .NET" => TransformationToolName::PortingAssistant,
"Schema Conversion Tool" => TransformationToolName::Sct,
"Strategy Recommendation Support" => {
TransformationToolName::StrategyRecommendationSupport
}
"Windows Web Application Migration Assistant" => TransformationToolName::Wwama,
other => {
TransformationToolName::Unknown(crate::types::UnknownVariantValue(other.to_owned()))
}
}
}
}
impl std::str::FromStr for TransformationToolName {
type Err = std::convert::Infallible;
fn from_str(s: &str) -> std::result::Result<Self, Self::Err> {
Ok(TransformationToolName::from(s))
}
}
impl TransformationToolName {
pub fn as_str(&self) -> &str {
match self {
TransformationToolName::App2Container => "App2Container",
TransformationToolName::Mgn => "Application Migration Service",
TransformationToolName::Dms => "Database Migration Service",
TransformationToolName::Emp => "End of Support Migration",
TransformationToolName::InPlaceOsUpgrade => "In Place Operating System Upgrade",
TransformationToolName::NativeSql => "Native SQL Server Backup/Restore",
TransformationToolName::PortingAssistant => "Porting Assistant For .NET",
TransformationToolName::Sct => "Schema Conversion Tool",
TransformationToolName::StrategyRecommendationSupport => {
"Strategy Recommendation Support"
}
TransformationToolName::Wwama => "Windows Web Application Migration Assistant",
TransformationToolName::Unknown(value) => value.as_str(),
}
}
pub const fn values() -> &'static [&'static str] {
&[
"App2Container",
"Application Migration Service",
"Database Migration Service",
"End of Support Migration",
"In Place Operating System Upgrade",
"Native SQL Server Backup/Restore",
"Porting Assistant For .NET",
"Schema Conversion Tool",
"Strategy Recommendation Support",
"Windows Web Application Migration Assistant",
]
}
}
impl AsRef<str> for TransformationToolName {
fn as_ref(&self) -> &str {
self.as_str()
}
}
#[allow(missing_docs)] #[non_exhaustive]
#[derive(
std::clone::Clone,
std::cmp::Eq,
std::cmp::Ord,
std::cmp::PartialEq,
std::cmp::PartialOrd,
std::fmt::Debug,
std::hash::Hash,
)]
pub enum Strategy {
#[allow(missing_docs)] Refactor,
#[allow(missing_docs)] Rehost,
#[allow(missing_docs)] Relocate,
#[allow(missing_docs)] Replatform,
#[allow(missing_docs)] Repurchase,
#[allow(missing_docs)] Retain,
#[allow(missing_docs)] Retirement,
Unknown(crate::types::UnknownVariantValue),
}
impl std::convert::From<&str> for Strategy {
fn from(s: &str) -> Self {
match s {
"Refactor" => Strategy::Refactor,
"Rehost" => Strategy::Rehost,
"Relocate" => Strategy::Relocate,
"Replatform" => Strategy::Replatform,
"Repurchase" => Strategy::Repurchase,
"Retain" => Strategy::Retain,
"Retirement" => Strategy::Retirement,
other => Strategy::Unknown(crate::types::UnknownVariantValue(other.to_owned())),
}
}
}
impl std::str::FromStr for Strategy {
type Err = std::convert::Infallible;
fn from_str(s: &str) -> std::result::Result<Self, Self::Err> {
Ok(Strategy::from(s))
}
}
impl Strategy {
pub fn as_str(&self) -> &str {
match self {
Strategy::Refactor => "Refactor",
Strategy::Rehost => "Rehost",
Strategy::Relocate => "Relocate",
Strategy::Replatform => "Replatform",
Strategy::Repurchase => "Repurchase",
Strategy::Retain => "Retain",
Strategy::Retirement => "Retirement",
Strategy::Unknown(value) => value.as_str(),
}
}
pub const fn values() -> &'static [&'static str] {
&[
"Refactor",
"Rehost",
"Relocate",
"Replatform",
"Repurchase",
"Retain",
"Retirement",
]
}
}
impl AsRef<str> for Strategy {
fn as_ref(&self) -> &str {
self.as_str()
}
}
#[non_exhaustive]
#[derive(
std::clone::Clone,
std::cmp::Eq,
std::cmp::Ord,
std::cmp::PartialEq,
std::cmp::PartialOrd,
std::fmt::Debug,
std::hash::Hash,
)]
pub enum AppType {
#[allow(missing_docs)] Cassandra,
#[allow(missing_docs)] Db2,
#[allow(missing_docs)] DotNetFramework,
#[allow(missing_docs)] Dotnet,
#[allow(missing_docs)] Dotnetcore,
#[allow(missing_docs)] Websphere,
#[allow(missing_docs)] Iis,
#[allow(missing_docs)] Jboss,
#[allow(missing_docs)] Java,
#[allow(missing_docs)] Mariadb,
#[allow(missing_docs)] Mongodb,
#[allow(missing_docs)] Mysql,
#[allow(missing_docs)] Oracle,
#[allow(missing_docs)] Weblogic,
#[allow(missing_docs)] Other,
#[allow(missing_docs)] Postgresqlserver,
#[allow(missing_docs)] SqlServer,
#[allow(missing_docs)] Spring,
#[allow(missing_docs)] Sybase,
#[allow(missing_docs)] Tomcat,
UnknownValue,
#[allow(missing_docs)] Visualbasic,
Unknown(crate::types::UnknownVariantValue),
}
impl std::convert::From<&str> for AppType {
fn from(s: &str) -> Self {
match s {
"Cassandra" => AppType::Cassandra,
"DB2" => AppType::Db2,
"DotNetFramework" => AppType::DotNetFramework,
"Dotnet" => AppType::Dotnet,
"DotnetCore" => AppType::Dotnetcore,
"IBM WebSphere" => AppType::Websphere,
"IIS" => AppType::Iis,
"JBoss" => AppType::Jboss,
"Java" => AppType::Java,
"Maria DB" => AppType::Mariadb,
"Mongo DB" => AppType::Mongodb,
"MySQL" => AppType::Mysql,
"Oracle" => AppType::Oracle,
"Oracle WebLogic" => AppType::Weblogic,
"Other" => AppType::Other,
"PostgreSQLServer" => AppType::Postgresqlserver,
"SQLServer" => AppType::SqlServer,
"Spring" => AppType::Spring,
"Sybase" => AppType::Sybase,
"Tomcat" => AppType::Tomcat,
"Unknown" => AppType::UnknownValue,
"Visual Basic" => AppType::Visualbasic,
other => AppType::Unknown(crate::types::UnknownVariantValue(other.to_owned())),
}
}
}
impl std::str::FromStr for AppType {
type Err = std::convert::Infallible;
fn from_str(s: &str) -> std::result::Result<Self, Self::Err> {
Ok(AppType::from(s))
}
}
impl AppType {
pub fn as_str(&self) -> &str {
match self {
AppType::Cassandra => "Cassandra",
AppType::Db2 => "DB2",
AppType::DotNetFramework => "DotNetFramework",
AppType::Dotnet => "Dotnet",
AppType::Dotnetcore => "DotnetCore",
AppType::Websphere => "IBM WebSphere",
AppType::Iis => "IIS",
AppType::Jboss => "JBoss",
AppType::Java => "Java",
AppType::Mariadb => "Maria DB",
AppType::Mongodb => "Mongo DB",
AppType::Mysql => "MySQL",
AppType::Oracle => "Oracle",
AppType::Weblogic => "Oracle WebLogic",
AppType::Other => "Other",
AppType::Postgresqlserver => "PostgreSQLServer",
AppType::SqlServer => "SQLServer",
AppType::Spring => "Spring",
AppType::Sybase => "Sybase",
AppType::Tomcat => "Tomcat",
AppType::UnknownValue => "Unknown",
AppType::Visualbasic => "Visual Basic",
AppType::Unknown(value) => value.as_str(),
}
}
pub const fn values() -> &'static [&'static str] {
&[
"Cassandra",
"DB2",
"DotNetFramework",
"Dotnet",
"DotnetCore",
"IBM WebSphere",
"IIS",
"JBoss",
"Java",
"Maria DB",
"Mongo DB",
"MySQL",
"Oracle",
"Oracle WebLogic",
"Other",
"PostgreSQLServer",
"SQLServer",
"Spring",
"Sybase",
"Tomcat",
"Unknown",
"Visual Basic",
]
}
}
impl AsRef<str> for AppType {
fn as_ref(&self) -> &str {
self.as_str()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct SourceCode {
#[doc(hidden)]
pub version_control: std::option::Option<crate::model::VersionControl>,
#[doc(hidden)]
pub source_version: std::option::Option<std::string::String>,
#[doc(hidden)]
pub location: std::option::Option<std::string::String>,
#[doc(hidden)]
pub project_name: std::option::Option<std::string::String>,
}
impl SourceCode {
pub fn version_control(&self) -> std::option::Option<&crate::model::VersionControl> {
self.version_control.as_ref()
}
pub fn source_version(&self) -> std::option::Option<&str> {
self.source_version.as_deref()
}
pub fn location(&self) -> std::option::Option<&str> {
self.location.as_deref()
}
pub fn project_name(&self) -> std::option::Option<&str> {
self.project_name.as_deref()
}
}
pub mod source_code {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) version_control: std::option::Option<crate::model::VersionControl>,
pub(crate) source_version: std::option::Option<std::string::String>,
pub(crate) location: std::option::Option<std::string::String>,
pub(crate) project_name: std::option::Option<std::string::String>,
}
impl Builder {
pub fn version_control(mut self, input: crate::model::VersionControl) -> Self {
self.version_control = Some(input);
self
}
pub fn set_version_control(
mut self,
input: std::option::Option<crate::model::VersionControl>,
) -> Self {
self.version_control = input;
self
}
pub fn source_version(mut self, input: impl Into<std::string::String>) -> Self {
self.source_version = Some(input.into());
self
}
pub fn set_source_version(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.source_version = input;
self
}
pub fn location(mut self, input: impl Into<std::string::String>) -> Self {
self.location = Some(input.into());
self
}
pub fn set_location(mut self, input: std::option::Option<std::string::String>) -> Self {
self.location = input;
self
}
pub fn project_name(mut self, input: impl Into<std::string::String>) -> Self {
self.project_name = Some(input.into());
self
}
pub fn set_project_name(mut self, input: std::option::Option<std::string::String>) -> Self {
self.project_name = input;
self
}
pub fn build(self) -> crate::model::SourceCode {
crate::model::SourceCode {
version_control: self.version_control,
source_version: self.source_version,
location: self.location,
project_name: self.project_name,
}
}
}
}
impl SourceCode {
pub fn builder() -> crate::model::source_code::Builder {
crate::model::source_code::Builder::default()
}
}
#[allow(missing_docs)] #[non_exhaustive]
#[derive(
std::clone::Clone,
std::cmp::Eq,
std::cmp::Ord,
std::cmp::PartialEq,
std::cmp::PartialOrd,
std::fmt::Debug,
std::hash::Hash,
)]
pub enum VersionControl {
#[allow(missing_docs)] AzureDevopsGit,
#[allow(missing_docs)] Github,
#[allow(missing_docs)] GithubEnterprise,
Unknown(crate::types::UnknownVariantValue),
}
impl std::convert::From<&str> for VersionControl {
fn from(s: &str) -> Self {
match s {
"AZURE_DEVOPS_GIT" => VersionControl::AzureDevopsGit,
"GITHUB" => VersionControl::Github,
"GITHUB_ENTERPRISE" => VersionControl::GithubEnterprise,
other => VersionControl::Unknown(crate::types::UnknownVariantValue(other.to_owned())),
}
}
}
impl std::str::FromStr for VersionControl {
type Err = std::convert::Infallible;
fn from_str(s: &str) -> std::result::Result<Self, Self::Err> {
Ok(VersionControl::from(s))
}
}
impl VersionControl {
pub fn as_str(&self) -> &str {
match self {
VersionControl::AzureDevopsGit => "AZURE_DEVOPS_GIT",
VersionControl::Github => "GITHUB",
VersionControl::GithubEnterprise => "GITHUB_ENTERPRISE",
VersionControl::Unknown(value) => value.as_str(),
}
}
pub const fn values() -> &'static [&'static str] {
&["AZURE_DEVOPS_GIT", "GITHUB", "GITHUB_ENTERPRISE"]
}
}
impl AsRef<str> for VersionControl {
fn as_ref(&self) -> &str {
self.as_str()
}
}
#[allow(missing_docs)] #[non_exhaustive]
#[derive(
std::clone::Clone,
std::cmp::Eq,
std::cmp::Ord,
std::cmp::PartialEq,
std::cmp::PartialOrd,
std::fmt::Debug,
std::hash::Hash,
)]
pub enum InclusionStatus {
#[allow(missing_docs)] ExcludeFromRecommendation,
#[allow(missing_docs)] IncludeInRecommendation,
Unknown(crate::types::UnknownVariantValue),
}
impl std::convert::From<&str> for InclusionStatus {
fn from(s: &str) -> Self {
match s {
"excludeFromAssessment" => InclusionStatus::ExcludeFromRecommendation,
"includeInAssessment" => InclusionStatus::IncludeInRecommendation,
other => InclusionStatus::Unknown(crate::types::UnknownVariantValue(other.to_owned())),
}
}
}
impl std::str::FromStr for InclusionStatus {
type Err = std::convert::Infallible;
fn from_str(s: &str) -> std::result::Result<Self, Self::Err> {
Ok(InclusionStatus::from(s))
}
}
impl InclusionStatus {
pub fn as_str(&self) -> &str {
match self {
InclusionStatus::ExcludeFromRecommendation => "excludeFromAssessment",
InclusionStatus::IncludeInRecommendation => "includeInAssessment",
InclusionStatus::Unknown(value) => value.as_str(),
}
}
pub const fn values() -> &'static [&'static str] {
&["excludeFromAssessment", "includeInAssessment"]
}
}
impl AsRef<str> for InclusionStatus {
fn as_ref(&self) -> &str {
self.as_str()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Group {
#[doc(hidden)]
pub name: std::option::Option<crate::model::GroupName>,
#[doc(hidden)]
pub value: std::option::Option<std::string::String>,
}
impl Group {
pub fn name(&self) -> std::option::Option<&crate::model::GroupName> {
self.name.as_ref()
}
pub fn value(&self) -> std::option::Option<&str> {
self.value.as_deref()
}
}
pub mod group {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) name: std::option::Option<crate::model::GroupName>,
pub(crate) value: std::option::Option<std::string::String>,
}
impl Builder {
pub fn name(mut self, input: crate::model::GroupName) -> Self {
self.name = Some(input);
self
}
pub fn set_name(mut self, input: std::option::Option<crate::model::GroupName>) -> Self {
self.name = input;
self
}
pub fn value(mut self, input: impl Into<std::string::String>) -> Self {
self.value = Some(input.into());
self
}
pub fn set_value(mut self, input: std::option::Option<std::string::String>) -> Self {
self.value = input;
self
}
pub fn build(self) -> crate::model::Group {
crate::model::Group {
name: self.name,
value: self.value,
}
}
}
}
impl Group {
pub fn builder() -> crate::model::group::Builder {
crate::model::group::Builder::default()
}
}
#[allow(missing_docs)] #[non_exhaustive]
#[derive(
std::clone::Clone,
std::cmp::Eq,
std::cmp::Ord,
std::cmp::PartialEq,
std::cmp::PartialOrd,
std::fmt::Debug,
std::hash::Hash,
)]
pub enum GroupName {
#[allow(missing_docs)] ExternalId,
Unknown(crate::types::UnknownVariantValue),
}
impl std::convert::From<&str> for GroupName {
fn from(s: &str) -> Self {
match s {
"ExternalId" => GroupName::ExternalId,
other => GroupName::Unknown(crate::types::UnknownVariantValue(other.to_owned())),
}
}
}
impl std::str::FromStr for GroupName {
type Err = std::convert::Infallible;
fn from_str(s: &str) -> std::result::Result<Self, Self::Err> {
Ok(GroupName::from(s))
}
}
impl GroupName {
pub fn as_str(&self) -> &str {
match self {
GroupName::ExternalId => "ExternalId",
GroupName::Unknown(value) => value.as_str(),
}
}
pub const fn values() -> &'static [&'static str] {
&["ExternalId"]
}
}
impl AsRef<str> for GroupName {
fn as_ref(&self) -> &str {
self.as_str()
}
}
#[allow(missing_docs)] #[non_exhaustive]
#[derive(
std::clone::Clone,
std::cmp::Eq,
std::cmp::Ord,
std::cmp::PartialEq,
std::cmp::PartialOrd,
std::fmt::Debug,
std::hash::Hash,
)]
pub enum OutputFormat {
#[allow(missing_docs)] Excel,
#[allow(missing_docs)] Json,
Unknown(crate::types::UnknownVariantValue),
}
impl std::convert::From<&str> for OutputFormat {
fn from(s: &str) -> Self {
match s {
"Excel" => OutputFormat::Excel,
"Json" => OutputFormat::Json,
other => OutputFormat::Unknown(crate::types::UnknownVariantValue(other.to_owned())),
}
}
}
impl std::str::FromStr for OutputFormat {
type Err = std::convert::Infallible;
fn from_str(s: &str) -> std::result::Result<Self, Self::Err> {
Ok(OutputFormat::from(s))
}
}
impl OutputFormat {
pub fn as_str(&self) -> &str {
match self {
OutputFormat::Excel => "Excel",
OutputFormat::Json => "Json",
OutputFormat::Unknown(value) => value.as_str(),
}
}
pub const fn values() -> &'static [&'static str] {
&["Excel", "Json"]
}
}
impl AsRef<str> for OutputFormat {
fn as_ref(&self) -> &str {
self.as_str()
}
}
#[allow(missing_docs)] #[non_exhaustive]
#[derive(
std::clone::Clone,
std::cmp::Eq,
std::cmp::Ord,
std::cmp::PartialEq,
std::cmp::PartialOrd,
std::fmt::Debug,
std::hash::Hash,
)]
pub enum DataSourceType {
#[allow(missing_docs)] Ads,
#[allow(missing_docs)] Mpa,
Unknown(crate::types::UnknownVariantValue),
}
impl std::convert::From<&str> for DataSourceType {
fn from(s: &str) -> Self {
match s {
"ApplicationDiscoveryService" => DataSourceType::Ads,
"MPA" => DataSourceType::Mpa,
other => DataSourceType::Unknown(crate::types::UnknownVariantValue(other.to_owned())),
}
}
}
impl std::str::FromStr for DataSourceType {
type Err = std::convert::Infallible;
fn from_str(s: &str) -> std::result::Result<Self, Self::Err> {
Ok(DataSourceType::from(s))
}
}
impl DataSourceType {
pub fn as_str(&self) -> &str {
match self {
DataSourceType::Ads => "ApplicationDiscoveryService",
DataSourceType::Mpa => "MPA",
DataSourceType::Unknown(value) => value.as_str(),
}
}
pub const fn values() -> &'static [&'static str] {
&["ApplicationDiscoveryService", "MPA"]
}
}
impl AsRef<str> for DataSourceType {
fn as_ref(&self) -> &str {
self.as_str()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct AssessmentTarget {
#[doc(hidden)]
pub condition: std::option::Option<crate::model::Condition>,
#[doc(hidden)]
pub name: std::option::Option<std::string::String>,
#[doc(hidden)]
pub values: std::option::Option<std::vec::Vec<std::string::String>>,
}
impl AssessmentTarget {
pub fn condition(&self) -> std::option::Option<&crate::model::Condition> {
self.condition.as_ref()
}
pub fn name(&self) -> std::option::Option<&str> {
self.name.as_deref()
}
pub fn values(&self) -> std::option::Option<&[std::string::String]> {
self.values.as_deref()
}
}
pub mod assessment_target {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) condition: std::option::Option<crate::model::Condition>,
pub(crate) name: std::option::Option<std::string::String>,
pub(crate) values: std::option::Option<std::vec::Vec<std::string::String>>,
}
impl Builder {
pub fn condition(mut self, input: crate::model::Condition) -> Self {
self.condition = Some(input);
self
}
pub fn set_condition(
mut self,
input: std::option::Option<crate::model::Condition>,
) -> Self {
self.condition = input;
self
}
pub fn name(mut self, input: impl Into<std::string::String>) -> Self {
self.name = Some(input.into());
self
}
pub fn set_name(mut self, input: std::option::Option<std::string::String>) -> Self {
self.name = input;
self
}
pub fn values(mut self, input: impl Into<std::string::String>) -> Self {
let mut v = self.values.unwrap_or_default();
v.push(input.into());
self.values = Some(v);
self
}
pub fn set_values(
mut self,
input: std::option::Option<std::vec::Vec<std::string::String>>,
) -> Self {
self.values = input;
self
}
pub fn build(self) -> crate::model::AssessmentTarget {
crate::model::AssessmentTarget {
condition: self.condition,
name: self.name,
values: self.values,
}
}
}
}
impl AssessmentTarget {
pub fn builder() -> crate::model::assessment_target::Builder {
crate::model::assessment_target::Builder::default()
}
}
#[allow(missing_docs)] #[non_exhaustive]
#[derive(
std::clone::Clone,
std::cmp::Eq,
std::cmp::Ord,
std::cmp::PartialEq,
std::cmp::PartialOrd,
std::fmt::Debug,
std::hash::Hash,
)]
pub enum Condition {
#[allow(missing_docs)] Contains,
#[allow(missing_docs)] Equals,
#[allow(missing_docs)] NotContains,
#[allow(missing_docs)] NotEquals,
Unknown(crate::types::UnknownVariantValue),
}
impl std::convert::From<&str> for Condition {
fn from(s: &str) -> Self {
match s {
"CONTAINS" => Condition::Contains,
"EQUALS" => Condition::Equals,
"NOT_CONTAINS" => Condition::NotContains,
"NOT_EQUALS" => Condition::NotEquals,
other => Condition::Unknown(crate::types::UnknownVariantValue(other.to_owned())),
}
}
}
impl std::str::FromStr for Condition {
type Err = std::convert::Infallible;
fn from_str(s: &str) -> std::result::Result<Self, Self::Err> {
Ok(Condition::from(s))
}
}
impl Condition {
pub fn as_str(&self) -> &str {
match self {
Condition::Contains => "CONTAINS",
Condition::Equals => "EQUALS",
Condition::NotContains => "NOT_CONTAINS",
Condition::NotEquals => "NOT_EQUALS",
Condition::Unknown(value) => value.as_str(),
}
}
pub const fn values() -> &'static [&'static str] {
&["CONTAINS", "EQUALS", "NOT_CONTAINS", "NOT_EQUALS"]
}
}
impl AsRef<str> for Condition {
fn as_ref(&self) -> &str {
self.as_str()
}
}
#[non_exhaustive]
#[derive(
std::clone::Clone,
std::cmp::Eq,
std::cmp::Ord,
std::cmp::PartialEq,
std::cmp::PartialOrd,
std::fmt::Debug,
std::hash::Hash,
)]
pub enum ApplicationMode {
#[allow(missing_docs)] All,
#[allow(missing_docs)] Known,
UnknownValue,
Unknown(crate::types::UnknownVariantValue),
}
impl std::convert::From<&str> for ApplicationMode {
fn from(s: &str) -> Self {
match s {
"ALL" => ApplicationMode::All,
"KNOWN" => ApplicationMode::Known,
"UNKNOWN" => ApplicationMode::UnknownValue,
other => ApplicationMode::Unknown(crate::types::UnknownVariantValue(other.to_owned())),
}
}
}
impl std::str::FromStr for ApplicationMode {
type Err = std::convert::Infallible;
fn from_str(s: &str) -> std::result::Result<Self, Self::Err> {
Ok(ApplicationMode::from(s))
}
}
impl ApplicationMode {
pub fn as_str(&self) -> &str {
match self {
ApplicationMode::All => "ALL",
ApplicationMode::Known => "KNOWN",
ApplicationMode::UnknownValue => "UNKNOWN",
ApplicationMode::Unknown(value) => value.as_str(),
}
}
pub const fn values() -> &'static [&'static str] {
&["ALL", "KNOWN", "UNKNOWN"]
}
}
impl AsRef<str> for ApplicationMode {
fn as_ref(&self) -> &str {
self.as_str()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct DatabasePreferences {
#[doc(hidden)]
pub database_management_preference:
std::option::Option<crate::model::DatabaseManagementPreference>,
#[doc(hidden)]
pub database_migration_preference:
std::option::Option<crate::model::DatabaseMigrationPreference>,
}
impl DatabasePreferences {
pub fn database_management_preference(
&self,
) -> std::option::Option<&crate::model::DatabaseManagementPreference> {
self.database_management_preference.as_ref()
}
pub fn database_migration_preference(
&self,
) -> std::option::Option<&crate::model::DatabaseMigrationPreference> {
self.database_migration_preference.as_ref()
}
}
pub mod database_preferences {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) database_management_preference:
std::option::Option<crate::model::DatabaseManagementPreference>,
pub(crate) database_migration_preference:
std::option::Option<crate::model::DatabaseMigrationPreference>,
}
impl Builder {
pub fn database_management_preference(
mut self,
input: crate::model::DatabaseManagementPreference,
) -> Self {
self.database_management_preference = Some(input);
self
}
pub fn set_database_management_preference(
mut self,
input: std::option::Option<crate::model::DatabaseManagementPreference>,
) -> Self {
self.database_management_preference = input;
self
}
pub fn database_migration_preference(
mut self,
input: crate::model::DatabaseMigrationPreference,
) -> Self {
self.database_migration_preference = Some(input);
self
}
pub fn set_database_migration_preference(
mut self,
input: std::option::Option<crate::model::DatabaseMigrationPreference>,
) -> Self {
self.database_migration_preference = input;
self
}
pub fn build(self) -> crate::model::DatabasePreferences {
crate::model::DatabasePreferences {
database_management_preference: self.database_management_preference,
database_migration_preference: self.database_migration_preference,
}
}
}
}
impl DatabasePreferences {
pub fn builder() -> crate::model::database_preferences::Builder {
crate::model::database_preferences::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub enum DatabaseMigrationPreference {
Heterogeneous(crate::model::Heterogeneous),
Homogeneous(crate::model::Homogeneous),
NoPreference(crate::model::NoDatabaseMigrationPreference),
#[non_exhaustive]
Unknown,
}
impl DatabaseMigrationPreference {
pub fn as_heterogeneous(&self) -> std::result::Result<&crate::model::Heterogeneous, &Self> {
if let DatabaseMigrationPreference::Heterogeneous(val) = &self {
Ok(val)
} else {
Err(self)
}
}
pub fn is_heterogeneous(&self) -> bool {
self.as_heterogeneous().is_ok()
}
pub fn as_homogeneous(&self) -> std::result::Result<&crate::model::Homogeneous, &Self> {
if let DatabaseMigrationPreference::Homogeneous(val) = &self {
Ok(val)
} else {
Err(self)
}
}
pub fn is_homogeneous(&self) -> bool {
self.as_homogeneous().is_ok()
}
pub fn as_no_preference(
&self,
) -> std::result::Result<&crate::model::NoDatabaseMigrationPreference, &Self> {
if let DatabaseMigrationPreference::NoPreference(val) = &self {
Ok(val)
} else {
Err(self)
}
}
pub fn is_no_preference(&self) -> bool {
self.as_no_preference().is_ok()
}
pub fn is_unknown(&self) -> bool {
matches!(self, Self::Unknown)
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct NoDatabaseMigrationPreference {
#[doc(hidden)]
pub target_database_engine:
std::option::Option<std::vec::Vec<crate::model::TargetDatabaseEngine>>,
}
impl NoDatabaseMigrationPreference {
pub fn target_database_engine(
&self,
) -> std::option::Option<&[crate::model::TargetDatabaseEngine]> {
self.target_database_engine.as_deref()
}
}
pub mod no_database_migration_preference {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) target_database_engine:
std::option::Option<std::vec::Vec<crate::model::TargetDatabaseEngine>>,
}
impl Builder {
pub fn target_database_engine(mut self, input: crate::model::TargetDatabaseEngine) -> Self {
let mut v = self.target_database_engine.unwrap_or_default();
v.push(input);
self.target_database_engine = Some(v);
self
}
pub fn set_target_database_engine(
mut self,
input: std::option::Option<std::vec::Vec<crate::model::TargetDatabaseEngine>>,
) -> Self {
self.target_database_engine = input;
self
}
pub fn build(self) -> crate::model::NoDatabaseMigrationPreference {
crate::model::NoDatabaseMigrationPreference {
target_database_engine: self.target_database_engine,
}
}
}
}
impl NoDatabaseMigrationPreference {
pub fn builder() -> crate::model::no_database_migration_preference::Builder {
crate::model::no_database_migration_preference::Builder::default()
}
}
#[allow(missing_docs)] #[non_exhaustive]
#[derive(
std::clone::Clone,
std::cmp::Eq,
std::cmp::Ord,
std::cmp::PartialEq,
std::cmp::PartialOrd,
std::fmt::Debug,
std::hash::Hash,
)]
pub enum TargetDatabaseEngine {
#[allow(missing_docs)] AwsPostgresql,
#[allow(missing_docs)] AmazonAurora,
#[allow(missing_docs)] Db2Luw,
#[allow(missing_docs)] MariaDb,
#[allow(missing_docs)] MicrosoftSqlServer,
#[allow(missing_docs)] MongoDb,
#[allow(missing_docs)] Mysql,
#[allow(missing_docs)] NoneSpecified,
#[allow(missing_docs)] OracleDatabase,
#[allow(missing_docs)] Sap,
Unknown(crate::types::UnknownVariantValue),
}
impl std::convert::From<&str> for TargetDatabaseEngine {
fn from(s: &str) -> Self {
match s {
"AWS PostgreSQL" => TargetDatabaseEngine::AwsPostgresql,
"Amazon Aurora" => TargetDatabaseEngine::AmazonAurora,
"Db2 LUW" => TargetDatabaseEngine::Db2Luw,
"MariaDB" => TargetDatabaseEngine::MariaDb,
"Microsoft SQL Server" => TargetDatabaseEngine::MicrosoftSqlServer,
"MongoDB" => TargetDatabaseEngine::MongoDb,
"MySQL" => TargetDatabaseEngine::Mysql,
"None specified" => TargetDatabaseEngine::NoneSpecified,
"Oracle Database" => TargetDatabaseEngine::OracleDatabase,
"SAP" => TargetDatabaseEngine::Sap,
other => {
TargetDatabaseEngine::Unknown(crate::types::UnknownVariantValue(other.to_owned()))
}
}
}
}
impl std::str::FromStr for TargetDatabaseEngine {
type Err = std::convert::Infallible;
fn from_str(s: &str) -> std::result::Result<Self, Self::Err> {
Ok(TargetDatabaseEngine::from(s))
}
}
impl TargetDatabaseEngine {
pub fn as_str(&self) -> &str {
match self {
TargetDatabaseEngine::AwsPostgresql => "AWS PostgreSQL",
TargetDatabaseEngine::AmazonAurora => "Amazon Aurora",
TargetDatabaseEngine::Db2Luw => "Db2 LUW",
TargetDatabaseEngine::MariaDb => "MariaDB",
TargetDatabaseEngine::MicrosoftSqlServer => "Microsoft SQL Server",
TargetDatabaseEngine::MongoDb => "MongoDB",
TargetDatabaseEngine::Mysql => "MySQL",
TargetDatabaseEngine::NoneSpecified => "None specified",
TargetDatabaseEngine::OracleDatabase => "Oracle Database",
TargetDatabaseEngine::Sap => "SAP",
TargetDatabaseEngine::Unknown(value) => value.as_str(),
}
}
pub const fn values() -> &'static [&'static str] {
&[
"AWS PostgreSQL",
"Amazon Aurora",
"Db2 LUW",
"MariaDB",
"Microsoft SQL Server",
"MongoDB",
"MySQL",
"None specified",
"Oracle Database",
"SAP",
]
}
}
impl AsRef<str> for TargetDatabaseEngine {
fn as_ref(&self) -> &str {
self.as_str()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Homogeneous {
#[doc(hidden)]
pub target_database_engine:
std::option::Option<std::vec::Vec<crate::model::HomogeneousTargetDatabaseEngine>>,
}
impl Homogeneous {
pub fn target_database_engine(
&self,
) -> std::option::Option<&[crate::model::HomogeneousTargetDatabaseEngine]> {
self.target_database_engine.as_deref()
}
}
pub mod homogeneous {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) target_database_engine:
std::option::Option<std::vec::Vec<crate::model::HomogeneousTargetDatabaseEngine>>,
}
impl Builder {
pub fn target_database_engine(
mut self,
input: crate::model::HomogeneousTargetDatabaseEngine,
) -> Self {
let mut v = self.target_database_engine.unwrap_or_default();
v.push(input);
self.target_database_engine = Some(v);
self
}
pub fn set_target_database_engine(
mut self,
input: std::option::Option<
std::vec::Vec<crate::model::HomogeneousTargetDatabaseEngine>,
>,
) -> Self {
self.target_database_engine = input;
self
}
pub fn build(self) -> crate::model::Homogeneous {
crate::model::Homogeneous {
target_database_engine: self.target_database_engine,
}
}
}
}
impl Homogeneous {
pub fn builder() -> crate::model::homogeneous::Builder {
crate::model::homogeneous::Builder::default()
}
}
#[allow(missing_docs)] #[non_exhaustive]
#[derive(
std::clone::Clone,
std::cmp::Eq,
std::cmp::Ord,
std::cmp::PartialEq,
std::cmp::PartialOrd,
std::fmt::Debug,
std::hash::Hash,
)]
pub enum HomogeneousTargetDatabaseEngine {
#[allow(missing_docs)] NoneSpecified,
Unknown(crate::types::UnknownVariantValue),
}
impl std::convert::From<&str> for HomogeneousTargetDatabaseEngine {
fn from(s: &str) -> Self {
match s {
"None specified" => HomogeneousTargetDatabaseEngine::NoneSpecified,
other => HomogeneousTargetDatabaseEngine::Unknown(crate::types::UnknownVariantValue(
other.to_owned(),
)),
}
}
}
impl std::str::FromStr for HomogeneousTargetDatabaseEngine {
type Err = std::convert::Infallible;
fn from_str(s: &str) -> std::result::Result<Self, Self::Err> {
Ok(HomogeneousTargetDatabaseEngine::from(s))
}
}
impl HomogeneousTargetDatabaseEngine {
pub fn as_str(&self) -> &str {
match self {
HomogeneousTargetDatabaseEngine::NoneSpecified => "None specified",
HomogeneousTargetDatabaseEngine::Unknown(value) => value.as_str(),
}
}
pub const fn values() -> &'static [&'static str] {
&["None specified"]
}
}
impl AsRef<str> for HomogeneousTargetDatabaseEngine {
fn as_ref(&self) -> &str {
self.as_str()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Heterogeneous {
#[doc(hidden)]
pub target_database_engine:
std::option::Option<std::vec::Vec<crate::model::HeterogeneousTargetDatabaseEngine>>,
}
impl Heterogeneous {
pub fn target_database_engine(
&self,
) -> std::option::Option<&[crate::model::HeterogeneousTargetDatabaseEngine]> {
self.target_database_engine.as_deref()
}
}
pub mod heterogeneous {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) target_database_engine:
std::option::Option<std::vec::Vec<crate::model::HeterogeneousTargetDatabaseEngine>>,
}
impl Builder {
pub fn target_database_engine(
mut self,
input: crate::model::HeterogeneousTargetDatabaseEngine,
) -> Self {
let mut v = self.target_database_engine.unwrap_or_default();
v.push(input);
self.target_database_engine = Some(v);
self
}
pub fn set_target_database_engine(
mut self,
input: std::option::Option<
std::vec::Vec<crate::model::HeterogeneousTargetDatabaseEngine>,
>,
) -> Self {
self.target_database_engine = input;
self
}
pub fn build(self) -> crate::model::Heterogeneous {
crate::model::Heterogeneous {
target_database_engine: self.target_database_engine,
}
}
}
}
impl Heterogeneous {
pub fn builder() -> crate::model::heterogeneous::Builder {
crate::model::heterogeneous::Builder::default()
}
}
#[allow(missing_docs)] #[non_exhaustive]
#[derive(
std::clone::Clone,
std::cmp::Eq,
std::cmp::Ord,
std::cmp::PartialEq,
std::cmp::PartialOrd,
std::fmt::Debug,
std::hash::Hash,
)]
pub enum HeterogeneousTargetDatabaseEngine {
#[allow(missing_docs)] AwsPostgresql,
#[allow(missing_docs)] AmazonAurora,
#[allow(missing_docs)] Db2Luw,
#[allow(missing_docs)] MariaDb,
#[allow(missing_docs)] MicrosoftSqlServer,
#[allow(missing_docs)] MongoDb,
#[allow(missing_docs)] Mysql,
#[allow(missing_docs)] NoneSpecified,
#[allow(missing_docs)] OracleDatabase,
#[allow(missing_docs)] Sap,
Unknown(crate::types::UnknownVariantValue),
}
impl std::convert::From<&str> for HeterogeneousTargetDatabaseEngine {
fn from(s: &str) -> Self {
match s {
"AWS PostgreSQL" => HeterogeneousTargetDatabaseEngine::AwsPostgresql,
"Amazon Aurora" => HeterogeneousTargetDatabaseEngine::AmazonAurora,
"Db2 LUW" => HeterogeneousTargetDatabaseEngine::Db2Luw,
"MariaDB" => HeterogeneousTargetDatabaseEngine::MariaDb,
"Microsoft SQL Server" => HeterogeneousTargetDatabaseEngine::MicrosoftSqlServer,
"MongoDB" => HeterogeneousTargetDatabaseEngine::MongoDb,
"MySQL" => HeterogeneousTargetDatabaseEngine::Mysql,
"None specified" => HeterogeneousTargetDatabaseEngine::NoneSpecified,
"Oracle Database" => HeterogeneousTargetDatabaseEngine::OracleDatabase,
"SAP" => HeterogeneousTargetDatabaseEngine::Sap,
other => HeterogeneousTargetDatabaseEngine::Unknown(crate::types::UnknownVariantValue(
other.to_owned(),
)),
}
}
}
impl std::str::FromStr for HeterogeneousTargetDatabaseEngine {
type Err = std::convert::Infallible;
fn from_str(s: &str) -> std::result::Result<Self, Self::Err> {
Ok(HeterogeneousTargetDatabaseEngine::from(s))
}
}
impl HeterogeneousTargetDatabaseEngine {
pub fn as_str(&self) -> &str {
match self {
HeterogeneousTargetDatabaseEngine::AwsPostgresql => "AWS PostgreSQL",
HeterogeneousTargetDatabaseEngine::AmazonAurora => "Amazon Aurora",
HeterogeneousTargetDatabaseEngine::Db2Luw => "Db2 LUW",
HeterogeneousTargetDatabaseEngine::MariaDb => "MariaDB",
HeterogeneousTargetDatabaseEngine::MicrosoftSqlServer => "Microsoft SQL Server",
HeterogeneousTargetDatabaseEngine::MongoDb => "MongoDB",
HeterogeneousTargetDatabaseEngine::Mysql => "MySQL",
HeterogeneousTargetDatabaseEngine::NoneSpecified => "None specified",
HeterogeneousTargetDatabaseEngine::OracleDatabase => "Oracle Database",
HeterogeneousTargetDatabaseEngine::Sap => "SAP",
HeterogeneousTargetDatabaseEngine::Unknown(value) => value.as_str(),
}
}
pub const fn values() -> &'static [&'static str] {
&[
"AWS PostgreSQL",
"Amazon Aurora",
"Db2 LUW",
"MariaDB",
"Microsoft SQL Server",
"MongoDB",
"MySQL",
"None specified",
"Oracle Database",
"SAP",
]
}
}
impl AsRef<str> for HeterogeneousTargetDatabaseEngine {
fn as_ref(&self) -> &str {
self.as_str()
}
}
#[allow(missing_docs)] #[non_exhaustive]
#[derive(
std::clone::Clone,
std::cmp::Eq,
std::cmp::Ord,
std::cmp::PartialEq,
std::cmp::PartialOrd,
std::fmt::Debug,
std::hash::Hash,
)]
pub enum DatabaseManagementPreference {
#[allow(missing_docs)] AwsManaged,
#[allow(missing_docs)] NoPreference,
#[allow(missing_docs)] SelfManage,
Unknown(crate::types::UnknownVariantValue),
}
impl std::convert::From<&str> for DatabaseManagementPreference {
fn from(s: &str) -> Self {
match s {
"AWS-managed" => DatabaseManagementPreference::AwsManaged,
"No preference" => DatabaseManagementPreference::NoPreference,
"Self-manage" => DatabaseManagementPreference::SelfManage,
other => DatabaseManagementPreference::Unknown(crate::types::UnknownVariantValue(
other.to_owned(),
)),
}
}
}
impl std::str::FromStr for DatabaseManagementPreference {
type Err = std::convert::Infallible;
fn from_str(s: &str) -> std::result::Result<Self, Self::Err> {
Ok(DatabaseManagementPreference::from(s))
}
}
impl DatabaseManagementPreference {
pub fn as_str(&self) -> &str {
match self {
DatabaseManagementPreference::AwsManaged => "AWS-managed",
DatabaseManagementPreference::NoPreference => "No preference",
DatabaseManagementPreference::SelfManage => "Self-manage",
DatabaseManagementPreference::Unknown(value) => value.as_str(),
}
}
pub const fn values() -> &'static [&'static str] {
&["AWS-managed", "No preference", "Self-manage"]
}
}
impl AsRef<str> for DatabaseManagementPreference {
fn as_ref(&self) -> &str {
self.as_str()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct ApplicationPreferences {
#[doc(hidden)]
pub management_preference: std::option::Option<crate::model::ManagementPreference>,
}
impl ApplicationPreferences {
pub fn management_preference(
&self,
) -> std::option::Option<&crate::model::ManagementPreference> {
self.management_preference.as_ref()
}
}
pub mod application_preferences {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) management_preference: std::option::Option<crate::model::ManagementPreference>,
}
impl Builder {
pub fn management_preference(mut self, input: crate::model::ManagementPreference) -> Self {
self.management_preference = Some(input);
self
}
pub fn set_management_preference(
mut self,
input: std::option::Option<crate::model::ManagementPreference>,
) -> Self {
self.management_preference = input;
self
}
pub fn build(self) -> crate::model::ApplicationPreferences {
crate::model::ApplicationPreferences {
management_preference: self.management_preference,
}
}
}
}
impl ApplicationPreferences {
pub fn builder() -> crate::model::application_preferences::Builder {
crate::model::application_preferences::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub enum ManagementPreference {
AwsManagedResources(crate::model::AwsManagedResources),
NoPreference(crate::model::NoManagementPreference),
SelfManageResources(crate::model::SelfManageResources),
#[non_exhaustive]
Unknown,
}
impl ManagementPreference {
pub fn as_aws_managed_resources(
&self,
) -> std::result::Result<&crate::model::AwsManagedResources, &Self> {
if let ManagementPreference::AwsManagedResources(val) = &self {
Ok(val)
} else {
Err(self)
}
}
pub fn is_aws_managed_resources(&self) -> bool {
self.as_aws_managed_resources().is_ok()
}
pub fn as_no_preference(
&self,
) -> std::result::Result<&crate::model::NoManagementPreference, &Self> {
if let ManagementPreference::NoPreference(val) = &self {
Ok(val)
} else {
Err(self)
}
}
pub fn is_no_preference(&self) -> bool {
self.as_no_preference().is_ok()
}
pub fn as_self_manage_resources(
&self,
) -> std::result::Result<&crate::model::SelfManageResources, &Self> {
if let ManagementPreference::SelfManageResources(val) = &self {
Ok(val)
} else {
Err(self)
}
}
pub fn is_self_manage_resources(&self) -> bool {
self.as_self_manage_resources().is_ok()
}
pub fn is_unknown(&self) -> bool {
matches!(self, Self::Unknown)
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct NoManagementPreference {
#[doc(hidden)]
pub target_destination:
std::option::Option<std::vec::Vec<crate::model::NoPreferenceTargetDestination>>,
}
impl NoManagementPreference {
pub fn target_destination(
&self,
) -> std::option::Option<&[crate::model::NoPreferenceTargetDestination]> {
self.target_destination.as_deref()
}
}
pub mod no_management_preference {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) target_destination:
std::option::Option<std::vec::Vec<crate::model::NoPreferenceTargetDestination>>,
}
impl Builder {
pub fn target_destination(
mut self,
input: crate::model::NoPreferenceTargetDestination,
) -> Self {
let mut v = self.target_destination.unwrap_or_default();
v.push(input);
self.target_destination = Some(v);
self
}
pub fn set_target_destination(
mut self,
input: std::option::Option<std::vec::Vec<crate::model::NoPreferenceTargetDestination>>,
) -> Self {
self.target_destination = input;
self
}
pub fn build(self) -> crate::model::NoManagementPreference {
crate::model::NoManagementPreference {
target_destination: self.target_destination,
}
}
}
}
impl NoManagementPreference {
pub fn builder() -> crate::model::no_management_preference::Builder {
crate::model::no_management_preference::Builder::default()
}
}
#[allow(missing_docs)] #[non_exhaustive]
#[derive(
std::clone::Clone,
std::cmp::Eq,
std::cmp::Ord,
std::cmp::PartialEq,
std::cmp::PartialOrd,
std::fmt::Debug,
std::hash::Hash,
)]
pub enum NoPreferenceTargetDestination {
#[allow(missing_docs)] AwsElasticBeanstalk,
#[allow(missing_docs)] AwsFargate,
#[allow(missing_docs)] AmazonElasticCloudCompute,
#[allow(missing_docs)] AmazonElasticContainerService,
#[allow(missing_docs)] AmazonElasticKubernetesService,
#[allow(missing_docs)] NoneSpecified,
Unknown(crate::types::UnknownVariantValue),
}
impl std::convert::From<&str> for NoPreferenceTargetDestination {
fn from(s: &str) -> Self {
match s {
"AWS Elastic BeanStalk" => NoPreferenceTargetDestination::AwsElasticBeanstalk,
"AWS Fargate" => NoPreferenceTargetDestination::AwsFargate,
"Amazon Elastic Cloud Compute (EC2)" => {
NoPreferenceTargetDestination::AmazonElasticCloudCompute
}
"Amazon Elastic Container Service (ECS)" => {
NoPreferenceTargetDestination::AmazonElasticContainerService
}
"Amazon Elastic Kubernetes Service (EKS)" => {
NoPreferenceTargetDestination::AmazonElasticKubernetesService
}
"None specified" => NoPreferenceTargetDestination::NoneSpecified,
other => NoPreferenceTargetDestination::Unknown(crate::types::UnknownVariantValue(
other.to_owned(),
)),
}
}
}
impl std::str::FromStr for NoPreferenceTargetDestination {
type Err = std::convert::Infallible;
fn from_str(s: &str) -> std::result::Result<Self, Self::Err> {
Ok(NoPreferenceTargetDestination::from(s))
}
}
impl NoPreferenceTargetDestination {
pub fn as_str(&self) -> &str {
match self {
NoPreferenceTargetDestination::AwsElasticBeanstalk => "AWS Elastic BeanStalk",
NoPreferenceTargetDestination::AwsFargate => "AWS Fargate",
NoPreferenceTargetDestination::AmazonElasticCloudCompute => {
"Amazon Elastic Cloud Compute (EC2)"
}
NoPreferenceTargetDestination::AmazonElasticContainerService => {
"Amazon Elastic Container Service (ECS)"
}
NoPreferenceTargetDestination::AmazonElasticKubernetesService => {
"Amazon Elastic Kubernetes Service (EKS)"
}
NoPreferenceTargetDestination::NoneSpecified => "None specified",
NoPreferenceTargetDestination::Unknown(value) => value.as_str(),
}
}
pub const fn values() -> &'static [&'static str] {
&[
"AWS Elastic BeanStalk",
"AWS Fargate",
"Amazon Elastic Cloud Compute (EC2)",
"Amazon Elastic Container Service (ECS)",
"Amazon Elastic Kubernetes Service (EKS)",
"None specified",
]
}
}
impl AsRef<str> for NoPreferenceTargetDestination {
fn as_ref(&self) -> &str {
self.as_str()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct SelfManageResources {
#[doc(hidden)]
pub target_destination:
std::option::Option<std::vec::Vec<crate::model::SelfManageTargetDestination>>,
}
impl SelfManageResources {
pub fn target_destination(
&self,
) -> std::option::Option<&[crate::model::SelfManageTargetDestination]> {
self.target_destination.as_deref()
}
}
pub mod self_manage_resources {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) target_destination:
std::option::Option<std::vec::Vec<crate::model::SelfManageTargetDestination>>,
}
impl Builder {
pub fn target_destination(
mut self,
input: crate::model::SelfManageTargetDestination,
) -> Self {
let mut v = self.target_destination.unwrap_or_default();
v.push(input);
self.target_destination = Some(v);
self
}
pub fn set_target_destination(
mut self,
input: std::option::Option<std::vec::Vec<crate::model::SelfManageTargetDestination>>,
) -> Self {
self.target_destination = input;
self
}
pub fn build(self) -> crate::model::SelfManageResources {
crate::model::SelfManageResources {
target_destination: self.target_destination,
}
}
}
}
impl SelfManageResources {
pub fn builder() -> crate::model::self_manage_resources::Builder {
crate::model::self_manage_resources::Builder::default()
}
}
#[allow(missing_docs)] #[non_exhaustive]
#[derive(
std::clone::Clone,
std::cmp::Eq,
std::cmp::Ord,
std::cmp::PartialEq,
std::cmp::PartialOrd,
std::fmt::Debug,
std::hash::Hash,
)]
pub enum SelfManageTargetDestination {
#[allow(missing_docs)] AmazonElasticCloudCompute,
#[allow(missing_docs)] AmazonElasticContainerService,
#[allow(missing_docs)] AmazonElasticKubernetesService,
#[allow(missing_docs)] NoneSpecified,
Unknown(crate::types::UnknownVariantValue),
}
impl std::convert::From<&str> for SelfManageTargetDestination {
fn from(s: &str) -> Self {
match s {
"Amazon Elastic Cloud Compute (EC2)" => {
SelfManageTargetDestination::AmazonElasticCloudCompute
}
"Amazon Elastic Container Service (ECS)" => {
SelfManageTargetDestination::AmazonElasticContainerService
}
"Amazon Elastic Kubernetes Service (EKS)" => {
SelfManageTargetDestination::AmazonElasticKubernetesService
}
"None specified" => SelfManageTargetDestination::NoneSpecified,
other => SelfManageTargetDestination::Unknown(crate::types::UnknownVariantValue(
other.to_owned(),
)),
}
}
}
impl std::str::FromStr for SelfManageTargetDestination {
type Err = std::convert::Infallible;
fn from_str(s: &str) -> std::result::Result<Self, Self::Err> {
Ok(SelfManageTargetDestination::from(s))
}
}
impl SelfManageTargetDestination {
pub fn as_str(&self) -> &str {
match self {
SelfManageTargetDestination::AmazonElasticCloudCompute => {
"Amazon Elastic Cloud Compute (EC2)"
}
SelfManageTargetDestination::AmazonElasticContainerService => {
"Amazon Elastic Container Service (ECS)"
}
SelfManageTargetDestination::AmazonElasticKubernetesService => {
"Amazon Elastic Kubernetes Service (EKS)"
}
SelfManageTargetDestination::NoneSpecified => "None specified",
SelfManageTargetDestination::Unknown(value) => value.as_str(),
}
}
pub const fn values() -> &'static [&'static str] {
&[
"Amazon Elastic Cloud Compute (EC2)",
"Amazon Elastic Container Service (ECS)",
"Amazon Elastic Kubernetes Service (EKS)",
"None specified",
]
}
}
impl AsRef<str> for SelfManageTargetDestination {
fn as_ref(&self) -> &str {
self.as_str()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct AwsManagedResources {
#[doc(hidden)]
pub target_destination:
std::option::Option<std::vec::Vec<crate::model::AwsManagedTargetDestination>>,
}
impl AwsManagedResources {
pub fn target_destination(
&self,
) -> std::option::Option<&[crate::model::AwsManagedTargetDestination]> {
self.target_destination.as_deref()
}
}
pub mod aws_managed_resources {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) target_destination:
std::option::Option<std::vec::Vec<crate::model::AwsManagedTargetDestination>>,
}
impl Builder {
pub fn target_destination(
mut self,
input: crate::model::AwsManagedTargetDestination,
) -> Self {
let mut v = self.target_destination.unwrap_or_default();
v.push(input);
self.target_destination = Some(v);
self
}
pub fn set_target_destination(
mut self,
input: std::option::Option<std::vec::Vec<crate::model::AwsManagedTargetDestination>>,
) -> Self {
self.target_destination = input;
self
}
pub fn build(self) -> crate::model::AwsManagedResources {
crate::model::AwsManagedResources {
target_destination: self.target_destination,
}
}
}
}
impl AwsManagedResources {
pub fn builder() -> crate::model::aws_managed_resources::Builder {
crate::model::aws_managed_resources::Builder::default()
}
}
#[allow(missing_docs)] #[non_exhaustive]
#[derive(
std::clone::Clone,
std::cmp::Eq,
std::cmp::Ord,
std::cmp::PartialEq,
std::cmp::PartialOrd,
std::fmt::Debug,
std::hash::Hash,
)]
pub enum AwsManagedTargetDestination {
#[allow(missing_docs)] AwsElasticBeanstalk,
#[allow(missing_docs)] AwsFargate,
#[allow(missing_docs)] NoneSpecified,
Unknown(crate::types::UnknownVariantValue),
}
impl std::convert::From<&str> for AwsManagedTargetDestination {
fn from(s: &str) -> Self {
match s {
"AWS Elastic BeanStalk" => AwsManagedTargetDestination::AwsElasticBeanstalk,
"AWS Fargate" => AwsManagedTargetDestination::AwsFargate,
"None specified" => AwsManagedTargetDestination::NoneSpecified,
other => AwsManagedTargetDestination::Unknown(crate::types::UnknownVariantValue(
other.to_owned(),
)),
}
}
}
impl std::str::FromStr for AwsManagedTargetDestination {
type Err = std::convert::Infallible;
fn from_str(s: &str) -> std::result::Result<Self, Self::Err> {
Ok(AwsManagedTargetDestination::from(s))
}
}
impl AwsManagedTargetDestination {
pub fn as_str(&self) -> &str {
match self {
AwsManagedTargetDestination::AwsElasticBeanstalk => "AWS Elastic BeanStalk",
AwsManagedTargetDestination::AwsFargate => "AWS Fargate",
AwsManagedTargetDestination::NoneSpecified => "None specified",
AwsManagedTargetDestination::Unknown(value) => value.as_str(),
}
}
pub const fn values() -> &'static [&'static str] {
&["AWS Elastic BeanStalk", "AWS Fargate", "None specified"]
}
}
impl AsRef<str> for AwsManagedTargetDestination {
fn as_ref(&self) -> &str {
self.as_str()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct PrioritizeBusinessGoals {
#[doc(hidden)]
pub business_goals: std::option::Option<crate::model::BusinessGoals>,
}
impl PrioritizeBusinessGoals {
pub fn business_goals(&self) -> std::option::Option<&crate::model::BusinessGoals> {
self.business_goals.as_ref()
}
}
pub mod prioritize_business_goals {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) business_goals: std::option::Option<crate::model::BusinessGoals>,
}
impl Builder {
pub fn business_goals(mut self, input: crate::model::BusinessGoals) -> Self {
self.business_goals = Some(input);
self
}
pub fn set_business_goals(
mut self,
input: std::option::Option<crate::model::BusinessGoals>,
) -> Self {
self.business_goals = input;
self
}
pub fn build(self) -> crate::model::PrioritizeBusinessGoals {
crate::model::PrioritizeBusinessGoals {
business_goals: self.business_goals,
}
}
}
}
impl PrioritizeBusinessGoals {
pub fn builder() -> crate::model::prioritize_business_goals::Builder {
crate::model::prioritize_business_goals::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct BusinessGoals {
#[doc(hidden)]
pub speed_of_migration: std::option::Option<i32>,
#[doc(hidden)]
pub reduce_operational_overhead_with_managed_services: std::option::Option<i32>,
#[doc(hidden)]
pub modernize_infrastructure_with_cloud_native_technologies: std::option::Option<i32>,
#[doc(hidden)]
pub license_cost_reduction: std::option::Option<i32>,
}
impl BusinessGoals {
pub fn speed_of_migration(&self) -> std::option::Option<i32> {
self.speed_of_migration
}
pub fn reduce_operational_overhead_with_managed_services(&self) -> std::option::Option<i32> {
self.reduce_operational_overhead_with_managed_services
}
pub fn modernize_infrastructure_with_cloud_native_technologies(
&self,
) -> std::option::Option<i32> {
self.modernize_infrastructure_with_cloud_native_technologies
}
pub fn license_cost_reduction(&self) -> std::option::Option<i32> {
self.license_cost_reduction
}
}
pub mod business_goals {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) speed_of_migration: std::option::Option<i32>,
pub(crate) reduce_operational_overhead_with_managed_services: std::option::Option<i32>,
pub(crate) modernize_infrastructure_with_cloud_native_technologies:
std::option::Option<i32>,
pub(crate) license_cost_reduction: std::option::Option<i32>,
}
impl Builder {
pub fn speed_of_migration(mut self, input: i32) -> Self {
self.speed_of_migration = Some(input);
self
}
pub fn set_speed_of_migration(mut self, input: std::option::Option<i32>) -> Self {
self.speed_of_migration = input;
self
}
pub fn reduce_operational_overhead_with_managed_services(mut self, input: i32) -> Self {
self.reduce_operational_overhead_with_managed_services = Some(input);
self
}
pub fn set_reduce_operational_overhead_with_managed_services(
mut self,
input: std::option::Option<i32>,
) -> Self {
self.reduce_operational_overhead_with_managed_services = input;
self
}
pub fn modernize_infrastructure_with_cloud_native_technologies(
mut self,
input: i32,
) -> Self {
self.modernize_infrastructure_with_cloud_native_technologies = Some(input);
self
}
pub fn set_modernize_infrastructure_with_cloud_native_technologies(
mut self,
input: std::option::Option<i32>,
) -> Self {
self.modernize_infrastructure_with_cloud_native_technologies = input;
self
}
pub fn license_cost_reduction(mut self, input: i32) -> Self {
self.license_cost_reduction = Some(input);
self
}
pub fn set_license_cost_reduction(mut self, input: std::option::Option<i32>) -> Self {
self.license_cost_reduction = input;
self
}
pub fn build(self) -> crate::model::BusinessGoals {
crate::model::BusinessGoals {
speed_of_migration: self.speed_of_migration,
reduce_operational_overhead_with_managed_services: self
.reduce_operational_overhead_with_managed_services,
modernize_infrastructure_with_cloud_native_technologies: self
.modernize_infrastructure_with_cloud_native_technologies,
license_cost_reduction: self.license_cost_reduction,
}
}
}
}
impl BusinessGoals {
pub fn builder() -> crate::model::business_goals::Builder {
crate::model::business_goals::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct ServerDetail {
#[doc(hidden)]
pub id: std::option::Option<std::string::String>,
#[doc(hidden)]
pub name: std::option::Option<std::string::String>,
#[doc(hidden)]
pub recommendation_set: std::option::Option<crate::model::RecommendationSet>,
#[doc(hidden)]
pub data_collection_status: std::option::Option<crate::model::RunTimeAssessmentStatus>,
#[doc(hidden)]
pub status_message: std::option::Option<std::string::String>,
#[doc(hidden)]
pub list_antipattern_severity_summary:
std::option::Option<std::vec::Vec<crate::model::AntipatternSeveritySummary>>,
#[doc(hidden)]
pub system_info: std::option::Option<crate::model::SystemInfo>,
#[doc(hidden)]
pub application_component_strategy_summary:
std::option::Option<std::vec::Vec<crate::model::StrategySummary>>,
#[doc(hidden)]
pub antipattern_report_s3_object: std::option::Option<crate::model::S3Object>,
#[doc(hidden)]
pub antipattern_report_status: std::option::Option<crate::model::AntipatternReportStatus>,
#[doc(hidden)]
pub antipattern_report_status_message: std::option::Option<std::string::String>,
#[doc(hidden)]
pub server_type: std::option::Option<std::string::String>,
#[doc(hidden)]
pub last_analyzed_timestamp: std::option::Option<aws_smithy_types::DateTime>,
#[doc(hidden)]
pub server_error: std::option::Option<crate::model::ServerError>,
}
impl ServerDetail {
pub fn id(&self) -> std::option::Option<&str> {
self.id.as_deref()
}
pub fn name(&self) -> std::option::Option<&str> {
self.name.as_deref()
}
pub fn recommendation_set(&self) -> std::option::Option<&crate::model::RecommendationSet> {
self.recommendation_set.as_ref()
}
pub fn data_collection_status(
&self,
) -> std::option::Option<&crate::model::RunTimeAssessmentStatus> {
self.data_collection_status.as_ref()
}
pub fn status_message(&self) -> std::option::Option<&str> {
self.status_message.as_deref()
}
pub fn list_antipattern_severity_summary(
&self,
) -> std::option::Option<&[crate::model::AntipatternSeveritySummary]> {
self.list_antipattern_severity_summary.as_deref()
}
pub fn system_info(&self) -> std::option::Option<&crate::model::SystemInfo> {
self.system_info.as_ref()
}
pub fn application_component_strategy_summary(
&self,
) -> std::option::Option<&[crate::model::StrategySummary]> {
self.application_component_strategy_summary.as_deref()
}
pub fn antipattern_report_s3_object(&self) -> std::option::Option<&crate::model::S3Object> {
self.antipattern_report_s3_object.as_ref()
}
pub fn antipattern_report_status(
&self,
) -> std::option::Option<&crate::model::AntipatternReportStatus> {
self.antipattern_report_status.as_ref()
}
pub fn antipattern_report_status_message(&self) -> std::option::Option<&str> {
self.antipattern_report_status_message.as_deref()
}
pub fn server_type(&self) -> std::option::Option<&str> {
self.server_type.as_deref()
}
pub fn last_analyzed_timestamp(&self) -> std::option::Option<&aws_smithy_types::DateTime> {
self.last_analyzed_timestamp.as_ref()
}
pub fn server_error(&self) -> std::option::Option<&crate::model::ServerError> {
self.server_error.as_ref()
}
}
pub mod server_detail {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) id: std::option::Option<std::string::String>,
pub(crate) name: std::option::Option<std::string::String>,
pub(crate) recommendation_set: std::option::Option<crate::model::RecommendationSet>,
pub(crate) data_collection_status:
std::option::Option<crate::model::RunTimeAssessmentStatus>,
pub(crate) status_message: std::option::Option<std::string::String>,
pub(crate) list_antipattern_severity_summary:
std::option::Option<std::vec::Vec<crate::model::AntipatternSeveritySummary>>,
pub(crate) system_info: std::option::Option<crate::model::SystemInfo>,
pub(crate) application_component_strategy_summary:
std::option::Option<std::vec::Vec<crate::model::StrategySummary>>,
pub(crate) antipattern_report_s3_object: std::option::Option<crate::model::S3Object>,
pub(crate) antipattern_report_status:
std::option::Option<crate::model::AntipatternReportStatus>,
pub(crate) antipattern_report_status_message: std::option::Option<std::string::String>,
pub(crate) server_type: std::option::Option<std::string::String>,
pub(crate) last_analyzed_timestamp: std::option::Option<aws_smithy_types::DateTime>,
pub(crate) server_error: std::option::Option<crate::model::ServerError>,
}
impl Builder {
pub fn id(mut self, input: impl Into<std::string::String>) -> Self {
self.id = Some(input.into());
self
}
pub fn set_id(mut self, input: std::option::Option<std::string::String>) -> Self {
self.id = input;
self
}
pub fn name(mut self, input: impl Into<std::string::String>) -> Self {
self.name = Some(input.into());
self
}
pub fn set_name(mut self, input: std::option::Option<std::string::String>) -> Self {
self.name = input;
self
}
pub fn recommendation_set(mut self, input: crate::model::RecommendationSet) -> Self {
self.recommendation_set = Some(input);
self
}
pub fn set_recommendation_set(
mut self,
input: std::option::Option<crate::model::RecommendationSet>,
) -> Self {
self.recommendation_set = input;
self
}
pub fn data_collection_status(
mut self,
input: crate::model::RunTimeAssessmentStatus,
) -> Self {
self.data_collection_status = Some(input);
self
}
pub fn set_data_collection_status(
mut self,
input: std::option::Option<crate::model::RunTimeAssessmentStatus>,
) -> Self {
self.data_collection_status = input;
self
}
pub fn status_message(mut self, input: impl Into<std::string::String>) -> Self {
self.status_message = Some(input.into());
self
}
pub fn set_status_message(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.status_message = input;
self
}
pub fn list_antipattern_severity_summary(
mut self,
input: crate::model::AntipatternSeveritySummary,
) -> Self {
let mut v = self.list_antipattern_severity_summary.unwrap_or_default();
v.push(input);
self.list_antipattern_severity_summary = Some(v);
self
}
pub fn set_list_antipattern_severity_summary(
mut self,
input: std::option::Option<std::vec::Vec<crate::model::AntipatternSeveritySummary>>,
) -> Self {
self.list_antipattern_severity_summary = input;
self
}
pub fn system_info(mut self, input: crate::model::SystemInfo) -> Self {
self.system_info = Some(input);
self
}
pub fn set_system_info(
mut self,
input: std::option::Option<crate::model::SystemInfo>,
) -> Self {
self.system_info = input;
self
}
pub fn application_component_strategy_summary(
mut self,
input: crate::model::StrategySummary,
) -> Self {
let mut v = self
.application_component_strategy_summary
.unwrap_or_default();
v.push(input);
self.application_component_strategy_summary = Some(v);
self
}
pub fn set_application_component_strategy_summary(
mut self,
input: std::option::Option<std::vec::Vec<crate::model::StrategySummary>>,
) -> Self {
self.application_component_strategy_summary = input;
self
}
pub fn antipattern_report_s3_object(mut self, input: crate::model::S3Object) -> Self {
self.antipattern_report_s3_object = Some(input);
self
}
pub fn set_antipattern_report_s3_object(
mut self,
input: std::option::Option<crate::model::S3Object>,
) -> Self {
self.antipattern_report_s3_object = input;
self
}
pub fn antipattern_report_status(
mut self,
input: crate::model::AntipatternReportStatus,
) -> Self {
self.antipattern_report_status = Some(input);
self
}
pub fn set_antipattern_report_status(
mut self,
input: std::option::Option<crate::model::AntipatternReportStatus>,
) -> Self {
self.antipattern_report_status = input;
self
}
pub fn antipattern_report_status_message(
mut self,
input: impl Into<std::string::String>,
) -> Self {
self.antipattern_report_status_message = Some(input.into());
self
}
pub fn set_antipattern_report_status_message(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.antipattern_report_status_message = input;
self
}
pub fn server_type(mut self, input: impl Into<std::string::String>) -> Self {
self.server_type = Some(input.into());
self
}
pub fn set_server_type(mut self, input: std::option::Option<std::string::String>) -> Self {
self.server_type = input;
self
}
pub fn last_analyzed_timestamp(mut self, input: aws_smithy_types::DateTime) -> Self {
self.last_analyzed_timestamp = Some(input);
self
}
pub fn set_last_analyzed_timestamp(
mut self,
input: std::option::Option<aws_smithy_types::DateTime>,
) -> Self {
self.last_analyzed_timestamp = input;
self
}
pub fn server_error(mut self, input: crate::model::ServerError) -> Self {
self.server_error = Some(input);
self
}
pub fn set_server_error(
mut self,
input: std::option::Option<crate::model::ServerError>,
) -> Self {
self.server_error = input;
self
}
pub fn build(self) -> crate::model::ServerDetail {
crate::model::ServerDetail {
id: self.id,
name: self.name,
recommendation_set: self.recommendation_set,
data_collection_status: self.data_collection_status,
status_message: self.status_message,
list_antipattern_severity_summary: self.list_antipattern_severity_summary,
system_info: self.system_info,
application_component_strategy_summary: self.application_component_strategy_summary,
antipattern_report_s3_object: self.antipattern_report_s3_object,
antipattern_report_status: self.antipattern_report_status,
antipattern_report_status_message: self.antipattern_report_status_message,
server_type: self.server_type,
last_analyzed_timestamp: self.last_analyzed_timestamp,
server_error: self.server_error,
}
}
}
}
impl ServerDetail {
pub fn builder() -> crate::model::server_detail::Builder {
crate::model::server_detail::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct ServerError {
#[doc(hidden)]
pub server_error_category: std::option::Option<crate::model::ServerErrorCategory>,
}
impl ServerError {
pub fn server_error_category(&self) -> std::option::Option<&crate::model::ServerErrorCategory> {
self.server_error_category.as_ref()
}
}
pub mod server_error {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) server_error_category: std::option::Option<crate::model::ServerErrorCategory>,
}
impl Builder {
pub fn server_error_category(mut self, input: crate::model::ServerErrorCategory) -> Self {
self.server_error_category = Some(input);
self
}
pub fn set_server_error_category(
mut self,
input: std::option::Option<crate::model::ServerErrorCategory>,
) -> Self {
self.server_error_category = input;
self
}
pub fn build(self) -> crate::model::ServerError {
crate::model::ServerError {
server_error_category: self.server_error_category,
}
}
}
}
impl ServerError {
pub fn builder() -> crate::model::server_error::Builder {
crate::model::server_error::Builder::default()
}
}
#[allow(missing_docs)] #[non_exhaustive]
#[derive(
std::clone::Clone,
std::cmp::Eq,
std::cmp::Ord,
std::cmp::PartialEq,
std::cmp::PartialOrd,
std::fmt::Debug,
std::hash::Hash,
)]
pub enum ServerErrorCategory {
#[allow(missing_docs)] ArchitectureError,
#[allow(missing_docs)] ConnectivityError,
#[allow(missing_docs)] CredentialError,
#[allow(missing_docs)] OtherError,
#[allow(missing_docs)] PermissionError,
Unknown(crate::types::UnknownVariantValue),
}
impl std::convert::From<&str> for ServerErrorCategory {
fn from(s: &str) -> Self {
match s {
"ARCHITECTURE_ERROR" => ServerErrorCategory::ArchitectureError,
"CONNECTIVITY_ERROR" => ServerErrorCategory::ConnectivityError,
"CREDENTIAL_ERROR" => ServerErrorCategory::CredentialError,
"OTHER_ERROR" => ServerErrorCategory::OtherError,
"PERMISSION_ERROR" => ServerErrorCategory::PermissionError,
other => {
ServerErrorCategory::Unknown(crate::types::UnknownVariantValue(other.to_owned()))
}
}
}
}
impl std::str::FromStr for ServerErrorCategory {
type Err = std::convert::Infallible;
fn from_str(s: &str) -> std::result::Result<Self, Self::Err> {
Ok(ServerErrorCategory::from(s))
}
}
impl ServerErrorCategory {
pub fn as_str(&self) -> &str {
match self {
ServerErrorCategory::ArchitectureError => "ARCHITECTURE_ERROR",
ServerErrorCategory::ConnectivityError => "CONNECTIVITY_ERROR",
ServerErrorCategory::CredentialError => "CREDENTIAL_ERROR",
ServerErrorCategory::OtherError => "OTHER_ERROR",
ServerErrorCategory::PermissionError => "PERMISSION_ERROR",
ServerErrorCategory::Unknown(value) => value.as_str(),
}
}
pub const fn values() -> &'static [&'static str] {
&[
"ARCHITECTURE_ERROR",
"CONNECTIVITY_ERROR",
"CREDENTIAL_ERROR",
"OTHER_ERROR",
"PERMISSION_ERROR",
]
}
}
impl AsRef<str> for ServerErrorCategory {
fn as_ref(&self) -> &str {
self.as_str()
}
}
#[allow(missing_docs)] #[non_exhaustive]
#[derive(
std::clone::Clone,
std::cmp::Eq,
std::cmp::Ord,
std::cmp::PartialEq,
std::cmp::PartialOrd,
std::fmt::Debug,
std::hash::Hash,
)]
pub enum AntipatternReportStatus {
#[allow(missing_docs)] Failed,
#[allow(missing_docs)] InProgress,
#[allow(missing_docs)] Success,
Unknown(crate::types::UnknownVariantValue),
}
impl std::convert::From<&str> for AntipatternReportStatus {
fn from(s: &str) -> Self {
match s {
"FAILED" => AntipatternReportStatus::Failed,
"IN_PROGRESS" => AntipatternReportStatus::InProgress,
"SUCCESS" => AntipatternReportStatus::Success,
other => AntipatternReportStatus::Unknown(crate::types::UnknownVariantValue(
other.to_owned(),
)),
}
}
}
impl std::str::FromStr for AntipatternReportStatus {
type Err = std::convert::Infallible;
fn from_str(s: &str) -> std::result::Result<Self, Self::Err> {
Ok(AntipatternReportStatus::from(s))
}
}
impl AntipatternReportStatus {
pub fn as_str(&self) -> &str {
match self {
AntipatternReportStatus::Failed => "FAILED",
AntipatternReportStatus::InProgress => "IN_PROGRESS",
AntipatternReportStatus::Success => "SUCCESS",
AntipatternReportStatus::Unknown(value) => value.as_str(),
}
}
pub const fn values() -> &'static [&'static str] {
&["FAILED", "IN_PROGRESS", "SUCCESS"]
}
}
impl AsRef<str> for AntipatternReportStatus {
fn as_ref(&self) -> &str {
self.as_str()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct S3Object {
#[doc(hidden)]
pub s3_bucket: std::option::Option<std::string::String>,
#[doc(hidden)]
pub s3key: std::option::Option<std::string::String>,
}
impl S3Object {
pub fn s3_bucket(&self) -> std::option::Option<&str> {
self.s3_bucket.as_deref()
}
pub fn s3key(&self) -> std::option::Option<&str> {
self.s3key.as_deref()
}
}
pub mod s3_object {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) s3_bucket: std::option::Option<std::string::String>,
pub(crate) s3key: std::option::Option<std::string::String>,
}
impl Builder {
pub fn s3_bucket(mut self, input: impl Into<std::string::String>) -> Self {
self.s3_bucket = Some(input.into());
self
}
pub fn set_s3_bucket(mut self, input: std::option::Option<std::string::String>) -> Self {
self.s3_bucket = input;
self
}
pub fn s3key(mut self, input: impl Into<std::string::String>) -> Self {
self.s3key = Some(input.into());
self
}
pub fn set_s3key(mut self, input: std::option::Option<std::string::String>) -> Self {
self.s3key = input;
self
}
pub fn build(self) -> crate::model::S3Object {
crate::model::S3Object {
s3_bucket: self.s3_bucket,
s3key: self.s3key,
}
}
}
}
impl S3Object {
pub fn builder() -> crate::model::s3_object::Builder {
crate::model::s3_object::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct StrategySummary {
#[doc(hidden)]
pub strategy: std::option::Option<crate::model::Strategy>,
#[doc(hidden)]
pub count: std::option::Option<i32>,
}
impl StrategySummary {
pub fn strategy(&self) -> std::option::Option<&crate::model::Strategy> {
self.strategy.as_ref()
}
pub fn count(&self) -> std::option::Option<i32> {
self.count
}
}
pub mod strategy_summary {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) strategy: std::option::Option<crate::model::Strategy>,
pub(crate) count: std::option::Option<i32>,
}
impl Builder {
pub fn strategy(mut self, input: crate::model::Strategy) -> Self {
self.strategy = Some(input);
self
}
pub fn set_strategy(mut self, input: std::option::Option<crate::model::Strategy>) -> Self {
self.strategy = input;
self
}
pub fn count(mut self, input: i32) -> Self {
self.count = Some(input);
self
}
pub fn set_count(mut self, input: std::option::Option<i32>) -> Self {
self.count = input;
self
}
pub fn build(self) -> crate::model::StrategySummary {
crate::model::StrategySummary {
strategy: self.strategy,
count: self.count,
}
}
}
}
impl StrategySummary {
pub fn builder() -> crate::model::strategy_summary::Builder {
crate::model::strategy_summary::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct SystemInfo {
#[doc(hidden)]
pub os_info: std::option::Option<crate::model::OsInfo>,
#[doc(hidden)]
pub file_system_type: std::option::Option<std::string::String>,
#[doc(hidden)]
pub network_info_list: std::option::Option<std::vec::Vec<crate::model::NetworkInfo>>,
#[doc(hidden)]
pub cpu_architecture: std::option::Option<std::string::String>,
}
impl SystemInfo {
pub fn os_info(&self) -> std::option::Option<&crate::model::OsInfo> {
self.os_info.as_ref()
}
pub fn file_system_type(&self) -> std::option::Option<&str> {
self.file_system_type.as_deref()
}
pub fn network_info_list(&self) -> std::option::Option<&[crate::model::NetworkInfo]> {
self.network_info_list.as_deref()
}
pub fn cpu_architecture(&self) -> std::option::Option<&str> {
self.cpu_architecture.as_deref()
}
}
pub mod system_info {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) os_info: std::option::Option<crate::model::OsInfo>,
pub(crate) file_system_type: std::option::Option<std::string::String>,
pub(crate) network_info_list: std::option::Option<std::vec::Vec<crate::model::NetworkInfo>>,
pub(crate) cpu_architecture: std::option::Option<std::string::String>,
}
impl Builder {
pub fn os_info(mut self, input: crate::model::OsInfo) -> Self {
self.os_info = Some(input);
self
}
pub fn set_os_info(mut self, input: std::option::Option<crate::model::OsInfo>) -> Self {
self.os_info = input;
self
}
pub fn file_system_type(mut self, input: impl Into<std::string::String>) -> Self {
self.file_system_type = Some(input.into());
self
}
pub fn set_file_system_type(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.file_system_type = input;
self
}
pub fn network_info_list(mut self, input: crate::model::NetworkInfo) -> Self {
let mut v = self.network_info_list.unwrap_or_default();
v.push(input);
self.network_info_list = Some(v);
self
}
pub fn set_network_info_list(
mut self,
input: std::option::Option<std::vec::Vec<crate::model::NetworkInfo>>,
) -> Self {
self.network_info_list = input;
self
}
pub fn cpu_architecture(mut self, input: impl Into<std::string::String>) -> Self {
self.cpu_architecture = Some(input.into());
self
}
pub fn set_cpu_architecture(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.cpu_architecture = input;
self
}
pub fn build(self) -> crate::model::SystemInfo {
crate::model::SystemInfo {
os_info: self.os_info,
file_system_type: self.file_system_type,
network_info_list: self.network_info_list,
cpu_architecture: self.cpu_architecture,
}
}
}
}
impl SystemInfo {
pub fn builder() -> crate::model::system_info::Builder {
crate::model::system_info::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct NetworkInfo {
#[doc(hidden)]
pub interface_name: std::option::Option<std::string::String>,
#[doc(hidden)]
pub ip_address: std::option::Option<std::string::String>,
#[doc(hidden)]
pub mac_address: std::option::Option<std::string::String>,
#[doc(hidden)]
pub net_mask: std::option::Option<std::string::String>,
}
impl NetworkInfo {
pub fn interface_name(&self) -> std::option::Option<&str> {
self.interface_name.as_deref()
}
pub fn ip_address(&self) -> std::option::Option<&str> {
self.ip_address.as_deref()
}
pub fn mac_address(&self) -> std::option::Option<&str> {
self.mac_address.as_deref()
}
pub fn net_mask(&self) -> std::option::Option<&str> {
self.net_mask.as_deref()
}
}
pub mod network_info {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) interface_name: std::option::Option<std::string::String>,
pub(crate) ip_address: std::option::Option<std::string::String>,
pub(crate) mac_address: std::option::Option<std::string::String>,
pub(crate) net_mask: std::option::Option<std::string::String>,
}
impl Builder {
pub fn interface_name(mut self, input: impl Into<std::string::String>) -> Self {
self.interface_name = Some(input.into());
self
}
pub fn set_interface_name(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.interface_name = input;
self
}
pub fn ip_address(mut self, input: impl Into<std::string::String>) -> Self {
self.ip_address = Some(input.into());
self
}
pub fn set_ip_address(mut self, input: std::option::Option<std::string::String>) -> Self {
self.ip_address = input;
self
}
pub fn mac_address(mut self, input: impl Into<std::string::String>) -> Self {
self.mac_address = Some(input.into());
self
}
pub fn set_mac_address(mut self, input: std::option::Option<std::string::String>) -> Self {
self.mac_address = input;
self
}
pub fn net_mask(mut self, input: impl Into<std::string::String>) -> Self {
self.net_mask = Some(input.into());
self
}
pub fn set_net_mask(mut self, input: std::option::Option<std::string::String>) -> Self {
self.net_mask = input;
self
}
pub fn build(self) -> crate::model::NetworkInfo {
crate::model::NetworkInfo {
interface_name: self.interface_name,
ip_address: self.ip_address,
mac_address: self.mac_address,
net_mask: self.net_mask,
}
}
}
}
impl NetworkInfo {
pub fn builder() -> crate::model::network_info::Builder {
crate::model::network_info::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct OsInfo {
#[doc(hidden)]
pub r#type: std::option::Option<crate::model::OsType>,
#[doc(hidden)]
pub version: std::option::Option<std::string::String>,
}
impl OsInfo {
pub fn r#type(&self) -> std::option::Option<&crate::model::OsType> {
self.r#type.as_ref()
}
pub fn version(&self) -> std::option::Option<&str> {
self.version.as_deref()
}
}
pub mod os_info {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) r#type: std::option::Option<crate::model::OsType>,
pub(crate) version: std::option::Option<std::string::String>,
}
impl Builder {
pub fn r#type(mut self, input: crate::model::OsType) -> Self {
self.r#type = Some(input);
self
}
pub fn set_type(mut self, input: std::option::Option<crate::model::OsType>) -> Self {
self.r#type = input;
self
}
pub fn version(mut self, input: impl Into<std::string::String>) -> Self {
self.version = Some(input.into());
self
}
pub fn set_version(mut self, input: std::option::Option<std::string::String>) -> Self {
self.version = input;
self
}
pub fn build(self) -> crate::model::OsInfo {
crate::model::OsInfo {
r#type: self.r#type,
version: self.version,
}
}
}
}
impl OsInfo {
pub fn builder() -> crate::model::os_info::Builder {
crate::model::os_info::Builder::default()
}
}
#[allow(missing_docs)] #[non_exhaustive]
#[derive(
std::clone::Clone,
std::cmp::Eq,
std::cmp::Ord,
std::cmp::PartialEq,
std::cmp::PartialOrd,
std::fmt::Debug,
std::hash::Hash,
)]
pub enum OsType {
#[allow(missing_docs)] Linux,
#[allow(missing_docs)] Windows,
Unknown(crate::types::UnknownVariantValue),
}
impl std::convert::From<&str> for OsType {
fn from(s: &str) -> Self {
match s {
"LINUX" => OsType::Linux,
"WINDOWS" => OsType::Windows,
other => OsType::Unknown(crate::types::UnknownVariantValue(other.to_owned())),
}
}
}
impl std::str::FromStr for OsType {
type Err = std::convert::Infallible;
fn from_str(s: &str) -> std::result::Result<Self, Self::Err> {
Ok(OsType::from(s))
}
}
impl OsType {
pub fn as_str(&self) -> &str {
match self {
OsType::Linux => "LINUX",
OsType::Windows => "WINDOWS",
OsType::Unknown(value) => value.as_str(),
}
}
pub const fn values() -> &'static [&'static str] {
&["LINUX", "WINDOWS"]
}
}
impl AsRef<str> for OsType {
fn as_ref(&self) -> &str {
self.as_str()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct AntipatternSeveritySummary {
#[doc(hidden)]
pub severity: std::option::Option<crate::model::Severity>,
#[doc(hidden)]
pub count: std::option::Option<i32>,
}
impl AntipatternSeveritySummary {
pub fn severity(&self) -> std::option::Option<&crate::model::Severity> {
self.severity.as_ref()
}
pub fn count(&self) -> std::option::Option<i32> {
self.count
}
}
pub mod antipattern_severity_summary {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) severity: std::option::Option<crate::model::Severity>,
pub(crate) count: std::option::Option<i32>,
}
impl Builder {
pub fn severity(mut self, input: crate::model::Severity) -> Self {
self.severity = Some(input);
self
}
pub fn set_severity(mut self, input: std::option::Option<crate::model::Severity>) -> Self {
self.severity = input;
self
}
pub fn count(mut self, input: i32) -> Self {
self.count = Some(input);
self
}
pub fn set_count(mut self, input: std::option::Option<i32>) -> Self {
self.count = input;
self
}
pub fn build(self) -> crate::model::AntipatternSeveritySummary {
crate::model::AntipatternSeveritySummary {
severity: self.severity,
count: self.count,
}
}
}
}
impl AntipatternSeveritySummary {
pub fn builder() -> crate::model::antipattern_severity_summary::Builder {
crate::model::antipattern_severity_summary::Builder::default()
}
}
#[allow(missing_docs)] #[non_exhaustive]
#[derive(
std::clone::Clone,
std::cmp::Eq,
std::cmp::Ord,
std::cmp::PartialEq,
std::cmp::PartialOrd,
std::fmt::Debug,
std::hash::Hash,
)]
pub enum Severity {
#[allow(missing_docs)] High,
#[allow(missing_docs)] Low,
#[allow(missing_docs)] Medium,
Unknown(crate::types::UnknownVariantValue),
}
impl std::convert::From<&str> for Severity {
fn from(s: &str) -> Self {
match s {
"HIGH" => Severity::High,
"LOW" => Severity::Low,
"MEDIUM" => Severity::Medium,
other => Severity::Unknown(crate::types::UnknownVariantValue(other.to_owned())),
}
}
}
impl std::str::FromStr for Severity {
type Err = std::convert::Infallible;
fn from_str(s: &str) -> std::result::Result<Self, Self::Err> {
Ok(Severity::from(s))
}
}
impl Severity {
pub fn as_str(&self) -> &str {
match self {
Severity::High => "HIGH",
Severity::Low => "LOW",
Severity::Medium => "MEDIUM",
Severity::Unknown(value) => value.as_str(),
}
}
pub const fn values() -> &'static [&'static str] {
&["HIGH", "LOW", "MEDIUM"]
}
}
impl AsRef<str> for Severity {
fn as_ref(&self) -> &str {
self.as_str()
}
}
#[allow(missing_docs)] #[non_exhaustive]
#[derive(
std::clone::Clone,
std::cmp::Eq,
std::cmp::Ord,
std::cmp::PartialEq,
std::cmp::PartialOrd,
std::fmt::Debug,
std::hash::Hash,
)]
pub enum RunTimeAssessmentStatus {
#[allow(missing_docs)] DcFailed,
#[allow(missing_docs)] DcPartialSuccess,
#[allow(missing_docs)] DcReqSent,
#[allow(missing_docs)] DcStarted,
#[allow(missing_docs)] DcStopped,
#[allow(missing_docs)] DcSuccess,
#[allow(missing_docs)] DcToBeScheduled,
Unknown(crate::types::UnknownVariantValue),
}
impl std::convert::From<&str> for RunTimeAssessmentStatus {
fn from(s: &str) -> Self {
match s {
"dataCollectionTaskFailed" => RunTimeAssessmentStatus::DcFailed,
"dataCollectionTaskPartialSuccess" => RunTimeAssessmentStatus::DcPartialSuccess,
"dataCollectionTaskScheduled" => RunTimeAssessmentStatus::DcReqSent,
"dataCollectionTaskStarted" => RunTimeAssessmentStatus::DcStarted,
"dataCollectionTaskStopped" => RunTimeAssessmentStatus::DcStopped,
"dataCollectionTaskSuccess" => RunTimeAssessmentStatus::DcSuccess,
"dataCollectionTaskToBeScheduled" => RunTimeAssessmentStatus::DcToBeScheduled,
other => RunTimeAssessmentStatus::Unknown(crate::types::UnknownVariantValue(
other.to_owned(),
)),
}
}
}
impl std::str::FromStr for RunTimeAssessmentStatus {
type Err = std::convert::Infallible;
fn from_str(s: &str) -> std::result::Result<Self, Self::Err> {
Ok(RunTimeAssessmentStatus::from(s))
}
}
impl RunTimeAssessmentStatus {
pub fn as_str(&self) -> &str {
match self {
RunTimeAssessmentStatus::DcFailed => "dataCollectionTaskFailed",
RunTimeAssessmentStatus::DcPartialSuccess => "dataCollectionTaskPartialSuccess",
RunTimeAssessmentStatus::DcReqSent => "dataCollectionTaskScheduled",
RunTimeAssessmentStatus::DcStarted => "dataCollectionTaskStarted",
RunTimeAssessmentStatus::DcStopped => "dataCollectionTaskStopped",
RunTimeAssessmentStatus::DcSuccess => "dataCollectionTaskSuccess",
RunTimeAssessmentStatus::DcToBeScheduled => "dataCollectionTaskToBeScheduled",
RunTimeAssessmentStatus::Unknown(value) => value.as_str(),
}
}
pub const fn values() -> &'static [&'static str] {
&[
"dataCollectionTaskFailed",
"dataCollectionTaskPartialSuccess",
"dataCollectionTaskScheduled",
"dataCollectionTaskStarted",
"dataCollectionTaskStopped",
"dataCollectionTaskSuccess",
"dataCollectionTaskToBeScheduled",
]
}
}
impl AsRef<str> for RunTimeAssessmentStatus {
fn as_ref(&self) -> &str {
self.as_str()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct RecommendationSet {
#[doc(hidden)]
pub transformation_tool: std::option::Option<crate::model::TransformationTool>,
#[doc(hidden)]
pub target_destination: std::option::Option<crate::model::TargetDestination>,
#[doc(hidden)]
pub strategy: std::option::Option<crate::model::Strategy>,
}
impl RecommendationSet {
pub fn transformation_tool(&self) -> std::option::Option<&crate::model::TransformationTool> {
self.transformation_tool.as_ref()
}
pub fn target_destination(&self) -> std::option::Option<&crate::model::TargetDestination> {
self.target_destination.as_ref()
}
pub fn strategy(&self) -> std::option::Option<&crate::model::Strategy> {
self.strategy.as_ref()
}
}
pub mod recommendation_set {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) transformation_tool: std::option::Option<crate::model::TransformationTool>,
pub(crate) target_destination: std::option::Option<crate::model::TargetDestination>,
pub(crate) strategy: std::option::Option<crate::model::Strategy>,
}
impl Builder {
pub fn transformation_tool(mut self, input: crate::model::TransformationTool) -> Self {
self.transformation_tool = Some(input);
self
}
pub fn set_transformation_tool(
mut self,
input: std::option::Option<crate::model::TransformationTool>,
) -> Self {
self.transformation_tool = input;
self
}
pub fn target_destination(mut self, input: crate::model::TargetDestination) -> Self {
self.target_destination = Some(input);
self
}
pub fn set_target_destination(
mut self,
input: std::option::Option<crate::model::TargetDestination>,
) -> Self {
self.target_destination = input;
self
}
pub fn strategy(mut self, input: crate::model::Strategy) -> Self {
self.strategy = Some(input);
self
}
pub fn set_strategy(mut self, input: std::option::Option<crate::model::Strategy>) -> Self {
self.strategy = input;
self
}
pub fn build(self) -> crate::model::RecommendationSet {
crate::model::RecommendationSet {
transformation_tool: self.transformation_tool,
target_destination: self.target_destination,
strategy: self.strategy,
}
}
}
}
impl RecommendationSet {
pub fn builder() -> crate::model::recommendation_set::Builder {
crate::model::recommendation_set::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct TransformationTool {
#[doc(hidden)]
pub name: std::option::Option<crate::model::TransformationToolName>,
#[doc(hidden)]
pub description: std::option::Option<std::string::String>,
#[doc(hidden)]
pub tranformation_tool_installation_link: std::option::Option<std::string::String>,
}
impl TransformationTool {
pub fn name(&self) -> std::option::Option<&crate::model::TransformationToolName> {
self.name.as_ref()
}
pub fn description(&self) -> std::option::Option<&str> {
self.description.as_deref()
}
pub fn tranformation_tool_installation_link(&self) -> std::option::Option<&str> {
self.tranformation_tool_installation_link.as_deref()
}
}
pub mod transformation_tool {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) name: std::option::Option<crate::model::TransformationToolName>,
pub(crate) description: std::option::Option<std::string::String>,
pub(crate) tranformation_tool_installation_link: std::option::Option<std::string::String>,
}
impl Builder {
pub fn name(mut self, input: crate::model::TransformationToolName) -> Self {
self.name = Some(input);
self
}
pub fn set_name(
mut self,
input: std::option::Option<crate::model::TransformationToolName>,
) -> Self {
self.name = input;
self
}
pub fn description(mut self, input: impl Into<std::string::String>) -> Self {
self.description = Some(input.into());
self
}
pub fn set_description(mut self, input: std::option::Option<std::string::String>) -> Self {
self.description = input;
self
}
pub fn tranformation_tool_installation_link(
mut self,
input: impl Into<std::string::String>,
) -> Self {
self.tranformation_tool_installation_link = Some(input.into());
self
}
pub fn set_tranformation_tool_installation_link(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.tranformation_tool_installation_link = input;
self
}
pub fn build(self) -> crate::model::TransformationTool {
crate::model::TransformationTool {
name: self.name,
description: self.description,
tranformation_tool_installation_link: self.tranformation_tool_installation_link,
}
}
}
}
impl TransformationTool {
pub fn builder() -> crate::model::transformation_tool::Builder {
crate::model::transformation_tool::Builder::default()
}
}
#[allow(missing_docs)] #[non_exhaustive]
#[derive(
std::clone::Clone,
std::cmp::Eq,
std::cmp::Ord,
std::cmp::PartialEq,
std::cmp::PartialOrd,
std::fmt::Debug,
std::hash::Hash,
)]
pub enum SortOrder {
#[allow(missing_docs)] Asc,
#[allow(missing_docs)] Desc,
Unknown(crate::types::UnknownVariantValue),
}
impl std::convert::From<&str> for SortOrder {
fn from(s: &str) -> Self {
match s {
"ASC" => SortOrder::Asc,
"DESC" => SortOrder::Desc,
other => SortOrder::Unknown(crate::types::UnknownVariantValue(other.to_owned())),
}
}
}
impl std::str::FromStr for SortOrder {
type Err = std::convert::Infallible;
fn from_str(s: &str) -> std::result::Result<Self, Self::Err> {
Ok(SortOrder::from(s))
}
}
impl SortOrder {
pub fn as_str(&self) -> &str {
match self {
SortOrder::Asc => "ASC",
SortOrder::Desc => "DESC",
SortOrder::Unknown(value) => value.as_str(),
}
}
pub const fn values() -> &'static [&'static str] {
&["ASC", "DESC"]
}
}
impl AsRef<str> for SortOrder {
fn as_ref(&self) -> &str {
self.as_str()
}
}
#[allow(missing_docs)] #[non_exhaustive]
#[derive(
std::clone::Clone,
std::cmp::Eq,
std::cmp::Ord,
std::cmp::PartialEq,
std::cmp::PartialOrd,
std::fmt::Debug,
std::hash::Hash,
)]
pub enum ServerCriteria {
#[allow(missing_docs)] AnalysisStatus,
#[allow(missing_docs)] Destination,
#[allow(missing_docs)] ErrorCategory,
#[allow(missing_docs)] NotDefined,
#[allow(missing_docs)] OsName,
#[allow(missing_docs)] ServerId,
#[allow(missing_docs)] Strategy,
Unknown(crate::types::UnknownVariantValue),
}
impl std::convert::From<&str> for ServerCriteria {
fn from(s: &str) -> Self {
match s {
"ANALYSIS_STATUS" => ServerCriteria::AnalysisStatus,
"DESTINATION" => ServerCriteria::Destination,
"ERROR_CATEGORY" => ServerCriteria::ErrorCategory,
"NOT_DEFINED" => ServerCriteria::NotDefined,
"OS_NAME" => ServerCriteria::OsName,
"SERVER_ID" => ServerCriteria::ServerId,
"STRATEGY" => ServerCriteria::Strategy,
other => ServerCriteria::Unknown(crate::types::UnknownVariantValue(other.to_owned())),
}
}
}
impl std::str::FromStr for ServerCriteria {
type Err = std::convert::Infallible;
fn from_str(s: &str) -> std::result::Result<Self, Self::Err> {
Ok(ServerCriteria::from(s))
}
}
impl ServerCriteria {
pub fn as_str(&self) -> &str {
match self {
ServerCriteria::AnalysisStatus => "ANALYSIS_STATUS",
ServerCriteria::Destination => "DESTINATION",
ServerCriteria::ErrorCategory => "ERROR_CATEGORY",
ServerCriteria::NotDefined => "NOT_DEFINED",
ServerCriteria::OsName => "OS_NAME",
ServerCriteria::ServerId => "SERVER_ID",
ServerCriteria::Strategy => "STRATEGY",
ServerCriteria::Unknown(value) => value.as_str(),
}
}
pub const fn values() -> &'static [&'static str] {
&[
"ANALYSIS_STATUS",
"DESTINATION",
"ERROR_CATEGORY",
"NOT_DEFINED",
"OS_NAME",
"SERVER_ID",
"STRATEGY",
]
}
}
impl AsRef<str> for ServerCriteria {
fn as_ref(&self) -> &str {
self.as_str()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct ImportFileTaskInformation {
#[doc(hidden)]
pub id: std::option::Option<std::string::String>,
#[doc(hidden)]
pub status: std::option::Option<crate::model::ImportFileTaskStatus>,
#[doc(hidden)]
pub start_time: std::option::Option<aws_smithy_types::DateTime>,
#[doc(hidden)]
pub input_s3_bucket: std::option::Option<std::string::String>,
#[doc(hidden)]
pub input_s3_key: std::option::Option<std::string::String>,
#[doc(hidden)]
pub status_report_s3_bucket: std::option::Option<std::string::String>,
#[doc(hidden)]
pub status_report_s3_key: std::option::Option<std::string::String>,
#[doc(hidden)]
pub completion_time: std::option::Option<aws_smithy_types::DateTime>,
#[doc(hidden)]
pub number_of_records_success: std::option::Option<i32>,
#[doc(hidden)]
pub number_of_records_failed: std::option::Option<i32>,
#[doc(hidden)]
pub import_name: std::option::Option<std::string::String>,
}
impl ImportFileTaskInformation {
pub fn id(&self) -> std::option::Option<&str> {
self.id.as_deref()
}
pub fn status(&self) -> std::option::Option<&crate::model::ImportFileTaskStatus> {
self.status.as_ref()
}
pub fn start_time(&self) -> std::option::Option<&aws_smithy_types::DateTime> {
self.start_time.as_ref()
}
pub fn input_s3_bucket(&self) -> std::option::Option<&str> {
self.input_s3_bucket.as_deref()
}
pub fn input_s3_key(&self) -> std::option::Option<&str> {
self.input_s3_key.as_deref()
}
pub fn status_report_s3_bucket(&self) -> std::option::Option<&str> {
self.status_report_s3_bucket.as_deref()
}
pub fn status_report_s3_key(&self) -> std::option::Option<&str> {
self.status_report_s3_key.as_deref()
}
pub fn completion_time(&self) -> std::option::Option<&aws_smithy_types::DateTime> {
self.completion_time.as_ref()
}
pub fn number_of_records_success(&self) -> std::option::Option<i32> {
self.number_of_records_success
}
pub fn number_of_records_failed(&self) -> std::option::Option<i32> {
self.number_of_records_failed
}
pub fn import_name(&self) -> std::option::Option<&str> {
self.import_name.as_deref()
}
}
pub mod import_file_task_information {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) id: std::option::Option<std::string::String>,
pub(crate) status: std::option::Option<crate::model::ImportFileTaskStatus>,
pub(crate) start_time: std::option::Option<aws_smithy_types::DateTime>,
pub(crate) input_s3_bucket: std::option::Option<std::string::String>,
pub(crate) input_s3_key: std::option::Option<std::string::String>,
pub(crate) status_report_s3_bucket: std::option::Option<std::string::String>,
pub(crate) status_report_s3_key: std::option::Option<std::string::String>,
pub(crate) completion_time: std::option::Option<aws_smithy_types::DateTime>,
pub(crate) number_of_records_success: std::option::Option<i32>,
pub(crate) number_of_records_failed: std::option::Option<i32>,
pub(crate) import_name: std::option::Option<std::string::String>,
}
impl Builder {
pub fn id(mut self, input: impl Into<std::string::String>) -> Self {
self.id = Some(input.into());
self
}
pub fn set_id(mut self, input: std::option::Option<std::string::String>) -> Self {
self.id = input;
self
}
pub fn status(mut self, input: crate::model::ImportFileTaskStatus) -> Self {
self.status = Some(input);
self
}
pub fn set_status(
mut self,
input: std::option::Option<crate::model::ImportFileTaskStatus>,
) -> Self {
self.status = input;
self
}
pub fn start_time(mut self, input: aws_smithy_types::DateTime) -> Self {
self.start_time = Some(input);
self
}
pub fn set_start_time(
mut self,
input: std::option::Option<aws_smithy_types::DateTime>,
) -> Self {
self.start_time = input;
self
}
pub fn input_s3_bucket(mut self, input: impl Into<std::string::String>) -> Self {
self.input_s3_bucket = Some(input.into());
self
}
pub fn set_input_s3_bucket(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.input_s3_bucket = input;
self
}
pub fn input_s3_key(mut self, input: impl Into<std::string::String>) -> Self {
self.input_s3_key = Some(input.into());
self
}
pub fn set_input_s3_key(mut self, input: std::option::Option<std::string::String>) -> Self {
self.input_s3_key = input;
self
}
pub fn status_report_s3_bucket(mut self, input: impl Into<std::string::String>) -> Self {
self.status_report_s3_bucket = Some(input.into());
self
}
pub fn set_status_report_s3_bucket(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.status_report_s3_bucket = input;
self
}
pub fn status_report_s3_key(mut self, input: impl Into<std::string::String>) -> Self {
self.status_report_s3_key = Some(input.into());
self
}
pub fn set_status_report_s3_key(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.status_report_s3_key = input;
self
}
pub fn completion_time(mut self, input: aws_smithy_types::DateTime) -> Self {
self.completion_time = Some(input);
self
}
pub fn set_completion_time(
mut self,
input: std::option::Option<aws_smithy_types::DateTime>,
) -> Self {
self.completion_time = input;
self
}
pub fn number_of_records_success(mut self, input: i32) -> Self {
self.number_of_records_success = Some(input);
self
}
pub fn set_number_of_records_success(mut self, input: std::option::Option<i32>) -> Self {
self.number_of_records_success = input;
self
}
pub fn number_of_records_failed(mut self, input: i32) -> Self {
self.number_of_records_failed = Some(input);
self
}
pub fn set_number_of_records_failed(mut self, input: std::option::Option<i32>) -> Self {
self.number_of_records_failed = input;
self
}
pub fn import_name(mut self, input: impl Into<std::string::String>) -> Self {
self.import_name = Some(input.into());
self
}
pub fn set_import_name(mut self, input: std::option::Option<std::string::String>) -> Self {
self.import_name = input;
self
}
pub fn build(self) -> crate::model::ImportFileTaskInformation {
crate::model::ImportFileTaskInformation {
id: self.id,
status: self.status,
start_time: self.start_time,
input_s3_bucket: self.input_s3_bucket,
input_s3_key: self.input_s3_key,
status_report_s3_bucket: self.status_report_s3_bucket,
status_report_s3_key: self.status_report_s3_key,
completion_time: self.completion_time,
number_of_records_success: self.number_of_records_success,
number_of_records_failed: self.number_of_records_failed,
import_name: self.import_name,
}
}
}
}
impl ImportFileTaskInformation {
pub fn builder() -> crate::model::import_file_task_information::Builder {
crate::model::import_file_task_information::Builder::default()
}
}
#[allow(missing_docs)] #[non_exhaustive]
#[derive(
std::clone::Clone,
std::cmp::Eq,
std::cmp::Ord,
std::cmp::PartialEq,
std::cmp::PartialOrd,
std::fmt::Debug,
std::hash::Hash,
)]
pub enum ImportFileTaskStatus {
#[allow(missing_docs)] DeleteFailed,
#[allow(missing_docs)] DeleteInProgress,
#[allow(missing_docs)] DeletePartialSuccess,
#[allow(missing_docs)] DeleteSuccess,
#[allow(missing_docs)] ImportFailed,
#[allow(missing_docs)] ImportInProgress,
#[allow(missing_docs)] ImportPartialSuccess,
#[allow(missing_docs)] ImportSuccess,
Unknown(crate::types::UnknownVariantValue),
}
impl std::convert::From<&str> for ImportFileTaskStatus {
fn from(s: &str) -> Self {
match s {
"DeleteFailed" => ImportFileTaskStatus::DeleteFailed,
"DeleteInProgress" => ImportFileTaskStatus::DeleteInProgress,
"DeletePartialSuccess" => ImportFileTaskStatus::DeletePartialSuccess,
"DeleteSuccess" => ImportFileTaskStatus::DeleteSuccess,
"ImportFailed" => ImportFileTaskStatus::ImportFailed,
"ImportInProgress" => ImportFileTaskStatus::ImportInProgress,
"ImportPartialSuccess" => ImportFileTaskStatus::ImportPartialSuccess,
"ImportSuccess" => ImportFileTaskStatus::ImportSuccess,
other => {
ImportFileTaskStatus::Unknown(crate::types::UnknownVariantValue(other.to_owned()))
}
}
}
}
impl std::str::FromStr for ImportFileTaskStatus {
type Err = std::convert::Infallible;
fn from_str(s: &str) -> std::result::Result<Self, Self::Err> {
Ok(ImportFileTaskStatus::from(s))
}
}
impl ImportFileTaskStatus {
pub fn as_str(&self) -> &str {
match self {
ImportFileTaskStatus::DeleteFailed => "DeleteFailed",
ImportFileTaskStatus::DeleteInProgress => "DeleteInProgress",
ImportFileTaskStatus::DeletePartialSuccess => "DeletePartialSuccess",
ImportFileTaskStatus::DeleteSuccess => "DeleteSuccess",
ImportFileTaskStatus::ImportFailed => "ImportFailed",
ImportFileTaskStatus::ImportInProgress => "ImportInProgress",
ImportFileTaskStatus::ImportPartialSuccess => "ImportPartialSuccess",
ImportFileTaskStatus::ImportSuccess => "ImportSuccess",
ImportFileTaskStatus::Unknown(value) => value.as_str(),
}
}
pub const fn values() -> &'static [&'static str] {
&[
"DeleteFailed",
"DeleteInProgress",
"DeletePartialSuccess",
"DeleteSuccess",
"ImportFailed",
"ImportInProgress",
"ImportPartialSuccess",
"ImportSuccess",
]
}
}
impl AsRef<str> for ImportFileTaskStatus {
fn as_ref(&self) -> &str {
self.as_str()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Collector {
#[doc(hidden)]
pub collector_id: std::option::Option<std::string::String>,
#[doc(hidden)]
pub ip_address: std::option::Option<std::string::String>,
#[doc(hidden)]
pub host_name: std::option::Option<std::string::String>,
#[doc(hidden)]
pub collector_health: std::option::Option<crate::model::CollectorHealth>,
#[doc(hidden)]
pub collector_version: std::option::Option<std::string::String>,
#[doc(hidden)]
pub registered_time_stamp: std::option::Option<std::string::String>,
#[doc(hidden)]
pub last_activity_time_stamp: std::option::Option<std::string::String>,
#[doc(hidden)]
pub configuration_summary: std::option::Option<crate::model::ConfigurationSummary>,
}
impl Collector {
pub fn collector_id(&self) -> std::option::Option<&str> {
self.collector_id.as_deref()
}
pub fn ip_address(&self) -> std::option::Option<&str> {
self.ip_address.as_deref()
}
pub fn host_name(&self) -> std::option::Option<&str> {
self.host_name.as_deref()
}
pub fn collector_health(&self) -> std::option::Option<&crate::model::CollectorHealth> {
self.collector_health.as_ref()
}
pub fn collector_version(&self) -> std::option::Option<&str> {
self.collector_version.as_deref()
}
pub fn registered_time_stamp(&self) -> std::option::Option<&str> {
self.registered_time_stamp.as_deref()
}
pub fn last_activity_time_stamp(&self) -> std::option::Option<&str> {
self.last_activity_time_stamp.as_deref()
}
pub fn configuration_summary(
&self,
) -> std::option::Option<&crate::model::ConfigurationSummary> {
self.configuration_summary.as_ref()
}
}
pub mod collector {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) collector_id: std::option::Option<std::string::String>,
pub(crate) ip_address: std::option::Option<std::string::String>,
pub(crate) host_name: std::option::Option<std::string::String>,
pub(crate) collector_health: std::option::Option<crate::model::CollectorHealth>,
pub(crate) collector_version: std::option::Option<std::string::String>,
pub(crate) registered_time_stamp: std::option::Option<std::string::String>,
pub(crate) last_activity_time_stamp: std::option::Option<std::string::String>,
pub(crate) configuration_summary: std::option::Option<crate::model::ConfigurationSummary>,
}
impl Builder {
pub fn collector_id(mut self, input: impl Into<std::string::String>) -> Self {
self.collector_id = Some(input.into());
self
}
pub fn set_collector_id(mut self, input: std::option::Option<std::string::String>) -> Self {
self.collector_id = input;
self
}
pub fn ip_address(mut self, input: impl Into<std::string::String>) -> Self {
self.ip_address = Some(input.into());
self
}
pub fn set_ip_address(mut self, input: std::option::Option<std::string::String>) -> Self {
self.ip_address = input;
self
}
pub fn host_name(mut self, input: impl Into<std::string::String>) -> Self {
self.host_name = Some(input.into());
self
}
pub fn set_host_name(mut self, input: std::option::Option<std::string::String>) -> Self {
self.host_name = input;
self
}
pub fn collector_health(mut self, input: crate::model::CollectorHealth) -> Self {
self.collector_health = Some(input);
self
}
pub fn set_collector_health(
mut self,
input: std::option::Option<crate::model::CollectorHealth>,
) -> Self {
self.collector_health = input;
self
}
pub fn collector_version(mut self, input: impl Into<std::string::String>) -> Self {
self.collector_version = Some(input.into());
self
}
pub fn set_collector_version(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.collector_version = input;
self
}
pub fn registered_time_stamp(mut self, input: impl Into<std::string::String>) -> Self {
self.registered_time_stamp = Some(input.into());
self
}
pub fn set_registered_time_stamp(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.registered_time_stamp = input;
self
}
pub fn last_activity_time_stamp(mut self, input: impl Into<std::string::String>) -> Self {
self.last_activity_time_stamp = Some(input.into());
self
}
pub fn set_last_activity_time_stamp(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.last_activity_time_stamp = input;
self
}
pub fn configuration_summary(mut self, input: crate::model::ConfigurationSummary) -> Self {
self.configuration_summary = Some(input);
self
}
pub fn set_configuration_summary(
mut self,
input: std::option::Option<crate::model::ConfigurationSummary>,
) -> Self {
self.configuration_summary = input;
self
}
pub fn build(self) -> crate::model::Collector {
crate::model::Collector {
collector_id: self.collector_id,
ip_address: self.ip_address,
host_name: self.host_name,
collector_health: self.collector_health,
collector_version: self.collector_version,
registered_time_stamp: self.registered_time_stamp,
last_activity_time_stamp: self.last_activity_time_stamp,
configuration_summary: self.configuration_summary,
}
}
}
}
impl Collector {
pub fn builder() -> crate::model::collector::Builder {
crate::model::collector::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct ConfigurationSummary {
#[doc(hidden)]
pub vcenter_based_remote_info_list:
std::option::Option<std::vec::Vec<crate::model::VcenterBasedRemoteInfo>>,
#[doc(hidden)]
pub ip_address_based_remote_info_list:
std::option::Option<std::vec::Vec<crate::model::IpAddressBasedRemoteInfo>>,
#[doc(hidden)]
pub version_control_info_list:
std::option::Option<std::vec::Vec<crate::model::VersionControlInfo>>,
#[doc(hidden)]
pub pipeline_info_list: std::option::Option<std::vec::Vec<crate::model::PipelineInfo>>,
#[doc(hidden)]
pub remote_source_code_analysis_server_info:
std::option::Option<crate::model::RemoteSourceCodeAnalysisServerInfo>,
}
impl ConfigurationSummary {
pub fn vcenter_based_remote_info_list(
&self,
) -> std::option::Option<&[crate::model::VcenterBasedRemoteInfo]> {
self.vcenter_based_remote_info_list.as_deref()
}
pub fn ip_address_based_remote_info_list(
&self,
) -> std::option::Option<&[crate::model::IpAddressBasedRemoteInfo]> {
self.ip_address_based_remote_info_list.as_deref()
}
pub fn version_control_info_list(
&self,
) -> std::option::Option<&[crate::model::VersionControlInfo]> {
self.version_control_info_list.as_deref()
}
pub fn pipeline_info_list(&self) -> std::option::Option<&[crate::model::PipelineInfo]> {
self.pipeline_info_list.as_deref()
}
pub fn remote_source_code_analysis_server_info(
&self,
) -> std::option::Option<&crate::model::RemoteSourceCodeAnalysisServerInfo> {
self.remote_source_code_analysis_server_info.as_ref()
}
}
pub mod configuration_summary {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) vcenter_based_remote_info_list:
std::option::Option<std::vec::Vec<crate::model::VcenterBasedRemoteInfo>>,
pub(crate) ip_address_based_remote_info_list:
std::option::Option<std::vec::Vec<crate::model::IpAddressBasedRemoteInfo>>,
pub(crate) version_control_info_list:
std::option::Option<std::vec::Vec<crate::model::VersionControlInfo>>,
pub(crate) pipeline_info_list:
std::option::Option<std::vec::Vec<crate::model::PipelineInfo>>,
pub(crate) remote_source_code_analysis_server_info:
std::option::Option<crate::model::RemoteSourceCodeAnalysisServerInfo>,
}
impl Builder {
pub fn vcenter_based_remote_info_list(
mut self,
input: crate::model::VcenterBasedRemoteInfo,
) -> Self {
let mut v = self.vcenter_based_remote_info_list.unwrap_or_default();
v.push(input);
self.vcenter_based_remote_info_list = Some(v);
self
}
pub fn set_vcenter_based_remote_info_list(
mut self,
input: std::option::Option<std::vec::Vec<crate::model::VcenterBasedRemoteInfo>>,
) -> Self {
self.vcenter_based_remote_info_list = input;
self
}
pub fn ip_address_based_remote_info_list(
mut self,
input: crate::model::IpAddressBasedRemoteInfo,
) -> Self {
let mut v = self.ip_address_based_remote_info_list.unwrap_or_default();
v.push(input);
self.ip_address_based_remote_info_list = Some(v);
self
}
pub fn set_ip_address_based_remote_info_list(
mut self,
input: std::option::Option<std::vec::Vec<crate::model::IpAddressBasedRemoteInfo>>,
) -> Self {
self.ip_address_based_remote_info_list = input;
self
}
pub fn version_control_info_list(
mut self,
input: crate::model::VersionControlInfo,
) -> Self {
let mut v = self.version_control_info_list.unwrap_or_default();
v.push(input);
self.version_control_info_list = Some(v);
self
}
pub fn set_version_control_info_list(
mut self,
input: std::option::Option<std::vec::Vec<crate::model::VersionControlInfo>>,
) -> Self {
self.version_control_info_list = input;
self
}
pub fn pipeline_info_list(mut self, input: crate::model::PipelineInfo) -> Self {
let mut v = self.pipeline_info_list.unwrap_or_default();
v.push(input);
self.pipeline_info_list = Some(v);
self
}
pub fn set_pipeline_info_list(
mut self,
input: std::option::Option<std::vec::Vec<crate::model::PipelineInfo>>,
) -> Self {
self.pipeline_info_list = input;
self
}
pub fn remote_source_code_analysis_server_info(
mut self,
input: crate::model::RemoteSourceCodeAnalysisServerInfo,
) -> Self {
self.remote_source_code_analysis_server_info = Some(input);
self
}
pub fn set_remote_source_code_analysis_server_info(
mut self,
input: std::option::Option<crate::model::RemoteSourceCodeAnalysisServerInfo>,
) -> Self {
self.remote_source_code_analysis_server_info = input;
self
}
pub fn build(self) -> crate::model::ConfigurationSummary {
crate::model::ConfigurationSummary {
vcenter_based_remote_info_list: self.vcenter_based_remote_info_list,
ip_address_based_remote_info_list: self.ip_address_based_remote_info_list,
version_control_info_list: self.version_control_info_list,
pipeline_info_list: self.pipeline_info_list,
remote_source_code_analysis_server_info: self
.remote_source_code_analysis_server_info,
}
}
}
}
impl ConfigurationSummary {
pub fn builder() -> crate::model::configuration_summary::Builder {
crate::model::configuration_summary::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct RemoteSourceCodeAnalysisServerInfo {
#[doc(hidden)]
pub remote_source_code_analysis_server_configuration_timestamp:
std::option::Option<std::string::String>,
}
impl RemoteSourceCodeAnalysisServerInfo {
pub fn remote_source_code_analysis_server_configuration_timestamp(
&self,
) -> std::option::Option<&str> {
self.remote_source_code_analysis_server_configuration_timestamp
.as_deref()
}
}
pub mod remote_source_code_analysis_server_info {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) remote_source_code_analysis_server_configuration_timestamp:
std::option::Option<std::string::String>,
}
impl Builder {
pub fn remote_source_code_analysis_server_configuration_timestamp(
mut self,
input: impl Into<std::string::String>,
) -> Self {
self.remote_source_code_analysis_server_configuration_timestamp = Some(input.into());
self
}
pub fn set_remote_source_code_analysis_server_configuration_timestamp(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.remote_source_code_analysis_server_configuration_timestamp = input;
self
}
pub fn build(self) -> crate::model::RemoteSourceCodeAnalysisServerInfo {
crate::model::RemoteSourceCodeAnalysisServerInfo {
remote_source_code_analysis_server_configuration_timestamp: self
.remote_source_code_analysis_server_configuration_timestamp,
}
}
}
}
impl RemoteSourceCodeAnalysisServerInfo {
pub fn builder() -> crate::model::remote_source_code_analysis_server_info::Builder {
crate::model::remote_source_code_analysis_server_info::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct PipelineInfo {
#[doc(hidden)]
pub pipeline_type: std::option::Option<crate::model::PipelineType>,
#[doc(hidden)]
pub pipeline_configuration_time_stamp: std::option::Option<std::string::String>,
}
impl PipelineInfo {
pub fn pipeline_type(&self) -> std::option::Option<&crate::model::PipelineType> {
self.pipeline_type.as_ref()
}
pub fn pipeline_configuration_time_stamp(&self) -> std::option::Option<&str> {
self.pipeline_configuration_time_stamp.as_deref()
}
}
pub mod pipeline_info {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) pipeline_type: std::option::Option<crate::model::PipelineType>,
pub(crate) pipeline_configuration_time_stamp: std::option::Option<std::string::String>,
}
impl Builder {
pub fn pipeline_type(mut self, input: crate::model::PipelineType) -> Self {
self.pipeline_type = Some(input);
self
}
pub fn set_pipeline_type(
mut self,
input: std::option::Option<crate::model::PipelineType>,
) -> Self {
self.pipeline_type = input;
self
}
pub fn pipeline_configuration_time_stamp(
mut self,
input: impl Into<std::string::String>,
) -> Self {
self.pipeline_configuration_time_stamp = Some(input.into());
self
}
pub fn set_pipeline_configuration_time_stamp(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.pipeline_configuration_time_stamp = input;
self
}
pub fn build(self) -> crate::model::PipelineInfo {
crate::model::PipelineInfo {
pipeline_type: self.pipeline_type,
pipeline_configuration_time_stamp: self.pipeline_configuration_time_stamp,
}
}
}
}
impl PipelineInfo {
pub fn builder() -> crate::model::pipeline_info::Builder {
crate::model::pipeline_info::Builder::default()
}
}
#[allow(missing_docs)] #[non_exhaustive]
#[derive(
std::clone::Clone,
std::cmp::Eq,
std::cmp::Ord,
std::cmp::PartialEq,
std::cmp::PartialOrd,
std::fmt::Debug,
std::hash::Hash,
)]
pub enum PipelineType {
#[allow(missing_docs)] AzureDevops,
Unknown(crate::types::UnknownVariantValue),
}
impl std::convert::From<&str> for PipelineType {
fn from(s: &str) -> Self {
match s {
"AZURE_DEVOPS" => PipelineType::AzureDevops,
other => PipelineType::Unknown(crate::types::UnknownVariantValue(other.to_owned())),
}
}
}
impl std::str::FromStr for PipelineType {
type Err = std::convert::Infallible;
fn from_str(s: &str) -> std::result::Result<Self, Self::Err> {
Ok(PipelineType::from(s))
}
}
impl PipelineType {
pub fn as_str(&self) -> &str {
match self {
PipelineType::AzureDevops => "AZURE_DEVOPS",
PipelineType::Unknown(value) => value.as_str(),
}
}
pub const fn values() -> &'static [&'static str] {
&["AZURE_DEVOPS"]
}
}
impl AsRef<str> for PipelineType {
fn as_ref(&self) -> &str {
self.as_str()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct VersionControlInfo {
#[doc(hidden)]
pub version_control_type: std::option::Option<crate::model::VersionControlType>,
#[doc(hidden)]
pub version_control_configuration_time_stamp: std::option::Option<std::string::String>,
}
impl VersionControlInfo {
pub fn version_control_type(&self) -> std::option::Option<&crate::model::VersionControlType> {
self.version_control_type.as_ref()
}
pub fn version_control_configuration_time_stamp(&self) -> std::option::Option<&str> {
self.version_control_configuration_time_stamp.as_deref()
}
}
pub mod version_control_info {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) version_control_type: std::option::Option<crate::model::VersionControlType>,
pub(crate) version_control_configuration_time_stamp:
std::option::Option<std::string::String>,
}
impl Builder {
pub fn version_control_type(mut self, input: crate::model::VersionControlType) -> Self {
self.version_control_type = Some(input);
self
}
pub fn set_version_control_type(
mut self,
input: std::option::Option<crate::model::VersionControlType>,
) -> Self {
self.version_control_type = input;
self
}
pub fn version_control_configuration_time_stamp(
mut self,
input: impl Into<std::string::String>,
) -> Self {
self.version_control_configuration_time_stamp = Some(input.into());
self
}
pub fn set_version_control_configuration_time_stamp(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.version_control_configuration_time_stamp = input;
self
}
pub fn build(self) -> crate::model::VersionControlInfo {
crate::model::VersionControlInfo {
version_control_type: self.version_control_type,
version_control_configuration_time_stamp: self
.version_control_configuration_time_stamp,
}
}
}
}
impl VersionControlInfo {
pub fn builder() -> crate::model::version_control_info::Builder {
crate::model::version_control_info::Builder::default()
}
}
#[allow(missing_docs)] #[non_exhaustive]
#[derive(
std::clone::Clone,
std::cmp::Eq,
std::cmp::Ord,
std::cmp::PartialEq,
std::cmp::PartialOrd,
std::fmt::Debug,
std::hash::Hash,
)]
pub enum VersionControlType {
#[allow(missing_docs)] AzureDevopsGit,
#[allow(missing_docs)] Github,
#[allow(missing_docs)] GithubEnterprise,
Unknown(crate::types::UnknownVariantValue),
}
impl std::convert::From<&str> for VersionControlType {
fn from(s: &str) -> Self {
match s {
"AZURE_DEVOPS_GIT" => VersionControlType::AzureDevopsGit,
"GITHUB" => VersionControlType::Github,
"GITHUB_ENTERPRISE" => VersionControlType::GithubEnterprise,
other => {
VersionControlType::Unknown(crate::types::UnknownVariantValue(other.to_owned()))
}
}
}
}
impl std::str::FromStr for VersionControlType {
type Err = std::convert::Infallible;
fn from_str(s: &str) -> std::result::Result<Self, Self::Err> {
Ok(VersionControlType::from(s))
}
}
impl VersionControlType {
pub fn as_str(&self) -> &str {
match self {
VersionControlType::AzureDevopsGit => "AZURE_DEVOPS_GIT",
VersionControlType::Github => "GITHUB",
VersionControlType::GithubEnterprise => "GITHUB_ENTERPRISE",
VersionControlType::Unknown(value) => value.as_str(),
}
}
pub const fn values() -> &'static [&'static str] {
&["AZURE_DEVOPS_GIT", "GITHUB", "GITHUB_ENTERPRISE"]
}
}
impl AsRef<str> for VersionControlType {
fn as_ref(&self) -> &str {
self.as_str()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct IpAddressBasedRemoteInfo {
#[doc(hidden)]
pub ip_address_configuration_time_stamp: std::option::Option<std::string::String>,
#[doc(hidden)]
pub auth_type: std::option::Option<crate::model::AuthType>,
#[doc(hidden)]
pub os_type: std::option::Option<crate::model::OsType>,
}
impl IpAddressBasedRemoteInfo {
pub fn ip_address_configuration_time_stamp(&self) -> std::option::Option<&str> {
self.ip_address_configuration_time_stamp.as_deref()
}
pub fn auth_type(&self) -> std::option::Option<&crate::model::AuthType> {
self.auth_type.as_ref()
}
pub fn os_type(&self) -> std::option::Option<&crate::model::OsType> {
self.os_type.as_ref()
}
}
pub mod ip_address_based_remote_info {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) ip_address_configuration_time_stamp: std::option::Option<std::string::String>,
pub(crate) auth_type: std::option::Option<crate::model::AuthType>,
pub(crate) os_type: std::option::Option<crate::model::OsType>,
}
impl Builder {
pub fn ip_address_configuration_time_stamp(
mut self,
input: impl Into<std::string::String>,
) -> Self {
self.ip_address_configuration_time_stamp = Some(input.into());
self
}
pub fn set_ip_address_configuration_time_stamp(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.ip_address_configuration_time_stamp = input;
self
}
pub fn auth_type(mut self, input: crate::model::AuthType) -> Self {
self.auth_type = Some(input);
self
}
pub fn set_auth_type(mut self, input: std::option::Option<crate::model::AuthType>) -> Self {
self.auth_type = input;
self
}
pub fn os_type(mut self, input: crate::model::OsType) -> Self {
self.os_type = Some(input);
self
}
pub fn set_os_type(mut self, input: std::option::Option<crate::model::OsType>) -> Self {
self.os_type = input;
self
}
pub fn build(self) -> crate::model::IpAddressBasedRemoteInfo {
crate::model::IpAddressBasedRemoteInfo {
ip_address_configuration_time_stamp: self.ip_address_configuration_time_stamp,
auth_type: self.auth_type,
os_type: self.os_type,
}
}
}
}
impl IpAddressBasedRemoteInfo {
pub fn builder() -> crate::model::ip_address_based_remote_info::Builder {
crate::model::ip_address_based_remote_info::Builder::default()
}
}
#[allow(missing_docs)] #[non_exhaustive]
#[derive(
std::clone::Clone,
std::cmp::Eq,
std::cmp::Ord,
std::cmp::PartialEq,
std::cmp::PartialOrd,
std::fmt::Debug,
std::hash::Hash,
)]
pub enum AuthType {
#[allow(missing_docs)] Cert,
#[allow(missing_docs)] Ntlm,
#[allow(missing_docs)] Ssh,
Unknown(crate::types::UnknownVariantValue),
}
impl std::convert::From<&str> for AuthType {
fn from(s: &str) -> Self {
match s {
"CERT" => AuthType::Cert,
"NTLM" => AuthType::Ntlm,
"SSH" => AuthType::Ssh,
other => AuthType::Unknown(crate::types::UnknownVariantValue(other.to_owned())),
}
}
}
impl std::str::FromStr for AuthType {
type Err = std::convert::Infallible;
fn from_str(s: &str) -> std::result::Result<Self, Self::Err> {
Ok(AuthType::from(s))
}
}
impl AuthType {
pub fn as_str(&self) -> &str {
match self {
AuthType::Cert => "CERT",
AuthType::Ntlm => "NTLM",
AuthType::Ssh => "SSH",
AuthType::Unknown(value) => value.as_str(),
}
}
pub const fn values() -> &'static [&'static str] {
&["CERT", "NTLM", "SSH"]
}
}
impl AsRef<str> for AuthType {
fn as_ref(&self) -> &str {
self.as_str()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct VcenterBasedRemoteInfo {
#[doc(hidden)]
pub vcenter_configuration_time_stamp: std::option::Option<std::string::String>,
#[doc(hidden)]
pub os_type: std::option::Option<crate::model::OsType>,
}
impl VcenterBasedRemoteInfo {
pub fn vcenter_configuration_time_stamp(&self) -> std::option::Option<&str> {
self.vcenter_configuration_time_stamp.as_deref()
}
pub fn os_type(&self) -> std::option::Option<&crate::model::OsType> {
self.os_type.as_ref()
}
}
pub mod vcenter_based_remote_info {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) vcenter_configuration_time_stamp: std::option::Option<std::string::String>,
pub(crate) os_type: std::option::Option<crate::model::OsType>,
}
impl Builder {
pub fn vcenter_configuration_time_stamp(
mut self,
input: impl Into<std::string::String>,
) -> Self {
self.vcenter_configuration_time_stamp = Some(input.into());
self
}
pub fn set_vcenter_configuration_time_stamp(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.vcenter_configuration_time_stamp = input;
self
}
pub fn os_type(mut self, input: crate::model::OsType) -> Self {
self.os_type = Some(input);
self
}
pub fn set_os_type(mut self, input: std::option::Option<crate::model::OsType>) -> Self {
self.os_type = input;
self
}
pub fn build(self) -> crate::model::VcenterBasedRemoteInfo {
crate::model::VcenterBasedRemoteInfo {
vcenter_configuration_time_stamp: self.vcenter_configuration_time_stamp,
os_type: self.os_type,
}
}
}
}
impl VcenterBasedRemoteInfo {
pub fn builder() -> crate::model::vcenter_based_remote_info::Builder {
crate::model::vcenter_based_remote_info::Builder::default()
}
}
#[allow(missing_docs)] #[non_exhaustive]
#[derive(
std::clone::Clone,
std::cmp::Eq,
std::cmp::Ord,
std::cmp::PartialEq,
std::cmp::PartialOrd,
std::fmt::Debug,
std::hash::Hash,
)]
pub enum CollectorHealth {
#[allow(missing_docs)] CollectorHealthy,
#[allow(missing_docs)] CollectorUnhealthy,
Unknown(crate::types::UnknownVariantValue),
}
impl std::convert::From<&str> for CollectorHealth {
fn from(s: &str) -> Self {
match s {
"COLLECTOR_HEALTHY" => CollectorHealth::CollectorHealthy,
"COLLECTOR_UNHEALTHY" => CollectorHealth::CollectorUnhealthy,
other => CollectorHealth::Unknown(crate::types::UnknownVariantValue(other.to_owned())),
}
}
}
impl std::str::FromStr for CollectorHealth {
type Err = std::convert::Infallible;
fn from_str(s: &str) -> std::result::Result<Self, Self::Err> {
Ok(CollectorHealth::from(s))
}
}
impl CollectorHealth {
pub fn as_str(&self) -> &str {
match self {
CollectorHealth::CollectorHealthy => "COLLECTOR_HEALTHY",
CollectorHealth::CollectorUnhealthy => "COLLECTOR_UNHEALTHY",
CollectorHealth::Unknown(value) => value.as_str(),
}
}
pub const fn values() -> &'static [&'static str] {
&["COLLECTOR_HEALTHY", "COLLECTOR_UNHEALTHY"]
}
}
impl AsRef<str> for CollectorHealth {
fn as_ref(&self) -> &str {
self.as_str()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct ApplicationComponentDetail {
#[doc(hidden)]
pub id: std::option::Option<std::string::String>,
#[doc(hidden)]
pub name: std::option::Option<std::string::String>,
#[doc(hidden)]
pub recommendation_set: std::option::Option<crate::model::RecommendationSet>,
#[doc(hidden)]
pub analysis_status: std::option::Option<crate::model::SrcCodeOrDbAnalysisStatus>,
#[doc(hidden)]
pub status_message: std::option::Option<std::string::String>,
#[doc(hidden)]
pub list_antipattern_severity_summary:
std::option::Option<std::vec::Vec<crate::model::AntipatternSeveritySummary>>,
#[doc(hidden)]
pub database_config_detail: std::option::Option<crate::model::DatabaseConfigDetail>,
#[doc(hidden)]
pub source_code_repositories:
std::option::Option<std::vec::Vec<crate::model::SourceCodeRepository>>,
#[doc(hidden)]
pub app_type: std::option::Option<crate::model::AppType>,
#[doc(hidden)]
pub resource_sub_type: std::option::Option<crate::model::ResourceSubType>,
#[doc(hidden)]
pub inclusion_status: std::option::Option<crate::model::InclusionStatus>,
#[doc(hidden)]
pub antipattern_report_s3_object: std::option::Option<crate::model::S3Object>,
#[doc(hidden)]
pub antipattern_report_status: std::option::Option<crate::model::AntipatternReportStatus>,
#[doc(hidden)]
pub antipattern_report_status_message: std::option::Option<std::string::String>,
#[doc(hidden)]
pub os_version: std::option::Option<std::string::String>,
#[doc(hidden)]
pub os_driver: std::option::Option<std::string::String>,
#[doc(hidden)]
pub last_analyzed_timestamp: std::option::Option<aws_smithy_types::DateTime>,
#[doc(hidden)]
pub associated_server_id: std::option::Option<std::string::String>,
#[doc(hidden)]
pub more_server_association_exists: std::option::Option<bool>,
#[doc(hidden)]
pub runtime_status: std::option::Option<crate::model::RuntimeAnalysisStatus>,
#[doc(hidden)]
pub runtime_status_message: std::option::Option<std::string::String>,
#[doc(hidden)]
pub app_unit_error: std::option::Option<crate::model::AppUnitError>,
}
impl ApplicationComponentDetail {
pub fn id(&self) -> std::option::Option<&str> {
self.id.as_deref()
}
pub fn name(&self) -> std::option::Option<&str> {
self.name.as_deref()
}
pub fn recommendation_set(&self) -> std::option::Option<&crate::model::RecommendationSet> {
self.recommendation_set.as_ref()
}
pub fn analysis_status(&self) -> std::option::Option<&crate::model::SrcCodeOrDbAnalysisStatus> {
self.analysis_status.as_ref()
}
pub fn status_message(&self) -> std::option::Option<&str> {
self.status_message.as_deref()
}
pub fn list_antipattern_severity_summary(
&self,
) -> std::option::Option<&[crate::model::AntipatternSeveritySummary]> {
self.list_antipattern_severity_summary.as_deref()
}
pub fn database_config_detail(
&self,
) -> std::option::Option<&crate::model::DatabaseConfigDetail> {
self.database_config_detail.as_ref()
}
pub fn source_code_repositories(
&self,
) -> std::option::Option<&[crate::model::SourceCodeRepository]> {
self.source_code_repositories.as_deref()
}
pub fn app_type(&self) -> std::option::Option<&crate::model::AppType> {
self.app_type.as_ref()
}
pub fn resource_sub_type(&self) -> std::option::Option<&crate::model::ResourceSubType> {
self.resource_sub_type.as_ref()
}
pub fn inclusion_status(&self) -> std::option::Option<&crate::model::InclusionStatus> {
self.inclusion_status.as_ref()
}
pub fn antipattern_report_s3_object(&self) -> std::option::Option<&crate::model::S3Object> {
self.antipattern_report_s3_object.as_ref()
}
pub fn antipattern_report_status(
&self,
) -> std::option::Option<&crate::model::AntipatternReportStatus> {
self.antipattern_report_status.as_ref()
}
pub fn antipattern_report_status_message(&self) -> std::option::Option<&str> {
self.antipattern_report_status_message.as_deref()
}
pub fn os_version(&self) -> std::option::Option<&str> {
self.os_version.as_deref()
}
pub fn os_driver(&self) -> std::option::Option<&str> {
self.os_driver.as_deref()
}
pub fn last_analyzed_timestamp(&self) -> std::option::Option<&aws_smithy_types::DateTime> {
self.last_analyzed_timestamp.as_ref()
}
pub fn associated_server_id(&self) -> std::option::Option<&str> {
self.associated_server_id.as_deref()
}
pub fn more_server_association_exists(&self) -> std::option::Option<bool> {
self.more_server_association_exists
}
pub fn runtime_status(&self) -> std::option::Option<&crate::model::RuntimeAnalysisStatus> {
self.runtime_status.as_ref()
}
pub fn runtime_status_message(&self) -> std::option::Option<&str> {
self.runtime_status_message.as_deref()
}
pub fn app_unit_error(&self) -> std::option::Option<&crate::model::AppUnitError> {
self.app_unit_error.as_ref()
}
}
pub mod application_component_detail {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) id: std::option::Option<std::string::String>,
pub(crate) name: std::option::Option<std::string::String>,
pub(crate) recommendation_set: std::option::Option<crate::model::RecommendationSet>,
pub(crate) analysis_status: std::option::Option<crate::model::SrcCodeOrDbAnalysisStatus>,
pub(crate) status_message: std::option::Option<std::string::String>,
pub(crate) list_antipattern_severity_summary:
std::option::Option<std::vec::Vec<crate::model::AntipatternSeveritySummary>>,
pub(crate) database_config_detail: std::option::Option<crate::model::DatabaseConfigDetail>,
pub(crate) source_code_repositories:
std::option::Option<std::vec::Vec<crate::model::SourceCodeRepository>>,
pub(crate) app_type: std::option::Option<crate::model::AppType>,
pub(crate) resource_sub_type: std::option::Option<crate::model::ResourceSubType>,
pub(crate) inclusion_status: std::option::Option<crate::model::InclusionStatus>,
pub(crate) antipattern_report_s3_object: std::option::Option<crate::model::S3Object>,
pub(crate) antipattern_report_status:
std::option::Option<crate::model::AntipatternReportStatus>,
pub(crate) antipattern_report_status_message: std::option::Option<std::string::String>,
pub(crate) os_version: std::option::Option<std::string::String>,
pub(crate) os_driver: std::option::Option<std::string::String>,
pub(crate) last_analyzed_timestamp: std::option::Option<aws_smithy_types::DateTime>,
pub(crate) associated_server_id: std::option::Option<std::string::String>,
pub(crate) more_server_association_exists: std::option::Option<bool>,
pub(crate) runtime_status: std::option::Option<crate::model::RuntimeAnalysisStatus>,
pub(crate) runtime_status_message: std::option::Option<std::string::String>,
pub(crate) app_unit_error: std::option::Option<crate::model::AppUnitError>,
}
impl Builder {
pub fn id(mut self, input: impl Into<std::string::String>) -> Self {
self.id = Some(input.into());
self
}
pub fn set_id(mut self, input: std::option::Option<std::string::String>) -> Self {
self.id = input;
self
}
pub fn name(mut self, input: impl Into<std::string::String>) -> Self {
self.name = Some(input.into());
self
}
pub fn set_name(mut self, input: std::option::Option<std::string::String>) -> Self {
self.name = input;
self
}
pub fn recommendation_set(mut self, input: crate::model::RecommendationSet) -> Self {
self.recommendation_set = Some(input);
self
}
pub fn set_recommendation_set(
mut self,
input: std::option::Option<crate::model::RecommendationSet>,
) -> Self {
self.recommendation_set = input;
self
}
pub fn analysis_status(mut self, input: crate::model::SrcCodeOrDbAnalysisStatus) -> Self {
self.analysis_status = Some(input);
self
}
pub fn set_analysis_status(
mut self,
input: std::option::Option<crate::model::SrcCodeOrDbAnalysisStatus>,
) -> Self {
self.analysis_status = input;
self
}
pub fn status_message(mut self, input: impl Into<std::string::String>) -> Self {
self.status_message = Some(input.into());
self
}
pub fn set_status_message(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.status_message = input;
self
}
pub fn list_antipattern_severity_summary(
mut self,
input: crate::model::AntipatternSeveritySummary,
) -> Self {
let mut v = self.list_antipattern_severity_summary.unwrap_or_default();
v.push(input);
self.list_antipattern_severity_summary = Some(v);
self
}
pub fn set_list_antipattern_severity_summary(
mut self,
input: std::option::Option<std::vec::Vec<crate::model::AntipatternSeveritySummary>>,
) -> Self {
self.list_antipattern_severity_summary = input;
self
}
pub fn database_config_detail(mut self, input: crate::model::DatabaseConfigDetail) -> Self {
self.database_config_detail = Some(input);
self
}
pub fn set_database_config_detail(
mut self,
input: std::option::Option<crate::model::DatabaseConfigDetail>,
) -> Self {
self.database_config_detail = input;
self
}
pub fn source_code_repositories(
mut self,
input: crate::model::SourceCodeRepository,
) -> Self {
let mut v = self.source_code_repositories.unwrap_or_default();
v.push(input);
self.source_code_repositories = Some(v);
self
}
pub fn set_source_code_repositories(
mut self,
input: std::option::Option<std::vec::Vec<crate::model::SourceCodeRepository>>,
) -> Self {
self.source_code_repositories = input;
self
}
pub fn app_type(mut self, input: crate::model::AppType) -> Self {
self.app_type = Some(input);
self
}
pub fn set_app_type(mut self, input: std::option::Option<crate::model::AppType>) -> Self {
self.app_type = input;
self
}
pub fn resource_sub_type(mut self, input: crate::model::ResourceSubType) -> Self {
self.resource_sub_type = Some(input);
self
}
pub fn set_resource_sub_type(
mut self,
input: std::option::Option<crate::model::ResourceSubType>,
) -> Self {
self.resource_sub_type = input;
self
}
pub fn inclusion_status(mut self, input: crate::model::InclusionStatus) -> Self {
self.inclusion_status = Some(input);
self
}
pub fn set_inclusion_status(
mut self,
input: std::option::Option<crate::model::InclusionStatus>,
) -> Self {
self.inclusion_status = input;
self
}
pub fn antipattern_report_s3_object(mut self, input: crate::model::S3Object) -> Self {
self.antipattern_report_s3_object = Some(input);
self
}
pub fn set_antipattern_report_s3_object(
mut self,
input: std::option::Option<crate::model::S3Object>,
) -> Self {
self.antipattern_report_s3_object = input;
self
}
pub fn antipattern_report_status(
mut self,
input: crate::model::AntipatternReportStatus,
) -> Self {
self.antipattern_report_status = Some(input);
self
}
pub fn set_antipattern_report_status(
mut self,
input: std::option::Option<crate::model::AntipatternReportStatus>,
) -> Self {
self.antipattern_report_status = input;
self
}
pub fn antipattern_report_status_message(
mut self,
input: impl Into<std::string::String>,
) -> Self {
self.antipattern_report_status_message = Some(input.into());
self
}
pub fn set_antipattern_report_status_message(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.antipattern_report_status_message = input;
self
}
pub fn os_version(mut self, input: impl Into<std::string::String>) -> Self {
self.os_version = Some(input.into());
self
}
pub fn set_os_version(mut self, input: std::option::Option<std::string::String>) -> Self {
self.os_version = input;
self
}
pub fn os_driver(mut self, input: impl Into<std::string::String>) -> Self {
self.os_driver = Some(input.into());
self
}
pub fn set_os_driver(mut self, input: std::option::Option<std::string::String>) -> Self {
self.os_driver = input;
self
}
pub fn last_analyzed_timestamp(mut self, input: aws_smithy_types::DateTime) -> Self {
self.last_analyzed_timestamp = Some(input);
self
}
pub fn set_last_analyzed_timestamp(
mut self,
input: std::option::Option<aws_smithy_types::DateTime>,
) -> Self {
self.last_analyzed_timestamp = input;
self
}
pub fn associated_server_id(mut self, input: impl Into<std::string::String>) -> Self {
self.associated_server_id = Some(input.into());
self
}
pub fn set_associated_server_id(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.associated_server_id = input;
self
}
pub fn more_server_association_exists(mut self, input: bool) -> Self {
self.more_server_association_exists = Some(input);
self
}
pub fn set_more_server_association_exists(
mut self,
input: std::option::Option<bool>,
) -> Self {
self.more_server_association_exists = input;
self
}
pub fn runtime_status(mut self, input: crate::model::RuntimeAnalysisStatus) -> Self {
self.runtime_status = Some(input);
self
}
pub fn set_runtime_status(
mut self,
input: std::option::Option<crate::model::RuntimeAnalysisStatus>,
) -> Self {
self.runtime_status = input;
self
}
pub fn runtime_status_message(mut self, input: impl Into<std::string::String>) -> Self {
self.runtime_status_message = Some(input.into());
self
}
pub fn set_runtime_status_message(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.runtime_status_message = input;
self
}
pub fn app_unit_error(mut self, input: crate::model::AppUnitError) -> Self {
self.app_unit_error = Some(input);
self
}
pub fn set_app_unit_error(
mut self,
input: std::option::Option<crate::model::AppUnitError>,
) -> Self {
self.app_unit_error = input;
self
}
pub fn build(self) -> crate::model::ApplicationComponentDetail {
crate::model::ApplicationComponentDetail {
id: self.id,
name: self.name,
recommendation_set: self.recommendation_set,
analysis_status: self.analysis_status,
status_message: self.status_message,
list_antipattern_severity_summary: self.list_antipattern_severity_summary,
database_config_detail: self.database_config_detail,
source_code_repositories: self.source_code_repositories,
app_type: self.app_type,
resource_sub_type: self.resource_sub_type,
inclusion_status: self.inclusion_status,
antipattern_report_s3_object: self.antipattern_report_s3_object,
antipattern_report_status: self.antipattern_report_status,
antipattern_report_status_message: self.antipattern_report_status_message,
os_version: self.os_version,
os_driver: self.os_driver,
last_analyzed_timestamp: self.last_analyzed_timestamp,
associated_server_id: self.associated_server_id,
more_server_association_exists: self.more_server_association_exists,
runtime_status: self.runtime_status,
runtime_status_message: self.runtime_status_message,
app_unit_error: self.app_unit_error,
}
}
}
}
impl ApplicationComponentDetail {
pub fn builder() -> crate::model::application_component_detail::Builder {
crate::model::application_component_detail::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct AppUnitError {
#[doc(hidden)]
pub app_unit_error_category: std::option::Option<crate::model::AppUnitErrorCategory>,
}
impl AppUnitError {
pub fn app_unit_error_category(
&self,
) -> std::option::Option<&crate::model::AppUnitErrorCategory> {
self.app_unit_error_category.as_ref()
}
}
pub mod app_unit_error {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) app_unit_error_category: std::option::Option<crate::model::AppUnitErrorCategory>,
}
impl Builder {
pub fn app_unit_error_category(
mut self,
input: crate::model::AppUnitErrorCategory,
) -> Self {
self.app_unit_error_category = Some(input);
self
}
pub fn set_app_unit_error_category(
mut self,
input: std::option::Option<crate::model::AppUnitErrorCategory>,
) -> Self {
self.app_unit_error_category = input;
self
}
pub fn build(self) -> crate::model::AppUnitError {
crate::model::AppUnitError {
app_unit_error_category: self.app_unit_error_category,
}
}
}
}
impl AppUnitError {
pub fn builder() -> crate::model::app_unit_error::Builder {
crate::model::app_unit_error::Builder::default()
}
}
#[allow(missing_docs)] #[non_exhaustive]
#[derive(
std::clone::Clone,
std::cmp::Eq,
std::cmp::Ord,
std::cmp::PartialEq,
std::cmp::PartialOrd,
std::fmt::Debug,
std::hash::Hash,
)]
pub enum AppUnitErrorCategory {
#[allow(missing_docs)] ConnectivityError,
#[allow(missing_docs)] CredentialError,
#[allow(missing_docs)] OtherError,
#[allow(missing_docs)] PermissionError,
#[allow(missing_docs)] UnsupportedError,
Unknown(crate::types::UnknownVariantValue),
}
impl std::convert::From<&str> for AppUnitErrorCategory {
fn from(s: &str) -> Self {
match s {
"CONNECTIVITY_ERROR" => AppUnitErrorCategory::ConnectivityError,
"CREDENTIAL_ERROR" => AppUnitErrorCategory::CredentialError,
"OTHER_ERROR" => AppUnitErrorCategory::OtherError,
"PERMISSION_ERROR" => AppUnitErrorCategory::PermissionError,
"UNSUPPORTED_ERROR" => AppUnitErrorCategory::UnsupportedError,
other => {
AppUnitErrorCategory::Unknown(crate::types::UnknownVariantValue(other.to_owned()))
}
}
}
}
impl std::str::FromStr for AppUnitErrorCategory {
type Err = std::convert::Infallible;
fn from_str(s: &str) -> std::result::Result<Self, Self::Err> {
Ok(AppUnitErrorCategory::from(s))
}
}
impl AppUnitErrorCategory {
pub fn as_str(&self) -> &str {
match self {
AppUnitErrorCategory::ConnectivityError => "CONNECTIVITY_ERROR",
AppUnitErrorCategory::CredentialError => "CREDENTIAL_ERROR",
AppUnitErrorCategory::OtherError => "OTHER_ERROR",
AppUnitErrorCategory::PermissionError => "PERMISSION_ERROR",
AppUnitErrorCategory::UnsupportedError => "UNSUPPORTED_ERROR",
AppUnitErrorCategory::Unknown(value) => value.as_str(),
}
}
pub const fn values() -> &'static [&'static str] {
&[
"CONNECTIVITY_ERROR",
"CREDENTIAL_ERROR",
"OTHER_ERROR",
"PERMISSION_ERROR",
"UNSUPPORTED_ERROR",
]
}
}
impl AsRef<str> for AppUnitErrorCategory {
fn as_ref(&self) -> &str {
self.as_str()
}
}
#[allow(missing_docs)] #[non_exhaustive]
#[derive(
std::clone::Clone,
std::cmp::Eq,
std::cmp::Ord,
std::cmp::PartialEq,
std::cmp::PartialOrd,
std::fmt::Debug,
std::hash::Hash,
)]
pub enum RuntimeAnalysisStatus {
#[allow(missing_docs)] AnalysisFailed,
#[allow(missing_docs)] AnalysisStarted,
#[allow(missing_docs)] AnalysisSuccess,
#[allow(missing_docs)] AnalysisToBeScheduled,
Unknown(crate::types::UnknownVariantValue),
}
impl std::convert::From<&str> for RuntimeAnalysisStatus {
fn from(s: &str) -> Self {
match s {
"ANALYSIS_FAILED" => RuntimeAnalysisStatus::AnalysisFailed,
"ANALYSIS_STARTED" => RuntimeAnalysisStatus::AnalysisStarted,
"ANALYSIS_SUCCESS" => RuntimeAnalysisStatus::AnalysisSuccess,
"ANALYSIS_TO_BE_SCHEDULED" => RuntimeAnalysisStatus::AnalysisToBeScheduled,
other => {
RuntimeAnalysisStatus::Unknown(crate::types::UnknownVariantValue(other.to_owned()))
}
}
}
}
impl std::str::FromStr for RuntimeAnalysisStatus {
type Err = std::convert::Infallible;
fn from_str(s: &str) -> std::result::Result<Self, Self::Err> {
Ok(RuntimeAnalysisStatus::from(s))
}
}
impl RuntimeAnalysisStatus {
pub fn as_str(&self) -> &str {
match self {
RuntimeAnalysisStatus::AnalysisFailed => "ANALYSIS_FAILED",
RuntimeAnalysisStatus::AnalysisStarted => "ANALYSIS_STARTED",
RuntimeAnalysisStatus::AnalysisSuccess => "ANALYSIS_SUCCESS",
RuntimeAnalysisStatus::AnalysisToBeScheduled => "ANALYSIS_TO_BE_SCHEDULED",
RuntimeAnalysisStatus::Unknown(value) => value.as_str(),
}
}
pub const fn values() -> &'static [&'static str] {
&[
"ANALYSIS_FAILED",
"ANALYSIS_STARTED",
"ANALYSIS_SUCCESS",
"ANALYSIS_TO_BE_SCHEDULED",
]
}
}
impl AsRef<str> for RuntimeAnalysisStatus {
fn as_ref(&self) -> &str {
self.as_str()
}
}
#[allow(missing_docs)] #[non_exhaustive]
#[derive(
std::clone::Clone,
std::cmp::Eq,
std::cmp::Ord,
std::cmp::PartialEq,
std::cmp::PartialOrd,
std::fmt::Debug,
std::hash::Hash,
)]
pub enum ResourceSubType {
#[allow(missing_docs)] Database,
#[allow(missing_docs)] DatabaseProcess,
#[allow(missing_docs)] Process,
Unknown(crate::types::UnknownVariantValue),
}
impl std::convert::From<&str> for ResourceSubType {
fn from(s: &str) -> Self {
match s {
"Database" => ResourceSubType::Database,
"DatabaseProcess" => ResourceSubType::DatabaseProcess,
"Process" => ResourceSubType::Process,
other => ResourceSubType::Unknown(crate::types::UnknownVariantValue(other.to_owned())),
}
}
}
impl std::str::FromStr for ResourceSubType {
type Err = std::convert::Infallible;
fn from_str(s: &str) -> std::result::Result<Self, Self::Err> {
Ok(ResourceSubType::from(s))
}
}
impl ResourceSubType {
pub fn as_str(&self) -> &str {
match self {
ResourceSubType::Database => "Database",
ResourceSubType::DatabaseProcess => "DatabaseProcess",
ResourceSubType::Process => "Process",
ResourceSubType::Unknown(value) => value.as_str(),
}
}
pub const fn values() -> &'static [&'static str] {
&["Database", "DatabaseProcess", "Process"]
}
}
impl AsRef<str> for ResourceSubType {
fn as_ref(&self) -> &str {
self.as_str()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct SourceCodeRepository {
#[doc(hidden)]
pub repository: std::option::Option<std::string::String>,
#[doc(hidden)]
pub branch: std::option::Option<std::string::String>,
#[doc(hidden)]
pub version_control_type: std::option::Option<std::string::String>,
#[doc(hidden)]
pub project_name: std::option::Option<std::string::String>,
}
impl SourceCodeRepository {
pub fn repository(&self) -> std::option::Option<&str> {
self.repository.as_deref()
}
pub fn branch(&self) -> std::option::Option<&str> {
self.branch.as_deref()
}
pub fn version_control_type(&self) -> std::option::Option<&str> {
self.version_control_type.as_deref()
}
pub fn project_name(&self) -> std::option::Option<&str> {
self.project_name.as_deref()
}
}
pub mod source_code_repository {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) repository: std::option::Option<std::string::String>,
pub(crate) branch: std::option::Option<std::string::String>,
pub(crate) version_control_type: std::option::Option<std::string::String>,
pub(crate) project_name: std::option::Option<std::string::String>,
}
impl Builder {
pub fn repository(mut self, input: impl Into<std::string::String>) -> Self {
self.repository = Some(input.into());
self
}
pub fn set_repository(mut self, input: std::option::Option<std::string::String>) -> Self {
self.repository = input;
self
}
pub fn branch(mut self, input: impl Into<std::string::String>) -> Self {
self.branch = Some(input.into());
self
}
pub fn set_branch(mut self, input: std::option::Option<std::string::String>) -> Self {
self.branch = input;
self
}
pub fn version_control_type(mut self, input: impl Into<std::string::String>) -> Self {
self.version_control_type = Some(input.into());
self
}
pub fn set_version_control_type(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.version_control_type = input;
self
}
pub fn project_name(mut self, input: impl Into<std::string::String>) -> Self {
self.project_name = Some(input.into());
self
}
pub fn set_project_name(mut self, input: std::option::Option<std::string::String>) -> Self {
self.project_name = input;
self
}
pub fn build(self) -> crate::model::SourceCodeRepository {
crate::model::SourceCodeRepository {
repository: self.repository,
branch: self.branch,
version_control_type: self.version_control_type,
project_name: self.project_name,
}
}
}
}
impl SourceCodeRepository {
pub fn builder() -> crate::model::source_code_repository::Builder {
crate::model::source_code_repository::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct DatabaseConfigDetail {
#[doc(hidden)]
pub secret_name: std::option::Option<std::string::String>,
}
impl DatabaseConfigDetail {
pub fn secret_name(&self) -> std::option::Option<&str> {
self.secret_name.as_deref()
}
}
pub mod database_config_detail {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) secret_name: std::option::Option<std::string::String>,
}
impl Builder {
pub fn secret_name(mut self, input: impl Into<std::string::String>) -> Self {
self.secret_name = Some(input.into());
self
}
pub fn set_secret_name(mut self, input: std::option::Option<std::string::String>) -> Self {
self.secret_name = input;
self
}
pub fn build(self) -> crate::model::DatabaseConfigDetail {
crate::model::DatabaseConfigDetail {
secret_name: self.secret_name,
}
}
}
}
impl DatabaseConfigDetail {
pub fn builder() -> crate::model::database_config_detail::Builder {
crate::model::database_config_detail::Builder::default()
}
}
#[allow(missing_docs)] #[non_exhaustive]
#[derive(
std::clone::Clone,
std::cmp::Eq,
std::cmp::Ord,
std::cmp::PartialEq,
std::cmp::PartialOrd,
std::fmt::Debug,
std::hash::Hash,
)]
pub enum SrcCodeOrDbAnalysisStatus {
#[allow(missing_docs)] AnalysisFailed,
#[allow(missing_docs)] AnalysisPartialSuccess,
#[allow(missing_docs)] AnalysisStarted,
#[allow(missing_docs)] AnalysisSuccess,
#[allow(missing_docs)] AnalysisToBeScheduled,
#[allow(missing_docs)] Configured,
#[allow(missing_docs)] Unconfigured,
Unknown(crate::types::UnknownVariantValue),
}
impl std::convert::From<&str> for SrcCodeOrDbAnalysisStatus {
fn from(s: &str) -> Self {
match s {
"ANALYSIS_FAILED" => SrcCodeOrDbAnalysisStatus::AnalysisFailed,
"ANALYSIS_PARTIAL_SUCCESS" => SrcCodeOrDbAnalysisStatus::AnalysisPartialSuccess,
"ANALYSIS_STARTED" => SrcCodeOrDbAnalysisStatus::AnalysisStarted,
"ANALYSIS_SUCCESS" => SrcCodeOrDbAnalysisStatus::AnalysisSuccess,
"ANALYSIS_TO_BE_SCHEDULED" => SrcCodeOrDbAnalysisStatus::AnalysisToBeScheduled,
"CONFIGURED" => SrcCodeOrDbAnalysisStatus::Configured,
"UNCONFIGURED" => SrcCodeOrDbAnalysisStatus::Unconfigured,
other => SrcCodeOrDbAnalysisStatus::Unknown(crate::types::UnknownVariantValue(
other.to_owned(),
)),
}
}
}
impl std::str::FromStr for SrcCodeOrDbAnalysisStatus {
type Err = std::convert::Infallible;
fn from_str(s: &str) -> std::result::Result<Self, Self::Err> {
Ok(SrcCodeOrDbAnalysisStatus::from(s))
}
}
impl SrcCodeOrDbAnalysisStatus {
pub fn as_str(&self) -> &str {
match self {
SrcCodeOrDbAnalysisStatus::AnalysisFailed => "ANALYSIS_FAILED",
SrcCodeOrDbAnalysisStatus::AnalysisPartialSuccess => "ANALYSIS_PARTIAL_SUCCESS",
SrcCodeOrDbAnalysisStatus::AnalysisStarted => "ANALYSIS_STARTED",
SrcCodeOrDbAnalysisStatus::AnalysisSuccess => "ANALYSIS_SUCCESS",
SrcCodeOrDbAnalysisStatus::AnalysisToBeScheduled => "ANALYSIS_TO_BE_SCHEDULED",
SrcCodeOrDbAnalysisStatus::Configured => "CONFIGURED",
SrcCodeOrDbAnalysisStatus::Unconfigured => "UNCONFIGURED",
SrcCodeOrDbAnalysisStatus::Unknown(value) => value.as_str(),
}
}
pub const fn values() -> &'static [&'static str] {
&[
"ANALYSIS_FAILED",
"ANALYSIS_PARTIAL_SUCCESS",
"ANALYSIS_STARTED",
"ANALYSIS_SUCCESS",
"ANALYSIS_TO_BE_SCHEDULED",
"CONFIGURED",
"UNCONFIGURED",
]
}
}
impl AsRef<str> for SrcCodeOrDbAnalysisStatus {
fn as_ref(&self) -> &str {
self.as_str()
}
}
#[allow(missing_docs)] #[non_exhaustive]
#[derive(
std::clone::Clone,
std::cmp::Eq,
std::cmp::Ord,
std::cmp::PartialEq,
std::cmp::PartialOrd,
std::fmt::Debug,
std::hash::Hash,
)]
pub enum ApplicationComponentCriteria {
#[allow(missing_docs)] AnalysisStatus,
#[allow(missing_docs)] AppName,
#[allow(missing_docs)] AppType,
#[allow(missing_docs)] Destination,
#[allow(missing_docs)] ErrorCategory,
#[allow(missing_docs)] NotDefined,
#[allow(missing_docs)] ServerId,
#[allow(missing_docs)] Strategy,
Unknown(crate::types::UnknownVariantValue),
}
impl std::convert::From<&str> for ApplicationComponentCriteria {
fn from(s: &str) -> Self {
match s {
"ANALYSIS_STATUS" => ApplicationComponentCriteria::AnalysisStatus,
"APP_NAME" => ApplicationComponentCriteria::AppName,
"APP_TYPE" => ApplicationComponentCriteria::AppType,
"DESTINATION" => ApplicationComponentCriteria::Destination,
"ERROR_CATEGORY" => ApplicationComponentCriteria::ErrorCategory,
"NOT_DEFINED" => ApplicationComponentCriteria::NotDefined,
"SERVER_ID" => ApplicationComponentCriteria::ServerId,
"STRATEGY" => ApplicationComponentCriteria::Strategy,
other => ApplicationComponentCriteria::Unknown(crate::types::UnknownVariantValue(
other.to_owned(),
)),
}
}
}
impl std::str::FromStr for ApplicationComponentCriteria {
type Err = std::convert::Infallible;
fn from_str(s: &str) -> std::result::Result<Self, Self::Err> {
Ok(ApplicationComponentCriteria::from(s))
}
}
impl ApplicationComponentCriteria {
pub fn as_str(&self) -> &str {
match self {
ApplicationComponentCriteria::AnalysisStatus => "ANALYSIS_STATUS",
ApplicationComponentCriteria::AppName => "APP_NAME",
ApplicationComponentCriteria::AppType => "APP_TYPE",
ApplicationComponentCriteria::Destination => "DESTINATION",
ApplicationComponentCriteria::ErrorCategory => "ERROR_CATEGORY",
ApplicationComponentCriteria::NotDefined => "NOT_DEFINED",
ApplicationComponentCriteria::ServerId => "SERVER_ID",
ApplicationComponentCriteria::Strategy => "STRATEGY",
ApplicationComponentCriteria::Unknown(value) => value.as_str(),
}
}
pub const fn values() -> &'static [&'static str] {
&[
"ANALYSIS_STATUS",
"APP_NAME",
"APP_TYPE",
"DESTINATION",
"ERROR_CATEGORY",
"NOT_DEFINED",
"SERVER_ID",
"STRATEGY",
]
}
}
impl AsRef<str> for ApplicationComponentCriteria {
fn as_ref(&self) -> &str {
self.as_str()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct ServerStrategy {
#[doc(hidden)]
pub recommendation: std::option::Option<crate::model::RecommendationSet>,
#[doc(hidden)]
pub status: std::option::Option<crate::model::StrategyRecommendation>,
#[doc(hidden)]
pub number_of_application_components: std::option::Option<i32>,
#[doc(hidden)]
pub is_preferred: std::option::Option<bool>,
}
impl ServerStrategy {
pub fn recommendation(&self) -> std::option::Option<&crate::model::RecommendationSet> {
self.recommendation.as_ref()
}
pub fn status(&self) -> std::option::Option<&crate::model::StrategyRecommendation> {
self.status.as_ref()
}
pub fn number_of_application_components(&self) -> std::option::Option<i32> {
self.number_of_application_components
}
pub fn is_preferred(&self) -> std::option::Option<bool> {
self.is_preferred
}
}
pub mod server_strategy {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) recommendation: std::option::Option<crate::model::RecommendationSet>,
pub(crate) status: std::option::Option<crate::model::StrategyRecommendation>,
pub(crate) number_of_application_components: std::option::Option<i32>,
pub(crate) is_preferred: std::option::Option<bool>,
}
impl Builder {
pub fn recommendation(mut self, input: crate::model::RecommendationSet) -> Self {
self.recommendation = Some(input);
self
}
pub fn set_recommendation(
mut self,
input: std::option::Option<crate::model::RecommendationSet>,
) -> Self {
self.recommendation = input;
self
}
pub fn status(mut self, input: crate::model::StrategyRecommendation) -> Self {
self.status = Some(input);
self
}
pub fn set_status(
mut self,
input: std::option::Option<crate::model::StrategyRecommendation>,
) -> Self {
self.status = input;
self
}
pub fn number_of_application_components(mut self, input: i32) -> Self {
self.number_of_application_components = Some(input);
self
}
pub fn set_number_of_application_components(
mut self,
input: std::option::Option<i32>,
) -> Self {
self.number_of_application_components = input;
self
}
pub fn is_preferred(mut self, input: bool) -> Self {
self.is_preferred = Some(input);
self
}
pub fn set_is_preferred(mut self, input: std::option::Option<bool>) -> Self {
self.is_preferred = input;
self
}
pub fn build(self) -> crate::model::ServerStrategy {
crate::model::ServerStrategy {
recommendation: self.recommendation,
status: self.status,
number_of_application_components: self.number_of_application_components,
is_preferred: self.is_preferred,
}
}
}
}
impl ServerStrategy {
pub fn builder() -> crate::model::server_strategy::Builder {
crate::model::server_strategy::Builder::default()
}
}
#[allow(missing_docs)] #[non_exhaustive]
#[derive(
std::clone::Clone,
std::cmp::Eq,
std::cmp::Ord,
std::cmp::PartialEq,
std::cmp::PartialOrd,
std::fmt::Debug,
std::hash::Hash,
)]
pub enum StrategyRecommendation {
#[allow(missing_docs)] NotRecommended,
#[allow(missing_docs)] Potential,
#[allow(missing_docs)] Recommended,
#[allow(missing_docs)] ViableOption,
Unknown(crate::types::UnknownVariantValue),
}
impl std::convert::From<&str> for StrategyRecommendation {
fn from(s: &str) -> Self {
match s {
"notRecommended" => StrategyRecommendation::NotRecommended,
"potential" => StrategyRecommendation::Potential,
"recommended" => StrategyRecommendation::Recommended,
"viableOption" => StrategyRecommendation::ViableOption,
other => {
StrategyRecommendation::Unknown(crate::types::UnknownVariantValue(other.to_owned()))
}
}
}
}
impl std::str::FromStr for StrategyRecommendation {
type Err = std::convert::Infallible;
fn from_str(s: &str) -> std::result::Result<Self, Self::Err> {
Ok(StrategyRecommendation::from(s))
}
}
impl StrategyRecommendation {
pub fn as_str(&self) -> &str {
match self {
StrategyRecommendation::NotRecommended => "notRecommended",
StrategyRecommendation::Potential => "potential",
StrategyRecommendation::Recommended => "recommended",
StrategyRecommendation::ViableOption => "viableOption",
StrategyRecommendation::Unknown(value) => value.as_str(),
}
}
pub const fn values() -> &'static [&'static str] {
&["notRecommended", "potential", "recommended", "viableOption"]
}
}
impl AsRef<str> for StrategyRecommendation {
fn as_ref(&self) -> &str {
self.as_str()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct AssociatedApplication {
#[doc(hidden)]
pub name: std::option::Option<std::string::String>,
#[doc(hidden)]
pub id: std::option::Option<std::string::String>,
}
impl AssociatedApplication {
pub fn name(&self) -> std::option::Option<&str> {
self.name.as_deref()
}
pub fn id(&self) -> std::option::Option<&str> {
self.id.as_deref()
}
}
pub mod associated_application {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) name: std::option::Option<std::string::String>,
pub(crate) id: std::option::Option<std::string::String>,
}
impl Builder {
pub fn name(mut self, input: impl Into<std::string::String>) -> Self {
self.name = Some(input.into());
self
}
pub fn set_name(mut self, input: std::option::Option<std::string::String>) -> Self {
self.name = input;
self
}
pub fn id(mut self, input: impl Into<std::string::String>) -> Self {
self.id = Some(input.into());
self
}
pub fn set_id(mut self, input: std::option::Option<std::string::String>) -> Self {
self.id = input;
self
}
pub fn build(self) -> crate::model::AssociatedApplication {
crate::model::AssociatedApplication {
name: self.name,
id: self.id,
}
}
}
}
impl AssociatedApplication {
pub fn builder() -> crate::model::associated_application::Builder {
crate::model::associated_application::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct RecommendationReportDetails {
#[doc(hidden)]
pub status: std::option::Option<crate::model::RecommendationReportStatus>,
#[doc(hidden)]
pub status_message: std::option::Option<std::string::String>,
#[doc(hidden)]
pub start_time: std::option::Option<aws_smithy_types::DateTime>,
#[doc(hidden)]
pub completion_time: std::option::Option<aws_smithy_types::DateTime>,
#[doc(hidden)]
pub s3_bucket: std::option::Option<std::string::String>,
#[doc(hidden)]
pub s3_keys: std::option::Option<std::vec::Vec<std::string::String>>,
}
impl RecommendationReportDetails {
pub fn status(&self) -> std::option::Option<&crate::model::RecommendationReportStatus> {
self.status.as_ref()
}
pub fn status_message(&self) -> std::option::Option<&str> {
self.status_message.as_deref()
}
pub fn start_time(&self) -> std::option::Option<&aws_smithy_types::DateTime> {
self.start_time.as_ref()
}
pub fn completion_time(&self) -> std::option::Option<&aws_smithy_types::DateTime> {
self.completion_time.as_ref()
}
pub fn s3_bucket(&self) -> std::option::Option<&str> {
self.s3_bucket.as_deref()
}
pub fn s3_keys(&self) -> std::option::Option<&[std::string::String]> {
self.s3_keys.as_deref()
}
}
pub mod recommendation_report_details {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) status: std::option::Option<crate::model::RecommendationReportStatus>,
pub(crate) status_message: std::option::Option<std::string::String>,
pub(crate) start_time: std::option::Option<aws_smithy_types::DateTime>,
pub(crate) completion_time: std::option::Option<aws_smithy_types::DateTime>,
pub(crate) s3_bucket: std::option::Option<std::string::String>,
pub(crate) s3_keys: std::option::Option<std::vec::Vec<std::string::String>>,
}
impl Builder {
pub fn status(mut self, input: crate::model::RecommendationReportStatus) -> Self {
self.status = Some(input);
self
}
pub fn set_status(
mut self,
input: std::option::Option<crate::model::RecommendationReportStatus>,
) -> Self {
self.status = input;
self
}
pub fn status_message(mut self, input: impl Into<std::string::String>) -> Self {
self.status_message = Some(input.into());
self
}
pub fn set_status_message(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.status_message = input;
self
}
pub fn start_time(mut self, input: aws_smithy_types::DateTime) -> Self {
self.start_time = Some(input);
self
}
pub fn set_start_time(
mut self,
input: std::option::Option<aws_smithy_types::DateTime>,
) -> Self {
self.start_time = input;
self
}
pub fn completion_time(mut self, input: aws_smithy_types::DateTime) -> Self {
self.completion_time = Some(input);
self
}
pub fn set_completion_time(
mut self,
input: std::option::Option<aws_smithy_types::DateTime>,
) -> Self {
self.completion_time = input;
self
}
pub fn s3_bucket(mut self, input: impl Into<std::string::String>) -> Self {
self.s3_bucket = Some(input.into());
self
}
pub fn set_s3_bucket(mut self, input: std::option::Option<std::string::String>) -> Self {
self.s3_bucket = input;
self
}
pub fn s3_keys(mut self, input: impl Into<std::string::String>) -> Self {
let mut v = self.s3_keys.unwrap_or_default();
v.push(input.into());
self.s3_keys = Some(v);
self
}
pub fn set_s3_keys(
mut self,
input: std::option::Option<std::vec::Vec<std::string::String>>,
) -> Self {
self.s3_keys = input;
self
}
pub fn build(self) -> crate::model::RecommendationReportDetails {
crate::model::RecommendationReportDetails {
status: self.status,
status_message: self.status_message,
start_time: self.start_time,
completion_time: self.completion_time,
s3_bucket: self.s3_bucket,
s3_keys: self.s3_keys,
}
}
}
}
impl RecommendationReportDetails {
pub fn builder() -> crate::model::recommendation_report_details::Builder {
crate::model::recommendation_report_details::Builder::default()
}
}
#[allow(missing_docs)] #[non_exhaustive]
#[derive(
std::clone::Clone,
std::cmp::Eq,
std::cmp::Ord,
std::cmp::PartialEq,
std::cmp::PartialOrd,
std::fmt::Debug,
std::hash::Hash,
)]
pub enum RecommendationReportStatus {
#[allow(missing_docs)] Failed,
#[allow(missing_docs)] InProgress,
#[allow(missing_docs)] Success,
Unknown(crate::types::UnknownVariantValue),
}
impl std::convert::From<&str> for RecommendationReportStatus {
fn from(s: &str) -> Self {
match s {
"FAILED" => RecommendationReportStatus::Failed,
"IN_PROGRESS" => RecommendationReportStatus::InProgress,
"SUCCESS" => RecommendationReportStatus::Success,
other => RecommendationReportStatus::Unknown(crate::types::UnknownVariantValue(
other.to_owned(),
)),
}
}
}
impl std::str::FromStr for RecommendationReportStatus {
type Err = std::convert::Infallible;
fn from_str(s: &str) -> std::result::Result<Self, Self::Err> {
Ok(RecommendationReportStatus::from(s))
}
}
impl RecommendationReportStatus {
pub fn as_str(&self) -> &str {
match self {
RecommendationReportStatus::Failed => "FAILED",
RecommendationReportStatus::InProgress => "IN_PROGRESS",
RecommendationReportStatus::Success => "SUCCESS",
RecommendationReportStatus::Unknown(value) => value.as_str(),
}
}
pub const fn values() -> &'static [&'static str] {
&["FAILED", "IN_PROGRESS", "SUCCESS"]
}
}
impl AsRef<str> for RecommendationReportStatus {
fn as_ref(&self) -> &str {
self.as_str()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct AssessmentSummary {
#[doc(hidden)]
pub list_server_strategy_summary:
std::option::Option<std::vec::Vec<crate::model::StrategySummary>>,
#[doc(hidden)]
pub list_application_component_strategy_summary:
std::option::Option<std::vec::Vec<crate::model::StrategySummary>>,
#[doc(hidden)]
pub list_antipattern_severity_summary:
std::option::Option<std::vec::Vec<crate::model::AntipatternSeveritySummary>>,
#[doc(hidden)]
pub list_application_component_summary:
std::option::Option<std::vec::Vec<crate::model::ApplicationComponentSummary>>,
#[doc(hidden)]
pub list_server_summary: std::option::Option<std::vec::Vec<crate::model::ServerSummary>>,
#[doc(hidden)]
pub antipattern_report_s3_object: std::option::Option<crate::model::S3Object>,
#[doc(hidden)]
pub antipattern_report_status: std::option::Option<crate::model::AntipatternReportStatus>,
#[doc(hidden)]
pub antipattern_report_status_message: std::option::Option<std::string::String>,
#[doc(hidden)]
pub last_analyzed_timestamp: std::option::Option<aws_smithy_types::DateTime>,
#[doc(hidden)]
pub list_application_component_status_summary:
std::option::Option<std::vec::Vec<crate::model::ApplicationComponentStatusSummary>>,
#[doc(hidden)]
pub list_server_status_summary:
std::option::Option<std::vec::Vec<crate::model::ServerStatusSummary>>,
}
impl AssessmentSummary {
pub fn list_server_strategy_summary(
&self,
) -> std::option::Option<&[crate::model::StrategySummary]> {
self.list_server_strategy_summary.as_deref()
}
pub fn list_application_component_strategy_summary(
&self,
) -> std::option::Option<&[crate::model::StrategySummary]> {
self.list_application_component_strategy_summary.as_deref()
}
pub fn list_antipattern_severity_summary(
&self,
) -> std::option::Option<&[crate::model::AntipatternSeveritySummary]> {
self.list_antipattern_severity_summary.as_deref()
}
pub fn list_application_component_summary(
&self,
) -> std::option::Option<&[crate::model::ApplicationComponentSummary]> {
self.list_application_component_summary.as_deref()
}
pub fn list_server_summary(&self) -> std::option::Option<&[crate::model::ServerSummary]> {
self.list_server_summary.as_deref()
}
pub fn antipattern_report_s3_object(&self) -> std::option::Option<&crate::model::S3Object> {
self.antipattern_report_s3_object.as_ref()
}
pub fn antipattern_report_status(
&self,
) -> std::option::Option<&crate::model::AntipatternReportStatus> {
self.antipattern_report_status.as_ref()
}
pub fn antipattern_report_status_message(&self) -> std::option::Option<&str> {
self.antipattern_report_status_message.as_deref()
}
pub fn last_analyzed_timestamp(&self) -> std::option::Option<&aws_smithy_types::DateTime> {
self.last_analyzed_timestamp.as_ref()
}
pub fn list_application_component_status_summary(
&self,
) -> std::option::Option<&[crate::model::ApplicationComponentStatusSummary]> {
self.list_application_component_status_summary.as_deref()
}
pub fn list_server_status_summary(
&self,
) -> std::option::Option<&[crate::model::ServerStatusSummary]> {
self.list_server_status_summary.as_deref()
}
}
pub mod assessment_summary {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) list_server_strategy_summary:
std::option::Option<std::vec::Vec<crate::model::StrategySummary>>,
pub(crate) list_application_component_strategy_summary:
std::option::Option<std::vec::Vec<crate::model::StrategySummary>>,
pub(crate) list_antipattern_severity_summary:
std::option::Option<std::vec::Vec<crate::model::AntipatternSeveritySummary>>,
pub(crate) list_application_component_summary:
std::option::Option<std::vec::Vec<crate::model::ApplicationComponentSummary>>,
pub(crate) list_server_summary:
std::option::Option<std::vec::Vec<crate::model::ServerSummary>>,
pub(crate) antipattern_report_s3_object: std::option::Option<crate::model::S3Object>,
pub(crate) antipattern_report_status:
std::option::Option<crate::model::AntipatternReportStatus>,
pub(crate) antipattern_report_status_message: std::option::Option<std::string::String>,
pub(crate) last_analyzed_timestamp: std::option::Option<aws_smithy_types::DateTime>,
pub(crate) list_application_component_status_summary:
std::option::Option<std::vec::Vec<crate::model::ApplicationComponentStatusSummary>>,
pub(crate) list_server_status_summary:
std::option::Option<std::vec::Vec<crate::model::ServerStatusSummary>>,
}
impl Builder {
pub fn list_server_strategy_summary(
mut self,
input: crate::model::StrategySummary,
) -> Self {
let mut v = self.list_server_strategy_summary.unwrap_or_default();
v.push(input);
self.list_server_strategy_summary = Some(v);
self
}
pub fn set_list_server_strategy_summary(
mut self,
input: std::option::Option<std::vec::Vec<crate::model::StrategySummary>>,
) -> Self {
self.list_server_strategy_summary = input;
self
}
pub fn list_application_component_strategy_summary(
mut self,
input: crate::model::StrategySummary,
) -> Self {
let mut v = self
.list_application_component_strategy_summary
.unwrap_or_default();
v.push(input);
self.list_application_component_strategy_summary = Some(v);
self
}
pub fn set_list_application_component_strategy_summary(
mut self,
input: std::option::Option<std::vec::Vec<crate::model::StrategySummary>>,
) -> Self {
self.list_application_component_strategy_summary = input;
self
}
pub fn list_antipattern_severity_summary(
mut self,
input: crate::model::AntipatternSeveritySummary,
) -> Self {
let mut v = self.list_antipattern_severity_summary.unwrap_or_default();
v.push(input);
self.list_antipattern_severity_summary = Some(v);
self
}
pub fn set_list_antipattern_severity_summary(
mut self,
input: std::option::Option<std::vec::Vec<crate::model::AntipatternSeveritySummary>>,
) -> Self {
self.list_antipattern_severity_summary = input;
self
}
pub fn list_application_component_summary(
mut self,
input: crate::model::ApplicationComponentSummary,
) -> Self {
let mut v = self.list_application_component_summary.unwrap_or_default();
v.push(input);
self.list_application_component_summary = Some(v);
self
}
pub fn set_list_application_component_summary(
mut self,
input: std::option::Option<std::vec::Vec<crate::model::ApplicationComponentSummary>>,
) -> Self {
self.list_application_component_summary = input;
self
}
pub fn list_server_summary(mut self, input: crate::model::ServerSummary) -> Self {
let mut v = self.list_server_summary.unwrap_or_default();
v.push(input);
self.list_server_summary = Some(v);
self
}
pub fn set_list_server_summary(
mut self,
input: std::option::Option<std::vec::Vec<crate::model::ServerSummary>>,
) -> Self {
self.list_server_summary = input;
self
}
pub fn antipattern_report_s3_object(mut self, input: crate::model::S3Object) -> Self {
self.antipattern_report_s3_object = Some(input);
self
}
pub fn set_antipattern_report_s3_object(
mut self,
input: std::option::Option<crate::model::S3Object>,
) -> Self {
self.antipattern_report_s3_object = input;
self
}
pub fn antipattern_report_status(
mut self,
input: crate::model::AntipatternReportStatus,
) -> Self {
self.antipattern_report_status = Some(input);
self
}
pub fn set_antipattern_report_status(
mut self,
input: std::option::Option<crate::model::AntipatternReportStatus>,
) -> Self {
self.antipattern_report_status = input;
self
}
pub fn antipattern_report_status_message(
mut self,
input: impl Into<std::string::String>,
) -> Self {
self.antipattern_report_status_message = Some(input.into());
self
}
pub fn set_antipattern_report_status_message(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.antipattern_report_status_message = input;
self
}
pub fn last_analyzed_timestamp(mut self, input: aws_smithy_types::DateTime) -> Self {
self.last_analyzed_timestamp = Some(input);
self
}
pub fn set_last_analyzed_timestamp(
mut self,
input: std::option::Option<aws_smithy_types::DateTime>,
) -> Self {
self.last_analyzed_timestamp = input;
self
}
pub fn list_application_component_status_summary(
mut self,
input: crate::model::ApplicationComponentStatusSummary,
) -> Self {
let mut v = self
.list_application_component_status_summary
.unwrap_or_default();
v.push(input);
self.list_application_component_status_summary = Some(v);
self
}
pub fn set_list_application_component_status_summary(
mut self,
input: std::option::Option<
std::vec::Vec<crate::model::ApplicationComponentStatusSummary>,
>,
) -> Self {
self.list_application_component_status_summary = input;
self
}
pub fn list_server_status_summary(
mut self,
input: crate::model::ServerStatusSummary,
) -> Self {
let mut v = self.list_server_status_summary.unwrap_or_default();
v.push(input);
self.list_server_status_summary = Some(v);
self
}
pub fn set_list_server_status_summary(
mut self,
input: std::option::Option<std::vec::Vec<crate::model::ServerStatusSummary>>,
) -> Self {
self.list_server_status_summary = input;
self
}
pub fn build(self) -> crate::model::AssessmentSummary {
crate::model::AssessmentSummary {
list_server_strategy_summary: self.list_server_strategy_summary,
list_application_component_strategy_summary: self
.list_application_component_strategy_summary,
list_antipattern_severity_summary: self.list_antipattern_severity_summary,
list_application_component_summary: self.list_application_component_summary,
list_server_summary: self.list_server_summary,
antipattern_report_s3_object: self.antipattern_report_s3_object,
antipattern_report_status: self.antipattern_report_status,
antipattern_report_status_message: self.antipattern_report_status_message,
last_analyzed_timestamp: self.last_analyzed_timestamp,
list_application_component_status_summary: self
.list_application_component_status_summary,
list_server_status_summary: self.list_server_status_summary,
}
}
}
}
impl AssessmentSummary {
pub fn builder() -> crate::model::assessment_summary::Builder {
crate::model::assessment_summary::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct ServerStatusSummary {
#[doc(hidden)]
pub run_time_assessment_status: std::option::Option<crate::model::RunTimeAssessmentStatus>,
#[doc(hidden)]
pub count: std::option::Option<i32>,
}
impl ServerStatusSummary {
pub fn run_time_assessment_status(
&self,
) -> std::option::Option<&crate::model::RunTimeAssessmentStatus> {
self.run_time_assessment_status.as_ref()
}
pub fn count(&self) -> std::option::Option<i32> {
self.count
}
}
pub mod server_status_summary {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) run_time_assessment_status:
std::option::Option<crate::model::RunTimeAssessmentStatus>,
pub(crate) count: std::option::Option<i32>,
}
impl Builder {
pub fn run_time_assessment_status(
mut self,
input: crate::model::RunTimeAssessmentStatus,
) -> Self {
self.run_time_assessment_status = Some(input);
self
}
pub fn set_run_time_assessment_status(
mut self,
input: std::option::Option<crate::model::RunTimeAssessmentStatus>,
) -> Self {
self.run_time_assessment_status = input;
self
}
pub fn count(mut self, input: i32) -> Self {
self.count = Some(input);
self
}
pub fn set_count(mut self, input: std::option::Option<i32>) -> Self {
self.count = input;
self
}
pub fn build(self) -> crate::model::ServerStatusSummary {
crate::model::ServerStatusSummary {
run_time_assessment_status: self.run_time_assessment_status,
count: self.count,
}
}
}
}
impl ServerStatusSummary {
pub fn builder() -> crate::model::server_status_summary::Builder {
crate::model::server_status_summary::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct ApplicationComponentStatusSummary {
#[doc(hidden)]
pub src_code_or_db_analysis_status:
std::option::Option<crate::model::SrcCodeOrDbAnalysisStatus>,
#[doc(hidden)]
pub count: std::option::Option<i32>,
}
impl ApplicationComponentStatusSummary {
pub fn src_code_or_db_analysis_status(
&self,
) -> std::option::Option<&crate::model::SrcCodeOrDbAnalysisStatus> {
self.src_code_or_db_analysis_status.as_ref()
}
pub fn count(&self) -> std::option::Option<i32> {
self.count
}
}
pub mod application_component_status_summary {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) src_code_or_db_analysis_status:
std::option::Option<crate::model::SrcCodeOrDbAnalysisStatus>,
pub(crate) count: std::option::Option<i32>,
}
impl Builder {
pub fn src_code_or_db_analysis_status(
mut self,
input: crate::model::SrcCodeOrDbAnalysisStatus,
) -> Self {
self.src_code_or_db_analysis_status = Some(input);
self
}
pub fn set_src_code_or_db_analysis_status(
mut self,
input: std::option::Option<crate::model::SrcCodeOrDbAnalysisStatus>,
) -> Self {
self.src_code_or_db_analysis_status = input;
self
}
pub fn count(mut self, input: i32) -> Self {
self.count = Some(input);
self
}
pub fn set_count(mut self, input: std::option::Option<i32>) -> Self {
self.count = input;
self
}
pub fn build(self) -> crate::model::ApplicationComponentStatusSummary {
crate::model::ApplicationComponentStatusSummary {
src_code_or_db_analysis_status: self.src_code_or_db_analysis_status,
count: self.count,
}
}
}
}
impl ApplicationComponentStatusSummary {
pub fn builder() -> crate::model::application_component_status_summary::Builder {
crate::model::application_component_status_summary::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct ServerSummary {
#[doc(hidden)]
pub server_os_type: std::option::Option<crate::model::ServerOsType>,
#[doc(hidden)]
pub count: std::option::Option<i32>,
}
impl ServerSummary {
pub fn server_os_type(&self) -> std::option::Option<&crate::model::ServerOsType> {
self.server_os_type.as_ref()
}
pub fn count(&self) -> std::option::Option<i32> {
self.count
}
}
pub mod server_summary {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) server_os_type: std::option::Option<crate::model::ServerOsType>,
pub(crate) count: std::option::Option<i32>,
}
impl Builder {
pub fn server_os_type(mut self, input: crate::model::ServerOsType) -> Self {
self.server_os_type = Some(input);
self
}
pub fn set_server_os_type(
mut self,
input: std::option::Option<crate::model::ServerOsType>,
) -> Self {
self.server_os_type = input;
self
}
pub fn count(mut self, input: i32) -> Self {
self.count = Some(input);
self
}
pub fn set_count(mut self, input: std::option::Option<i32>) -> Self {
self.count = input;
self
}
pub fn build(self) -> crate::model::ServerSummary {
crate::model::ServerSummary {
server_os_type: self.server_os_type,
count: self.count,
}
}
}
}
impl ServerSummary {
pub fn builder() -> crate::model::server_summary::Builder {
crate::model::server_summary::Builder::default()
}
}
#[allow(missing_docs)] #[non_exhaustive]
#[derive(
std::clone::Clone,
std::cmp::Eq,
std::cmp::Ord,
std::cmp::PartialEq,
std::cmp::PartialOrd,
std::fmt::Debug,
std::hash::Hash,
)]
pub enum ServerOsType {
#[allow(missing_docs)] AmazonLinux,
#[allow(missing_docs)] EndOfSupportWindowsServer,
#[allow(missing_docs)] Other,
#[allow(missing_docs)] Redhat,
#[allow(missing_docs)] WindowsServer,
Unknown(crate::types::UnknownVariantValue),
}
impl std::convert::From<&str> for ServerOsType {
fn from(s: &str) -> Self {
match s {
"AmazonLinux" => ServerOsType::AmazonLinux,
"EndOfSupportWindowsServer" => ServerOsType::EndOfSupportWindowsServer,
"Other" => ServerOsType::Other,
"Redhat" => ServerOsType::Redhat,
"WindowsServer" => ServerOsType::WindowsServer,
other => ServerOsType::Unknown(crate::types::UnknownVariantValue(other.to_owned())),
}
}
}
impl std::str::FromStr for ServerOsType {
type Err = std::convert::Infallible;
fn from_str(s: &str) -> std::result::Result<Self, Self::Err> {
Ok(ServerOsType::from(s))
}
}
impl ServerOsType {
pub fn as_str(&self) -> &str {
match self {
ServerOsType::AmazonLinux => "AmazonLinux",
ServerOsType::EndOfSupportWindowsServer => "EndOfSupportWindowsServer",
ServerOsType::Other => "Other",
ServerOsType::Redhat => "Redhat",
ServerOsType::WindowsServer => "WindowsServer",
ServerOsType::Unknown(value) => value.as_str(),
}
}
pub const fn values() -> &'static [&'static str] {
&[
"AmazonLinux",
"EndOfSupportWindowsServer",
"Other",
"Redhat",
"WindowsServer",
]
}
}
impl AsRef<str> for ServerOsType {
fn as_ref(&self) -> &str {
self.as_str()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct ApplicationComponentSummary {
#[doc(hidden)]
pub app_type: std::option::Option<crate::model::AppType>,
#[doc(hidden)]
pub count: std::option::Option<i32>,
}
impl ApplicationComponentSummary {
pub fn app_type(&self) -> std::option::Option<&crate::model::AppType> {
self.app_type.as_ref()
}
pub fn count(&self) -> std::option::Option<i32> {
self.count
}
}
pub mod application_component_summary {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) app_type: std::option::Option<crate::model::AppType>,
pub(crate) count: std::option::Option<i32>,
}
impl Builder {
pub fn app_type(mut self, input: crate::model::AppType) -> Self {
self.app_type = Some(input);
self
}
pub fn set_app_type(mut self, input: std::option::Option<crate::model::AppType>) -> Self {
self.app_type = input;
self
}
pub fn count(mut self, input: i32) -> Self {
self.count = Some(input);
self
}
pub fn set_count(mut self, input: std::option::Option<i32>) -> Self {
self.count = input;
self
}
pub fn build(self) -> crate::model::ApplicationComponentSummary {
crate::model::ApplicationComponentSummary {
app_type: self.app_type,
count: self.count,
}
}
}
}
impl ApplicationComponentSummary {
pub fn builder() -> crate::model::application_component_summary::Builder {
crate::model::application_component_summary::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct DataCollectionDetails {
#[doc(hidden)]
pub status: std::option::Option<crate::model::AssessmentStatus>,
#[doc(hidden)]
pub servers: std::option::Option<i32>,
#[doc(hidden)]
pub failed: std::option::Option<i32>,
#[doc(hidden)]
pub success: std::option::Option<i32>,
#[doc(hidden)]
pub in_progress: std::option::Option<i32>,
#[doc(hidden)]
pub start_time: std::option::Option<aws_smithy_types::DateTime>,
#[doc(hidden)]
pub completion_time: std::option::Option<aws_smithy_types::DateTime>,
#[doc(hidden)]
pub status_message: std::option::Option<std::string::String>,
}
impl DataCollectionDetails {
pub fn status(&self) -> std::option::Option<&crate::model::AssessmentStatus> {
self.status.as_ref()
}
pub fn servers(&self) -> std::option::Option<i32> {
self.servers
}
pub fn failed(&self) -> std::option::Option<i32> {
self.failed
}
pub fn success(&self) -> std::option::Option<i32> {
self.success
}
pub fn in_progress(&self) -> std::option::Option<i32> {
self.in_progress
}
pub fn start_time(&self) -> std::option::Option<&aws_smithy_types::DateTime> {
self.start_time.as_ref()
}
pub fn completion_time(&self) -> std::option::Option<&aws_smithy_types::DateTime> {
self.completion_time.as_ref()
}
pub fn status_message(&self) -> std::option::Option<&str> {
self.status_message.as_deref()
}
}
pub mod data_collection_details {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) status: std::option::Option<crate::model::AssessmentStatus>,
pub(crate) servers: std::option::Option<i32>,
pub(crate) failed: std::option::Option<i32>,
pub(crate) success: std::option::Option<i32>,
pub(crate) in_progress: std::option::Option<i32>,
pub(crate) start_time: std::option::Option<aws_smithy_types::DateTime>,
pub(crate) completion_time: std::option::Option<aws_smithy_types::DateTime>,
pub(crate) status_message: std::option::Option<std::string::String>,
}
impl Builder {
pub fn status(mut self, input: crate::model::AssessmentStatus) -> Self {
self.status = Some(input);
self
}
pub fn set_status(
mut self,
input: std::option::Option<crate::model::AssessmentStatus>,
) -> Self {
self.status = input;
self
}
pub fn servers(mut self, input: i32) -> Self {
self.servers = Some(input);
self
}
pub fn set_servers(mut self, input: std::option::Option<i32>) -> Self {
self.servers = input;
self
}
pub fn failed(mut self, input: i32) -> Self {
self.failed = Some(input);
self
}
pub fn set_failed(mut self, input: std::option::Option<i32>) -> Self {
self.failed = input;
self
}
pub fn success(mut self, input: i32) -> Self {
self.success = Some(input);
self
}
pub fn set_success(mut self, input: std::option::Option<i32>) -> Self {
self.success = input;
self
}
pub fn in_progress(mut self, input: i32) -> Self {
self.in_progress = Some(input);
self
}
pub fn set_in_progress(mut self, input: std::option::Option<i32>) -> Self {
self.in_progress = input;
self
}
pub fn start_time(mut self, input: aws_smithy_types::DateTime) -> Self {
self.start_time = Some(input);
self
}
pub fn set_start_time(
mut self,
input: std::option::Option<aws_smithy_types::DateTime>,
) -> Self {
self.start_time = input;
self
}
pub fn completion_time(mut self, input: aws_smithy_types::DateTime) -> Self {
self.completion_time = Some(input);
self
}
pub fn set_completion_time(
mut self,
input: std::option::Option<aws_smithy_types::DateTime>,
) -> Self {
self.completion_time = input;
self
}
pub fn status_message(mut self, input: impl Into<std::string::String>) -> Self {
self.status_message = Some(input.into());
self
}
pub fn set_status_message(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.status_message = input;
self
}
pub fn build(self) -> crate::model::DataCollectionDetails {
crate::model::DataCollectionDetails {
status: self.status,
servers: self.servers,
failed: self.failed,
success: self.success,
in_progress: self.in_progress,
start_time: self.start_time,
completion_time: self.completion_time,
status_message: self.status_message,
}
}
}
}
impl DataCollectionDetails {
pub fn builder() -> crate::model::data_collection_details::Builder {
crate::model::data_collection_details::Builder::default()
}
}
#[allow(missing_docs)] #[non_exhaustive]
#[derive(
std::clone::Clone,
std::cmp::Eq,
std::cmp::Ord,
std::cmp::PartialEq,
std::cmp::PartialOrd,
std::fmt::Debug,
std::hash::Hash,
)]
pub enum AssessmentStatus {
#[allow(missing_docs)] Complete,
#[allow(missing_docs)] Failed,
#[allow(missing_docs)] InProgress,
#[allow(missing_docs)] Stopped,
Unknown(crate::types::UnknownVariantValue),
}
impl std::convert::From<&str> for AssessmentStatus {
fn from(s: &str) -> Self {
match s {
"COMPLETE" => AssessmentStatus::Complete,
"FAILED" => AssessmentStatus::Failed,
"IN_PROGRESS" => AssessmentStatus::InProgress,
"STOPPED" => AssessmentStatus::Stopped,
other => AssessmentStatus::Unknown(crate::types::UnknownVariantValue(other.to_owned())),
}
}
}
impl std::str::FromStr for AssessmentStatus {
type Err = std::convert::Infallible;
fn from_str(s: &str) -> std::result::Result<Self, Self::Err> {
Ok(AssessmentStatus::from(s))
}
}
impl AssessmentStatus {
pub fn as_str(&self) -> &str {
match self {
AssessmentStatus::Complete => "COMPLETE",
AssessmentStatus::Failed => "FAILED",
AssessmentStatus::InProgress => "IN_PROGRESS",
AssessmentStatus::Stopped => "STOPPED",
AssessmentStatus::Unknown(value) => value.as_str(),
}
}
pub const fn values() -> &'static [&'static str] {
&["COMPLETE", "FAILED", "IN_PROGRESS", "STOPPED"]
}
}
impl AsRef<str> for AssessmentStatus {
fn as_ref(&self) -> &str {
self.as_str()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct ApplicationComponentStrategy {
#[doc(hidden)]
pub recommendation: std::option::Option<crate::model::RecommendationSet>,
#[doc(hidden)]
pub status: std::option::Option<crate::model::StrategyRecommendation>,
#[doc(hidden)]
pub is_preferred: std::option::Option<bool>,
}
impl ApplicationComponentStrategy {
pub fn recommendation(&self) -> std::option::Option<&crate::model::RecommendationSet> {
self.recommendation.as_ref()
}
pub fn status(&self) -> std::option::Option<&crate::model::StrategyRecommendation> {
self.status.as_ref()
}
pub fn is_preferred(&self) -> std::option::Option<bool> {
self.is_preferred
}
}
pub mod application_component_strategy {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) recommendation: std::option::Option<crate::model::RecommendationSet>,
pub(crate) status: std::option::Option<crate::model::StrategyRecommendation>,
pub(crate) is_preferred: std::option::Option<bool>,
}
impl Builder {
pub fn recommendation(mut self, input: crate::model::RecommendationSet) -> Self {
self.recommendation = Some(input);
self
}
pub fn set_recommendation(
mut self,
input: std::option::Option<crate::model::RecommendationSet>,
) -> Self {
self.recommendation = input;
self
}
pub fn status(mut self, input: crate::model::StrategyRecommendation) -> Self {
self.status = Some(input);
self
}
pub fn set_status(
mut self,
input: std::option::Option<crate::model::StrategyRecommendation>,
) -> Self {
self.status = input;
self
}
pub fn is_preferred(mut self, input: bool) -> Self {
self.is_preferred = Some(input);
self
}
pub fn set_is_preferred(mut self, input: std::option::Option<bool>) -> Self {
self.is_preferred = input;
self
}
pub fn build(self) -> crate::model::ApplicationComponentStrategy {
crate::model::ApplicationComponentStrategy {
recommendation: self.recommendation,
status: self.status,
is_preferred: self.is_preferred,
}
}
}
}
impl ApplicationComponentStrategy {
pub fn builder() -> crate::model::application_component_strategy::Builder {
crate::model::application_component_strategy::Builder::default()
}
}