Class: AWSCDK::RTBFabric::CfnLink::NoBidModuleParametersProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
rtb_fabric/cfn_link.rb

Overview

Describes the parameters of a no bid module.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(pass_through_percentage: nil, reason: nil, reason_code: nil) ⇒ NoBidModuleParametersProperty

Returns a new instance of NoBidModuleParametersProperty.

Parameters:

  • pass_through_percentage (Numeric, nil) (defaults to: nil)

    The pass through percentage.

  • reason (String, nil) (defaults to: nil)

    The reason description.

  • reason_code (Numeric, nil) (defaults to: nil)

    The reason code.



1082
1083
1084
1085
1086
1087
1088
1089
# File 'rtb_fabric/cfn_link.rb', line 1082

def initialize(pass_through_percentage: nil, reason: nil, reason_code: nil)
  @pass_through_percentage = pass_through_percentage
  Jsii::Type.check_type(@pass_through_percentage, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "passThroughPercentage") unless @pass_through_percentage.nil?
  @reason = reason
  Jsii::Type.check_type(@reason, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "reason") unless @reason.nil?
  @reason_code = reason_code
  Jsii::Type.check_type(@reason_code, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "reasonCode") unless @reason_code.nil?
end

Instance Attribute Details

#pass_through_percentageNumeric? (readonly)

The pass through percentage.



1095
1096
1097
# File 'rtb_fabric/cfn_link.rb', line 1095

def pass_through_percentage
  @pass_through_percentage
end

#reasonString? (readonly)

The reason description.



1100
1101
1102
# File 'rtb_fabric/cfn_link.rb', line 1100

def reason
  @reason
end

#reason_codeNumeric? (readonly)

The reason code.



1105
1106
1107
# File 'rtb_fabric/cfn_link.rb', line 1105

def reason_code
  @reason_code
end

Class Method Details

.jsii_propertiesObject



1107
1108
1109
1110
1111
1112
1113
# File 'rtb_fabric/cfn_link.rb', line 1107

def self.jsii_properties
  {
    :pass_through_percentage => "passThroughPercentage",
    :reason => "reason",
    :reason_code => "reasonCode",
  }
end

Instance Method Details

#to_jsiiObject



1115
1116
1117
1118
1119
1120
1121
1122
1123
# File 'rtb_fabric/cfn_link.rb', line 1115

def to_jsii
  result = {}
  result.merge!({
    "passThroughPercentage" => @pass_through_percentage,
    "reason" => @reason,
    "reasonCode" => @reason_code,
  })
  result.compact
end