// makeState does a clone on a non-nil state, or makes a new state if nil.
559616
func makeState(arg fastLoadArg, s *keybase1.FastTeamData) *keybase1.FastTeamData {
	if s != nil {
		tmp := s.DeepCopy()
		return &tmp
	}
	return &keybase1.FastTeamData{
		PerTeamKeySeedsUnverified: make(map[keybase1.PerTeamKeyGeneration]keybase1.PerTeamKeySeed),
		ReaderKeyMasks:            make(map[keybase1.TeamApplication](map[keybase1.PerTeamKeyGeneration]keybase1.MaskB64)),
		Chain: keybase1.FastTeamSigChainState{
			ID:                      arg.ID,
			Public:                  arg.Public,
			PerTeamKeys:             make(map[keybase1.PerTeamKeyGeneration]keybase1.PerTeamKey),
			PerTeamKeySeedsVerified: make(map[keybase1.PerTeamKeyGeneration]keybase1.PerTeamKeySeed),
			DownPointers:            make(map[keybase1.Seqno]keybase1.DownPointer),
			LinkIDs:                 make(map[keybase1.Seqno]keybase1.LinkID),
			MerkleInfo:              make(map[keybase1.Seqno]keybase1.MerkleRootV2),
		},
	}
}
565354
func (s *ClusterInfo) SetState(v string) *ClusterInfo {
	s.State = &v
	return s
}
166167
func (s *ImageBuilder) SetState(v string) *ImageBuilder {
	s.State = &v
	return s
}
1205258
func (s *InstanceFleetStatus) SetState(v string) *InstanceFleetStatus {
	s.State = &v
	return s
}
1266281
func (s *UpdateJobQueueInput) SetState(v string) *UpdateJobQueueInput {
	s.State = &v
	return s
}
399231
func (s *ExportSnapshotRecord) SetState(v string) *ExportSnapshotRecord {
	s.State = &v
	return s
}
918472
func (s *DescribeInputSecurityGroupOutput) SetState(v string) *DescribeInputSecurityGroupOutput {
	s.State = &v
	return s
}
894974
func (p *parser) cloneState() storeDict {
	// ==template== {{ if not .Optimize }}
	if p.debug {
		defer p.out(p.in("cloneState"))
	}
	// {{ end }} ==template==

	state := make(storeDict, len(p.cur.state))
	for k, v := range p.cur.state {
		if c, ok := v.(Cloner); ok {
			state[k] = c.Clone()
		} else {
			state[k] = v
		}
	}
	return state
}
10901
func (s *GetLifecyclePoliciesInput) SetState(v string) *GetLifecyclePoliciesInput {
	s.State = &v
	return s
}
254431
func (s *ContactDetail) SetState(v string) *ContactDetail {
	s.State = &v
	return s
}
469322
func (s *InstancePortState) SetState(v string) *InstancePortState {
	s.State = &v
	return s
}
1030793
func (s *DescribeUserOutput) SetState(v string) *DescribeUserOutput {
	s.State = &v
	return s
}
367579
func (s *Condition) SetState(v string) *Condition {
	s.State = &v
	return s
}
471022
func (s *DeleteChannelOutput) SetState(v string) *DeleteChannelOutput {
	s.State = &v
	return s
}
1221123
func (s *DescribeBackupJobOutput) SetState(v string) *DescribeBackupJobOutput {
	s.State = &v
	return s
}
753964
func (s *Session) SetState(v string) *Session {
	s.State = &v
	return s
}
409311
func (s *Member) SetState(v string) *Member {
	s.State = &v
	return s
}